AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AnomalyDetector.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10#include <aws/logs/model/AnomalyDetectorStatus.h>
11#include <aws/logs/model/EvaluationFrequency.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CloudWatchLogs {
23namespace Model {
24
32 public:
33 AWS_CLOUDWATCHLOGS_API AnomalyDetector() = default;
34 AWS_CLOUDWATCHLOGS_API AnomalyDetector(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDWATCHLOGS_API AnomalyDetector& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetAnomalyDetectorArn() const { return m_anomalyDetectorArn; }
43 inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; }
44 template <typename AnomalyDetectorArnT = Aws::String>
45 void SetAnomalyDetectorArn(AnomalyDetectorArnT&& value) {
46 m_anomalyDetectorArnHasBeenSet = true;
47 m_anomalyDetectorArn = std::forward<AnomalyDetectorArnT>(value);
48 }
49 template <typename AnomalyDetectorArnT = Aws::String>
50 AnomalyDetector& WithAnomalyDetectorArn(AnomalyDetectorArnT&& value) {
51 SetAnomalyDetectorArn(std::forward<AnomalyDetectorArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDetectorName() const { return m_detectorName; }
61 inline bool DetectorNameHasBeenSet() const { return m_detectorNameHasBeenSet; }
62 template <typename DetectorNameT = Aws::String>
63 void SetDetectorName(DetectorNameT&& value) {
64 m_detectorNameHasBeenSet = true;
65 m_detectorName = std::forward<DetectorNameT>(value);
66 }
67 template <typename DetectorNameT = Aws::String>
68 AnomalyDetector& WithDetectorName(DetectorNameT&& value) {
69 SetDetectorName(std::forward<DetectorNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<Aws::String>& GetLogGroupArnList() const { return m_logGroupArnList; }
79 inline bool LogGroupArnListHasBeenSet() const { return m_logGroupArnListHasBeenSet; }
80 template <typename LogGroupArnListT = Aws::Vector<Aws::String>>
81 void SetLogGroupArnList(LogGroupArnListT&& value) {
82 m_logGroupArnListHasBeenSet = true;
83 m_logGroupArnList = std::forward<LogGroupArnListT>(value);
84 }
85 template <typename LogGroupArnListT = Aws::Vector<Aws::String>>
86 AnomalyDetector& WithLogGroupArnList(LogGroupArnListT&& value) {
87 SetLogGroupArnList(std::forward<LogGroupArnListT>(value));
88 return *this;
89 }
90 template <typename LogGroupArnListT = Aws::String>
91 AnomalyDetector& AddLogGroupArnList(LogGroupArnListT&& value) {
92 m_logGroupArnListHasBeenSet = true;
93 m_logGroupArnList.emplace_back(std::forward<LogGroupArnListT>(value));
94 return *this;
95 }
97
99
102 inline EvaluationFrequency GetEvaluationFrequency() const { return m_evaluationFrequency; }
103 inline bool EvaluationFrequencyHasBeenSet() const { return m_evaluationFrequencyHasBeenSet; }
105 m_evaluationFrequencyHasBeenSet = true;
106 m_evaluationFrequency = value;
107 }
110 return *this;
111 }
113
115
116 inline const Aws::String& GetFilterPattern() const { return m_filterPattern; }
117 inline bool FilterPatternHasBeenSet() const { return m_filterPatternHasBeenSet; }
118 template <typename FilterPatternT = Aws::String>
119 void SetFilterPattern(FilterPatternT&& value) {
120 m_filterPatternHasBeenSet = true;
121 m_filterPattern = std::forward<FilterPatternT>(value);
122 }
123 template <typename FilterPatternT = Aws::String>
124 AnomalyDetector& WithFilterPattern(FilterPatternT&& value) {
125 SetFilterPattern(std::forward<FilterPatternT>(value));
126 return *this;
127 }
129
131
137 inline AnomalyDetectorStatus GetAnomalyDetectorStatus() const { return m_anomalyDetectorStatus; }
138 inline bool AnomalyDetectorStatusHasBeenSet() const { return m_anomalyDetectorStatusHasBeenSet; }
140 m_anomalyDetectorStatusHasBeenSet = true;
141 m_anomalyDetectorStatus = value;
142 }
145 return *this;
146 }
148
150
153 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
154 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
155 template <typename KmsKeyIdT = Aws::String>
156 void SetKmsKeyId(KmsKeyIdT&& value) {
157 m_kmsKeyIdHasBeenSet = true;
158 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
159 }
160 template <typename KmsKeyIdT = Aws::String>
161 AnomalyDetector& WithKmsKeyId(KmsKeyIdT&& value) {
162 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
163 return *this;
164 }
166
168
171 inline long long GetCreationTimeStamp() const { return m_creationTimeStamp; }
172 inline bool CreationTimeStampHasBeenSet() const { return m_creationTimeStampHasBeenSet; }
173 inline void SetCreationTimeStamp(long long value) {
174 m_creationTimeStampHasBeenSet = true;
175 m_creationTimeStamp = value;
176 }
177 inline AnomalyDetector& WithCreationTimeStamp(long long value) {
179 return *this;
180 }
182
184
187 inline long long GetLastModifiedTimeStamp() const { return m_lastModifiedTimeStamp; }
188 inline bool LastModifiedTimeStampHasBeenSet() const { return m_lastModifiedTimeStampHasBeenSet; }
189 inline void SetLastModifiedTimeStamp(long long value) {
190 m_lastModifiedTimeStampHasBeenSet = true;
191 m_lastModifiedTimeStamp = value;
192 }
195 return *this;
196 }
198
200
205 inline long long GetAnomalyVisibilityTime() const { return m_anomalyVisibilityTime; }
206 inline bool AnomalyVisibilityTimeHasBeenSet() const { return m_anomalyVisibilityTimeHasBeenSet; }
207 inline void SetAnomalyVisibilityTime(long long value) {
208 m_anomalyVisibilityTimeHasBeenSet = true;
209 m_anomalyVisibilityTime = value;
210 }
213 return *this;
214 }
216 private:
217 Aws::String m_anomalyDetectorArn;
218
219 Aws::String m_detectorName;
220
221 Aws::Vector<Aws::String> m_logGroupArnList;
222
224
225 Aws::String m_filterPattern;
226
228
229 Aws::String m_kmsKeyId;
230
231 long long m_creationTimeStamp{0};
232
233 long long m_lastModifiedTimeStamp{0};
234
235 long long m_anomalyVisibilityTime{0};
236 bool m_anomalyDetectorArnHasBeenSet = false;
237 bool m_detectorNameHasBeenSet = false;
238 bool m_logGroupArnListHasBeenSet = false;
239 bool m_evaluationFrequencyHasBeenSet = false;
240 bool m_filterPatternHasBeenSet = false;
241 bool m_anomalyDetectorStatusHasBeenSet = false;
242 bool m_kmsKeyIdHasBeenSet = false;
243 bool m_creationTimeStampHasBeenSet = false;
244 bool m_lastModifiedTimeStampHasBeenSet = false;
245 bool m_anomalyVisibilityTimeHasBeenSet = false;
246};
247
248} // namespace Model
249} // namespace CloudWatchLogs
250} // namespace Aws
EvaluationFrequency GetEvaluationFrequency() const
void SetLogGroupArnList(LogGroupArnListT &&value)
AnomalyDetector & WithKmsKeyId(KmsKeyIdT &&value)
AnomalyDetectorStatus GetAnomalyDetectorStatus() const
void SetDetectorName(DetectorNameT &&value)
void SetAnomalyDetectorStatus(AnomalyDetectorStatus value)
AnomalyDetector & WithAnomalyDetectorStatus(AnomalyDetectorStatus value)
AnomalyDetector & WithCreationTimeStamp(long long value)
AnomalyDetector & WithAnomalyVisibilityTime(long long value)
AnomalyDetector & WithLogGroupArnList(LogGroupArnListT &&value)
void SetAnomalyDetectorArn(AnomalyDetectorArnT &&value)
AWS_CLOUDWATCHLOGS_API AnomalyDetector()=default
void SetFilterPattern(FilterPatternT &&value)
const Aws::Vector< Aws::String > & GetLogGroupArnList() const
AWS_CLOUDWATCHLOGS_API AnomalyDetector & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDetectorName() const
AnomalyDetector & WithAnomalyDetectorArn(AnomalyDetectorArnT &&value)
AnomalyDetector & AddLogGroupArnList(LogGroupArnListT &&value)
AnomalyDetector & WithFilterPattern(FilterPatternT &&value)
AnomalyDetector & WithEvaluationFrequency(EvaluationFrequency value)
AWS_CLOUDWATCHLOGS_API AnomalyDetector(Aws::Utils::Json::JsonView jsonValue)
AnomalyDetector & WithDetectorName(DetectorNameT &&value)
const Aws::String & GetFilterPattern() const
AnomalyDetector & WithLastModifiedTimeStamp(long long value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAnomalyDetectorArn() const
void SetEvaluationFrequency(EvaluationFrequency value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue