AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
LogAnomalyClass.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
10#include <aws/devops-guru/model/LogAnomalyType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DevOpsGuru {
22namespace Model {
23
31 public:
32 AWS_DEVOPSGURU_API LogAnomalyClass() = default;
33 AWS_DEVOPSGURU_API LogAnomalyClass(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::String& GetLogStreamName() const { return m_logStreamName; }
44 inline bool LogStreamNameHasBeenSet() const { return m_logStreamNameHasBeenSet; }
45 template <typename LogStreamNameT = Aws::String>
46 void SetLogStreamName(LogStreamNameT&& value) {
47 m_logStreamNameHasBeenSet = true;
48 m_logStreamName = std::forward<LogStreamNameT>(value);
49 }
50 template <typename LogStreamNameT = Aws::String>
51 LogAnomalyClass& WithLogStreamName(LogStreamNameT&& value) {
52 SetLogStreamName(std::forward<LogStreamNameT>(value));
53 return *this;
54 }
56
58
61 inline LogAnomalyType GetLogAnomalyType() const { return m_logAnomalyType; }
62 inline bool LogAnomalyTypeHasBeenSet() const { return m_logAnomalyTypeHasBeenSet; }
63 inline void SetLogAnomalyType(LogAnomalyType value) {
64 m_logAnomalyTypeHasBeenSet = true;
65 m_logAnomalyType = value;
66 }
68 SetLogAnomalyType(value);
69 return *this;
70 }
72
74
79 inline const Aws::String& GetLogAnomalyToken() const { return m_logAnomalyToken; }
80 inline bool LogAnomalyTokenHasBeenSet() const { return m_logAnomalyTokenHasBeenSet; }
81 template <typename LogAnomalyTokenT = Aws::String>
82 void SetLogAnomalyToken(LogAnomalyTokenT&& value) {
83 m_logAnomalyTokenHasBeenSet = true;
84 m_logAnomalyToken = std::forward<LogAnomalyTokenT>(value);
85 }
86 template <typename LogAnomalyTokenT = Aws::String>
87 LogAnomalyClass& WithLogAnomalyToken(LogAnomalyTokenT&& value) {
88 SetLogAnomalyToken(std::forward<LogAnomalyTokenT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetLogEventId() const { return m_logEventId; }
98 inline bool LogEventIdHasBeenSet() const { return m_logEventIdHasBeenSet; }
99 template <typename LogEventIdT = Aws::String>
100 void SetLogEventId(LogEventIdT&& value) {
101 m_logEventIdHasBeenSet = true;
102 m_logEventId = std::forward<LogEventIdT>(value);
103 }
104 template <typename LogEventIdT = Aws::String>
105 LogAnomalyClass& WithLogEventId(LogEventIdT&& value) {
106 SetLogEventId(std::forward<LogEventIdT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetExplanation() const { return m_explanation; }
116 inline bool ExplanationHasBeenSet() const { return m_explanationHasBeenSet; }
117 template <typename ExplanationT = Aws::String>
118 void SetExplanation(ExplanationT&& value) {
119 m_explanationHasBeenSet = true;
120 m_explanation = std::forward<ExplanationT>(value);
121 }
122 template <typename ExplanationT = Aws::String>
123 LogAnomalyClass& WithExplanation(ExplanationT&& value) {
124 SetExplanation(std::forward<ExplanationT>(value));
125 return *this;
126 }
128
130
133 inline int GetNumberOfLogLinesOccurrences() const { return m_numberOfLogLinesOccurrences; }
134 inline bool NumberOfLogLinesOccurrencesHasBeenSet() const { return m_numberOfLogLinesOccurrencesHasBeenSet; }
135 inline void SetNumberOfLogLinesOccurrences(int value) {
136 m_numberOfLogLinesOccurrencesHasBeenSet = true;
137 m_numberOfLogLinesOccurrences = value;
138 }
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetLogEventTimestamp() const { return m_logEventTimestamp; }
150 inline bool LogEventTimestampHasBeenSet() const { return m_logEventTimestampHasBeenSet; }
151 template <typename LogEventTimestampT = Aws::Utils::DateTime>
152 void SetLogEventTimestamp(LogEventTimestampT&& value) {
153 m_logEventTimestampHasBeenSet = true;
154 m_logEventTimestamp = std::forward<LogEventTimestampT>(value);
155 }
156 template <typename LogEventTimestampT = Aws::Utils::DateTime>
157 LogAnomalyClass& WithLogEventTimestamp(LogEventTimestampT&& value) {
158 SetLogEventTimestamp(std::forward<LogEventTimestampT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_logStreamName;
164
165 LogAnomalyType m_logAnomalyType{LogAnomalyType::NOT_SET};
166
167 Aws::String m_logAnomalyToken;
168
169 Aws::String m_logEventId;
170
171 Aws::String m_explanation;
172
173 int m_numberOfLogLinesOccurrences{0};
174
175 Aws::Utils::DateTime m_logEventTimestamp{};
176 bool m_logStreamNameHasBeenSet = false;
177 bool m_logAnomalyTypeHasBeenSet = false;
178 bool m_logAnomalyTokenHasBeenSet = false;
179 bool m_logEventIdHasBeenSet = false;
180 bool m_explanationHasBeenSet = false;
181 bool m_numberOfLogLinesOccurrencesHasBeenSet = false;
182 bool m_logEventTimestampHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace DevOpsGuru
187} // namespace Aws
void SetLogAnomalyType(LogAnomalyType value)
LogAnomalyClass & WithNumberOfLogLinesOccurrences(int value)
const Aws::Utils::DateTime & GetLogEventTimestamp() const
void SetLogEventTimestamp(LogEventTimestampT &&value)
AWS_DEVOPSGURU_API LogAnomalyClass & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSGURU_API LogAnomalyClass()=default
const Aws::String & GetLogEventId() const
LogAnomalyClass & WithLogStreamName(LogStreamNameT &&value)
const Aws::String & GetExplanation() const
LogAnomalyClass & WithLogAnomalyType(LogAnomalyType value)
void SetLogStreamName(LogStreamNameT &&value)
void SetExplanation(ExplanationT &&value)
void SetLogAnomalyToken(LogAnomalyTokenT &&value)
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
LogAnomalyClass & WithExplanation(ExplanationT &&value)
LogAnomalyClass & WithLogAnomalyToken(LogAnomalyTokenT &&value)
LogAnomalyClass & WithLogEventTimestamp(LogEventTimestampT &&value)
AWS_DEVOPSGURU_API LogAnomalyClass(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLogAnomalyToken() const
void SetLogEventId(LogEventIdT &&value)
const Aws::String & GetLogStreamName() const
LogAnomalyClass & WithLogEventId(LogEventIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue