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>
24namespace CloudWatchLogs
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>
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>
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>>
78 template<
typename LogGroupArnListT = Aws::String>
79 AnomalyDetector&
AddLogGroupArnList(LogGroupArnListT&& value) { m_logGroupArnListHasBeenSet =
true; m_logGroupArnList.emplace_back(std::forward<LogGroupArnListT>(value));
return *
this; }
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>
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>
133 inline void SetCreationTimeStamp(
long long value) { m_creationTimeStampHasBeenSet =
true; m_creationTimeStamp = value; }
143 inline void SetLastModifiedTimeStamp(
long long value) { m_lastModifiedTimeStampHasBeenSet =
true; m_lastModifiedTimeStamp = value; }
155 inline void SetAnomalyVisibilityTime(
long long value) { m_anomalyVisibilityTimeHasBeenSet =
true; m_anomalyVisibilityTime = value; }
161 bool m_anomalyDetectorArnHasBeenSet =
false;
164 bool m_detectorNameHasBeenSet =
false;
167 bool m_logGroupArnListHasBeenSet =
false;
170 bool m_evaluationFrequencyHasBeenSet =
false;
173 bool m_filterPatternHasBeenSet =
false;
176 bool m_anomalyDetectorStatusHasBeenSet =
false;
179 bool m_kmsKeyIdHasBeenSet =
false;
181 long long m_creationTimeStamp{0};
182 bool m_creationTimeStampHasBeenSet =
false;
184 long long m_lastModifiedTimeStamp{0};
185 bool m_lastModifiedTimeStampHasBeenSet =
false;
187 long long m_anomalyVisibilityTime{0};
188 bool m_anomalyVisibilityTimeHasBeenSet =
false;
EvaluationFrequency GetEvaluationFrequency() const
void SetLogGroupArnList(LogGroupArnListT &&value)
AnomalyDetector & WithKmsKeyId(KmsKeyIdT &&value)
bool DetectorNameHasBeenSet() const
bool AnomalyDetectorStatusHasBeenSet() const
AnomalyDetectorStatus GetAnomalyDetectorStatus() const
void SetDetectorName(DetectorNameT &&value)
void SetAnomalyDetectorStatus(AnomalyDetectorStatus value)
bool CreationTimeStampHasBeenSet() const
AnomalyDetector & WithAnomalyDetectorStatus(AnomalyDetectorStatus value)
long long GetAnomalyVisibilityTime() const
AnomalyDetector & WithCreationTimeStamp(long long value)
AnomalyDetector & WithAnomalyVisibilityTime(long long value)
bool AnomalyVisibilityTimeHasBeenSet() const
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
bool KmsKeyIdHasBeenSet() const
bool FilterPatternHasBeenSet() const
AnomalyDetector & WithAnomalyDetectorArn(AnomalyDetectorArnT &&value)
bool LastModifiedTimeStampHasBeenSet() const
AnomalyDetector & AddLogGroupArnList(LogGroupArnListT &&value)
long long GetLastModifiedTimeStamp() const
AnomalyDetector & WithFilterPattern(FilterPatternT &&value)
AnomalyDetector & WithEvaluationFrequency(EvaluationFrequency value)
AWS_CLOUDWATCHLOGS_API AnomalyDetector(Aws::Utils::Json::JsonView jsonValue)
AnomalyDetector & WithDetectorName(DetectorNameT &&value)
void SetLastModifiedTimeStamp(long long value)
void SetCreationTimeStamp(long long value)
const Aws::String & GetFilterPattern() const
long long GetCreationTimeStamp() const
void SetAnomalyVisibilityTime(long long value)
bool AnomalyDetectorArnHasBeenSet() const
AnomalyDetector & WithLastModifiedTimeStamp(long long value)
bool LogGroupArnListHasBeenSet() const
void SetKmsKeyId(KmsKeyIdT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
bool EvaluationFrequencyHasBeenSet() const
const Aws::String & GetAnomalyDetectorArn() const
void SetEvaluationFrequency(EvaluationFrequency value)
const Aws::String & GetKmsKeyId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue