AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LogAnomalyClass.h
1
6#pragma once
7#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-guru/model/LogAnomalyType.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DevOpsGuru
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_DEVOPSGURU_API LogAnomalyClass();
38 AWS_DEVOPSGURU_API LogAnomalyClass(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::String& GetLogStreamName() const{ return m_logStreamName; }
50 inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; }
51 inline void SetLogStreamName(const Aws::String& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; }
52 inline void SetLogStreamName(Aws::String&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = std::move(value); }
53 inline void SetLogStreamName(const char* value) { m_logStreamNameHasBeenSet = true; m_logStreamName.assign(value); }
54 inline LogAnomalyClass& WithLogStreamName(const Aws::String& value) { SetLogStreamName(value); return *this;}
55 inline LogAnomalyClass& WithLogStreamName(Aws::String&& value) { SetLogStreamName(std::move(value)); return *this;}
56 inline LogAnomalyClass& WithLogStreamName(const char* value) { SetLogStreamName(value); return *this;}
58
60
63 inline const LogAnomalyType& GetLogAnomalyType() const{ return m_logAnomalyType; }
64 inline bool LogAnomalyTypeHasBeenSet() const { return m_logAnomalyTypeHasBeenSet; }
65 inline void SetLogAnomalyType(const LogAnomalyType& value) { m_logAnomalyTypeHasBeenSet = true; m_logAnomalyType = value; }
66 inline void SetLogAnomalyType(LogAnomalyType&& value) { m_logAnomalyTypeHasBeenSet = true; m_logAnomalyType = std::move(value); }
67 inline LogAnomalyClass& WithLogAnomalyType(const LogAnomalyType& value) { SetLogAnomalyType(value); return *this;}
68 inline LogAnomalyClass& WithLogAnomalyType(LogAnomalyType&& value) { SetLogAnomalyType(std::move(value)); return *this;}
70
72
77 inline const Aws::String& GetLogAnomalyToken() const{ return m_logAnomalyToken; }
78 inline bool LogAnomalyTokenHasBeenSet() const { return m_logAnomalyTokenHasBeenSet; }
79 inline void SetLogAnomalyToken(const Aws::String& value) { m_logAnomalyTokenHasBeenSet = true; m_logAnomalyToken = value; }
80 inline void SetLogAnomalyToken(Aws::String&& value) { m_logAnomalyTokenHasBeenSet = true; m_logAnomalyToken = std::move(value); }
81 inline void SetLogAnomalyToken(const char* value) { m_logAnomalyTokenHasBeenSet = true; m_logAnomalyToken.assign(value); }
82 inline LogAnomalyClass& WithLogAnomalyToken(const Aws::String& value) { SetLogAnomalyToken(value); return *this;}
83 inline LogAnomalyClass& WithLogAnomalyToken(Aws::String&& value) { SetLogAnomalyToken(std::move(value)); return *this;}
84 inline LogAnomalyClass& WithLogAnomalyToken(const char* value) { SetLogAnomalyToken(value); return *this;}
86
88
91 inline const Aws::String& GetLogEventId() const{ return m_logEventId; }
92 inline bool LogEventIdHasBeenSet() const { return m_logEventIdHasBeenSet; }
93 inline void SetLogEventId(const Aws::String& value) { m_logEventIdHasBeenSet = true; m_logEventId = value; }
94 inline void SetLogEventId(Aws::String&& value) { m_logEventIdHasBeenSet = true; m_logEventId = std::move(value); }
95 inline void SetLogEventId(const char* value) { m_logEventIdHasBeenSet = true; m_logEventId.assign(value); }
96 inline LogAnomalyClass& WithLogEventId(const Aws::String& value) { SetLogEventId(value); return *this;}
97 inline LogAnomalyClass& WithLogEventId(Aws::String&& value) { SetLogEventId(std::move(value)); return *this;}
98 inline LogAnomalyClass& WithLogEventId(const char* value) { SetLogEventId(value); return *this;}
100
102
105 inline const Aws::String& GetExplanation() const{ return m_explanation; }
106 inline bool ExplanationHasBeenSet() const { return m_explanationHasBeenSet; }
107 inline void SetExplanation(const Aws::String& value) { m_explanationHasBeenSet = true; m_explanation = value; }
108 inline void SetExplanation(Aws::String&& value) { m_explanationHasBeenSet = true; m_explanation = std::move(value); }
109 inline void SetExplanation(const char* value) { m_explanationHasBeenSet = true; m_explanation.assign(value); }
110 inline LogAnomalyClass& WithExplanation(const Aws::String& value) { SetExplanation(value); return *this;}
111 inline LogAnomalyClass& WithExplanation(Aws::String&& value) { SetExplanation(std::move(value)); return *this;}
112 inline LogAnomalyClass& WithExplanation(const char* value) { SetExplanation(value); return *this;}
114
116
119 inline int GetNumberOfLogLinesOccurrences() const{ return m_numberOfLogLinesOccurrences; }
120 inline bool NumberOfLogLinesOccurrencesHasBeenSet() const { return m_numberOfLogLinesOccurrencesHasBeenSet; }
121 inline void SetNumberOfLogLinesOccurrences(int value) { m_numberOfLogLinesOccurrencesHasBeenSet = true; m_numberOfLogLinesOccurrences = value; }
124
126
129 inline const Aws::Utils::DateTime& GetLogEventTimestamp() const{ return m_logEventTimestamp; }
130 inline bool LogEventTimestampHasBeenSet() const { return m_logEventTimestampHasBeenSet; }
131 inline void SetLogEventTimestamp(const Aws::Utils::DateTime& value) { m_logEventTimestampHasBeenSet = true; m_logEventTimestamp = value; }
132 inline void SetLogEventTimestamp(Aws::Utils::DateTime&& value) { m_logEventTimestampHasBeenSet = true; m_logEventTimestamp = std::move(value); }
134 inline LogAnomalyClass& WithLogEventTimestamp(Aws::Utils::DateTime&& value) { SetLogEventTimestamp(std::move(value)); return *this;}
136 private:
137
138 Aws::String m_logStreamName;
139 bool m_logStreamNameHasBeenSet = false;
140
141 LogAnomalyType m_logAnomalyType;
142 bool m_logAnomalyTypeHasBeenSet = false;
143
144 Aws::String m_logAnomalyToken;
145 bool m_logAnomalyTokenHasBeenSet = false;
146
147 Aws::String m_logEventId;
148 bool m_logEventIdHasBeenSet = false;
149
150 Aws::String m_explanation;
151 bool m_explanationHasBeenSet = false;
152
153 int m_numberOfLogLinesOccurrences;
154 bool m_numberOfLogLinesOccurrencesHasBeenSet = false;
155
156 Aws::Utils::DateTime m_logEventTimestamp;
157 bool m_logEventTimestampHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace DevOpsGuru
162} // namespace Aws
void SetLogStreamName(Aws::String &&value)
void SetLogEventId(Aws::String &&value)
void SetLogAnomalyToken(const char *value)
const LogAnomalyType & GetLogAnomalyType() const
LogAnomalyClass & WithNumberOfLogLinesOccurrences(int value)
void SetLogAnomalyType(LogAnomalyType &&value)
LogAnomalyClass & WithLogEventId(Aws::String &&value)
const Aws::Utils::DateTime & GetLogEventTimestamp() const
AWS_DEVOPSGURU_API LogAnomalyClass & operator=(Aws::Utils::Json::JsonView jsonValue)
LogAnomalyClass & WithLogAnomalyToken(Aws::String &&value)
const Aws::String & GetLogEventId() const
LogAnomalyClass & WithLogAnomalyToken(const char *value)
LogAnomalyClass & WithLogEventId(const char *value)
const Aws::String & GetExplanation() const
LogAnomalyClass & WithLogEventId(const Aws::String &value)
LogAnomalyClass & WithLogAnomalyType(const LogAnomalyType &value)
LogAnomalyClass & WithLogEventTimestamp(const Aws::Utils::DateTime &value)
void SetLogAnomalyToken(const Aws::String &value)
LogAnomalyClass & WithLogStreamName(Aws::String &&value)
LogAnomalyClass & WithLogAnomalyType(LogAnomalyType &&value)
void SetLogAnomalyToken(Aws::String &&value)
LogAnomalyClass & WithExplanation(Aws::String &&value)
void SetLogEventTimestamp(const Aws::Utils::DateTime &value)
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogEventTimestamp(Aws::Utils::DateTime &&value)
LogAnomalyClass & WithExplanation(const Aws::String &value)
LogAnomalyClass & WithLogEventTimestamp(Aws::Utils::DateTime &&value)
void SetLogAnomalyType(const LogAnomalyType &value)
AWS_DEVOPSGURU_API LogAnomalyClass(Aws::Utils::Json::JsonView jsonValue)
LogAnomalyClass & WithLogStreamName(const Aws::String &value)
const Aws::String & GetLogAnomalyToken() const
LogAnomalyClass & WithExplanation(const char *value)
void SetLogStreamName(const Aws::String &value)
void SetExplanation(Aws::String &&value)
void SetExplanation(const Aws::String &value)
const Aws::String & GetLogStreamName() const
LogAnomalyClass & WithLogAnomalyToken(const Aws::String &value)
LogAnomalyClass & WithLogStreamName(const char *value)
void SetLogEventId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue