AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AnomalyDetectorArnT = Aws::String>
51 void SetAnomalyDetectorArn(AnomalyDetectorArnT&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::forward<AnomalyDetectorArnT>(value); }
52 template<typename AnomalyDetectorArnT = Aws::String>
53 AnomalyDetector& WithAnomalyDetectorArn(AnomalyDetectorArnT&& value) { SetAnomalyDetectorArn(std::forward<AnomalyDetectorArnT>(value)); return *this;}
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) { m_detectorNameHasBeenSet = true; m_detectorName = std::forward<DetectorNameT>(value); }
64 template<typename DetectorNameT = Aws::String>
65 AnomalyDetector& WithDetectorName(DetectorNameT&& value) { SetDetectorName(std::forward<DetectorNameT>(value)); return *this;}
67
69
72 inline const Aws::Vector<Aws::String>& GetLogGroupArnList() const { return m_logGroupArnList; }
73 inline bool LogGroupArnListHasBeenSet() const { return m_logGroupArnListHasBeenSet; }
74 template<typename LogGroupArnListT = Aws::Vector<Aws::String>>
75 void SetLogGroupArnList(LogGroupArnListT&& value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList = std::forward<LogGroupArnListT>(value); }
76 template<typename LogGroupArnListT = Aws::Vector<Aws::String>>
77 AnomalyDetector& WithLogGroupArnList(LogGroupArnListT&& value) { SetLogGroupArnList(std::forward<LogGroupArnListT>(value)); return *this;}
78 template<typename LogGroupArnListT = Aws::String>
79 AnomalyDetector& AddLogGroupArnList(LogGroupArnListT&& value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList.emplace_back(std::forward<LogGroupArnListT>(value)); return *this; }
81
83
86 inline EvaluationFrequency GetEvaluationFrequency() const { return m_evaluationFrequency; }
87 inline bool EvaluationFrequencyHasBeenSet() const { return m_evaluationFrequencyHasBeenSet; }
88 inline void SetEvaluationFrequency(EvaluationFrequency value) { m_evaluationFrequencyHasBeenSet = true; m_evaluationFrequency = value; }
91
93
94 inline const Aws::String& GetFilterPattern() const { return m_filterPattern; }
95 inline bool FilterPatternHasBeenSet() const { return m_filterPatternHasBeenSet; }
96 template<typename FilterPatternT = Aws::String>
97 void SetFilterPattern(FilterPatternT&& value) { m_filterPatternHasBeenSet = true; m_filterPattern = std::forward<FilterPatternT>(value); }
98 template<typename FilterPatternT = Aws::String>
99 AnomalyDetector& WithFilterPattern(FilterPatternT&& value) { SetFilterPattern(std::forward<FilterPatternT>(value)); return *this;}
101
103
109 inline AnomalyDetectorStatus GetAnomalyDetectorStatus() const { return m_anomalyDetectorStatus; }
110 inline bool AnomalyDetectorStatusHasBeenSet() const { return m_anomalyDetectorStatusHasBeenSet; }
111 inline void SetAnomalyDetectorStatus(AnomalyDetectorStatus value) { m_anomalyDetectorStatusHasBeenSet = true; m_anomalyDetectorStatus = value; }
114
116
119 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
120 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
121 template<typename KmsKeyIdT = Aws::String>
122 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
123 template<typename KmsKeyIdT = Aws::String>
124 AnomalyDetector& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
126
128
131 inline long long GetCreationTimeStamp() const { return m_creationTimeStamp; }
132 inline bool CreationTimeStampHasBeenSet() const { return m_creationTimeStampHasBeenSet; }
133 inline void SetCreationTimeStamp(long long value) { m_creationTimeStampHasBeenSet = true; m_creationTimeStamp = value; }
134 inline AnomalyDetector& WithCreationTimeStamp(long long value) { SetCreationTimeStamp(value); return *this;}
136
138
141 inline long long GetLastModifiedTimeStamp() const { return m_lastModifiedTimeStamp; }
142 inline bool LastModifiedTimeStampHasBeenSet() const { return m_lastModifiedTimeStampHasBeenSet; }
143 inline void SetLastModifiedTimeStamp(long long value) { m_lastModifiedTimeStampHasBeenSet = true; m_lastModifiedTimeStamp = value; }
144 inline AnomalyDetector& WithLastModifiedTimeStamp(long long value) { SetLastModifiedTimeStamp(value); return *this;}
146
148
153 inline long long GetAnomalyVisibilityTime() const { return m_anomalyVisibilityTime; }
154 inline bool AnomalyVisibilityTimeHasBeenSet() const { return m_anomalyVisibilityTimeHasBeenSet; }
155 inline void SetAnomalyVisibilityTime(long long value) { m_anomalyVisibilityTimeHasBeenSet = true; m_anomalyVisibilityTime = value; }
156 inline AnomalyDetector& WithAnomalyVisibilityTime(long long value) { SetAnomalyVisibilityTime(value); return *this;}
158 private:
159
160 Aws::String m_anomalyDetectorArn;
161 bool m_anomalyDetectorArnHasBeenSet = false;
162
163 Aws::String m_detectorName;
164 bool m_detectorNameHasBeenSet = false;
165
166 Aws::Vector<Aws::String> m_logGroupArnList;
167 bool m_logGroupArnListHasBeenSet = false;
168
170 bool m_evaluationFrequencyHasBeenSet = false;
171
172 Aws::String m_filterPattern;
173 bool m_filterPatternHasBeenSet = false;
174
176 bool m_anomalyDetectorStatusHasBeenSet = false;
177
178 Aws::String m_kmsKeyId;
179 bool m_kmsKeyIdHasBeenSet = false;
180
181 long long m_creationTimeStamp{0};
182 bool m_creationTimeStampHasBeenSet = false;
183
184 long long m_lastModifiedTimeStamp{0};
185 bool m_lastModifiedTimeStampHasBeenSet = false;
186
187 long long m_anomalyVisibilityTime{0};
188 bool m_anomalyVisibilityTimeHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace CloudWatchLogs
193} // 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