AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AnomalyDetector.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/logs/model/EvaluationFrequency.h>
11#include <aws/logs/model/AnomalyDetectorStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CloudWatchLogs
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_CLOUDWATCHLOGS_API AnomalyDetector();
39 AWS_CLOUDWATCHLOGS_API AnomalyDetector(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHLOGS_API AnomalyDetector& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetAnomalyDetectorArn() const{ return m_anomalyDetectorArn; }
49 inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; }
50 inline void SetAnomalyDetectorArn(const Aws::String& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = value; }
51 inline void SetAnomalyDetectorArn(Aws::String&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::move(value); }
52 inline void SetAnomalyDetectorArn(const char* value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn.assign(value); }
53 inline AnomalyDetector& WithAnomalyDetectorArn(const Aws::String& value) { SetAnomalyDetectorArn(value); return *this;}
54 inline AnomalyDetector& WithAnomalyDetectorArn(Aws::String&& value) { SetAnomalyDetectorArn(std::move(value)); return *this;}
55 inline AnomalyDetector& WithAnomalyDetectorArn(const char* value) { SetAnomalyDetectorArn(value); return *this;}
57
59
62 inline const Aws::String& GetDetectorName() const{ return m_detectorName; }
63 inline bool DetectorNameHasBeenSet() const { return m_detectorNameHasBeenSet; }
64 inline void SetDetectorName(const Aws::String& value) { m_detectorNameHasBeenSet = true; m_detectorName = value; }
65 inline void SetDetectorName(Aws::String&& value) { m_detectorNameHasBeenSet = true; m_detectorName = std::move(value); }
66 inline void SetDetectorName(const char* value) { m_detectorNameHasBeenSet = true; m_detectorName.assign(value); }
67 inline AnomalyDetector& WithDetectorName(const Aws::String& value) { SetDetectorName(value); return *this;}
68 inline AnomalyDetector& WithDetectorName(Aws::String&& value) { SetDetectorName(std::move(value)); return *this;}
69 inline AnomalyDetector& WithDetectorName(const char* value) { SetDetectorName(value); return *this;}
71
73
76 inline const Aws::Vector<Aws::String>& GetLogGroupArnList() const{ return m_logGroupArnList; }
77 inline bool LogGroupArnListHasBeenSet() const { return m_logGroupArnListHasBeenSet; }
78 inline void SetLogGroupArnList(const Aws::Vector<Aws::String>& value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList = value; }
79 inline void SetLogGroupArnList(Aws::Vector<Aws::String>&& value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList = std::move(value); }
81 inline AnomalyDetector& WithLogGroupArnList(Aws::Vector<Aws::String>&& value) { SetLogGroupArnList(std::move(value)); return *this;}
82 inline AnomalyDetector& AddLogGroupArnList(const Aws::String& value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList.push_back(value); return *this; }
83 inline AnomalyDetector& AddLogGroupArnList(Aws::String&& value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList.push_back(std::move(value)); return *this; }
84 inline AnomalyDetector& AddLogGroupArnList(const char* value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList.push_back(value); return *this; }
86
88
91 inline const EvaluationFrequency& GetEvaluationFrequency() const{ return m_evaluationFrequency; }
92 inline bool EvaluationFrequencyHasBeenSet() const { return m_evaluationFrequencyHasBeenSet; }
93 inline void SetEvaluationFrequency(const EvaluationFrequency& value) { m_evaluationFrequencyHasBeenSet = true; m_evaluationFrequency = value; }
94 inline void SetEvaluationFrequency(EvaluationFrequency&& value) { m_evaluationFrequencyHasBeenSet = true; m_evaluationFrequency = std::move(value); }
96 inline AnomalyDetector& WithEvaluationFrequency(EvaluationFrequency&& value) { SetEvaluationFrequency(std::move(value)); return *this;}
98
100
101 inline const Aws::String& GetFilterPattern() const{ return m_filterPattern; }
102 inline bool FilterPatternHasBeenSet() const { return m_filterPatternHasBeenSet; }
103 inline void SetFilterPattern(const Aws::String& value) { m_filterPatternHasBeenSet = true; m_filterPattern = value; }
104 inline void SetFilterPattern(Aws::String&& value) { m_filterPatternHasBeenSet = true; m_filterPattern = std::move(value); }
105 inline void SetFilterPattern(const char* value) { m_filterPatternHasBeenSet = true; m_filterPattern.assign(value); }
106 inline AnomalyDetector& WithFilterPattern(const Aws::String& value) { SetFilterPattern(value); return *this;}
107 inline AnomalyDetector& WithFilterPattern(Aws::String&& value) { SetFilterPattern(std::move(value)); return *this;}
108 inline AnomalyDetector& WithFilterPattern(const char* value) { SetFilterPattern(value); return *this;}
110
112
118 inline const AnomalyDetectorStatus& GetAnomalyDetectorStatus() const{ return m_anomalyDetectorStatus; }
119 inline bool AnomalyDetectorStatusHasBeenSet() const { return m_anomalyDetectorStatusHasBeenSet; }
120 inline void SetAnomalyDetectorStatus(const AnomalyDetectorStatus& value) { m_anomalyDetectorStatusHasBeenSet = true; m_anomalyDetectorStatus = value; }
121 inline void SetAnomalyDetectorStatus(AnomalyDetectorStatus&& value) { m_anomalyDetectorStatusHasBeenSet = true; m_anomalyDetectorStatus = std::move(value); }
125
127
130 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
131 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
132 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
133 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
134 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
135 inline AnomalyDetector& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
136 inline AnomalyDetector& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
137 inline AnomalyDetector& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
139
141
144 inline long long GetCreationTimeStamp() const{ return m_creationTimeStamp; }
145 inline bool CreationTimeStampHasBeenSet() const { return m_creationTimeStampHasBeenSet; }
146 inline void SetCreationTimeStamp(long long value) { m_creationTimeStampHasBeenSet = true; m_creationTimeStamp = value; }
147 inline AnomalyDetector& WithCreationTimeStamp(long long value) { SetCreationTimeStamp(value); return *this;}
149
151
154 inline long long GetLastModifiedTimeStamp() const{ return m_lastModifiedTimeStamp; }
155 inline bool LastModifiedTimeStampHasBeenSet() const { return m_lastModifiedTimeStampHasBeenSet; }
156 inline void SetLastModifiedTimeStamp(long long value) { m_lastModifiedTimeStampHasBeenSet = true; m_lastModifiedTimeStamp = value; }
157 inline AnomalyDetector& WithLastModifiedTimeStamp(long long value) { SetLastModifiedTimeStamp(value); return *this;}
159
161
166 inline long long GetAnomalyVisibilityTime() const{ return m_anomalyVisibilityTime; }
167 inline bool AnomalyVisibilityTimeHasBeenSet() const { return m_anomalyVisibilityTimeHasBeenSet; }
168 inline void SetAnomalyVisibilityTime(long long value) { m_anomalyVisibilityTimeHasBeenSet = true; m_anomalyVisibilityTime = value; }
169 inline AnomalyDetector& WithAnomalyVisibilityTime(long long value) { SetAnomalyVisibilityTime(value); return *this;}
171 private:
172
173 Aws::String m_anomalyDetectorArn;
174 bool m_anomalyDetectorArnHasBeenSet = false;
175
176 Aws::String m_detectorName;
177 bool m_detectorNameHasBeenSet = false;
178
179 Aws::Vector<Aws::String> m_logGroupArnList;
180 bool m_logGroupArnListHasBeenSet = false;
181
182 EvaluationFrequency m_evaluationFrequency;
183 bool m_evaluationFrequencyHasBeenSet = false;
184
185 Aws::String m_filterPattern;
186 bool m_filterPatternHasBeenSet = false;
187
188 AnomalyDetectorStatus m_anomalyDetectorStatus;
189 bool m_anomalyDetectorStatusHasBeenSet = false;
190
191 Aws::String m_kmsKeyId;
192 bool m_kmsKeyIdHasBeenSet = false;
193
194 long long m_creationTimeStamp;
195 bool m_creationTimeStampHasBeenSet = false;
196
197 long long m_lastModifiedTimeStamp;
198 bool m_lastModifiedTimeStampHasBeenSet = false;
199
200 long long m_anomalyVisibilityTime;
201 bool m_anomalyVisibilityTimeHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace CloudWatchLogs
206} // namespace Aws
const AnomalyDetectorStatus & GetAnomalyDetectorStatus() const
AnomalyDetector & WithDetectorName(const Aws::String &value)
AnomalyDetector & WithKmsKeyId(Aws::String &&value)
AnomalyDetector & AddLogGroupArnList(const Aws::String &value)
void SetAnomalyDetectorStatus(AnomalyDetectorStatus &&value)
AnomalyDetector & WithDetectorName(Aws::String &&value)
AWS_CLOUDWATCHLOGS_API AnomalyDetector()
AnomalyDetector & WithCreationTimeStamp(long long value)
AnomalyDetector & WithFilterPattern(Aws::String &&value)
void SetEvaluationFrequency(EvaluationFrequency &&value)
AnomalyDetector & WithAnomalyVisibilityTime(long long value)
AnomalyDetector & WithAnomalyDetectorStatus(const AnomalyDetectorStatus &value)
void SetKmsKeyId(const Aws::String &value)
AnomalyDetector & WithFilterPattern(const Aws::String &value)
AnomalyDetector & WithDetectorName(const char *value)
AnomalyDetector & WithKmsKeyId(const char *value)
AnomalyDetector & WithLogGroupArnList(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetLogGroupArnList() const
void SetEvaluationFrequency(const EvaluationFrequency &value)
AWS_CLOUDWATCHLOGS_API AnomalyDetector & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDetectorName() const
AnomalyDetector & WithAnomalyDetectorArn(const char *value)
AnomalyDetector & WithAnomalyDetectorStatus(AnomalyDetectorStatus &&value)
AnomalyDetector & WithKmsKeyId(const Aws::String &value)
AnomalyDetector & WithLogGroupArnList(const Aws::Vector< Aws::String > &value)
AnomalyDetector & WithEvaluationFrequency(const EvaluationFrequency &value)
AnomalyDetector & AddLogGroupArnList(const char *value)
void SetFilterPattern(const Aws::String &value)
const EvaluationFrequency & GetEvaluationFrequency() const
void SetDetectorName(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API AnomalyDetector(Aws::Utils::Json::JsonView jsonValue)
AnomalyDetector & WithAnomalyDetectorArn(Aws::String &&value)
void SetAnomalyDetectorArn(Aws::String &&value)
void SetAnomalyDetectorArn(const Aws::String &value)
AnomalyDetector & WithFilterPattern(const char *value)
void SetLogGroupArnList(const Aws::Vector< Aws::String > &value)
void SetLogGroupArnList(Aws::Vector< Aws::String > &&value)
const Aws::String & GetFilterPattern() const
AnomalyDetector & WithEvaluationFrequency(EvaluationFrequency &&value)
void SetAnomalyDetectorStatus(const AnomalyDetectorStatus &value)
AnomalyDetector & WithLastModifiedTimeStamp(long long value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAnomalyDetectorArn() const
AnomalyDetector & WithAnomalyDetectorArn(const Aws::String &value)
AnomalyDetector & AddLogGroupArnList(Aws::String &&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