7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/logs/model/EvaluationFrequency.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
17namespace CloudWatchLogs
47 template<
typename LogGroupArnListT = Aws::Vector<Aws::String>>
48 void SetLogGroupArnList(LogGroupArnListT&& value) { m_logGroupArnListHasBeenSet =
true; m_logGroupArnList = std::forward<LogGroupArnListT>(value); }
49 template<
typename LogGroupArnListT = Aws::Vector<Aws::String>>
51 template<
typename LogGroupArnListT = Aws::String>
61 template<
typename DetectorNameT = Aws::String>
62 void SetDetectorName(DetectorNameT&& value) { m_detectorNameHasBeenSet =
true; m_detectorName = std::forward<DetectorNameT>(value); }
63 template<
typename DetectorNameT = Aws::String>
90 template<
typename FilterPatternT = Aws::String>
91 void SetFilterPattern(FilterPatternT&& value) { m_filterPatternHasBeenSet =
true; m_filterPattern = std::forward<FilterPatternT>(value); }
92 template<
typename FilterPatternT = Aws::String>
110 template<
typename KmsKeyIdT = Aws::String>
111 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet =
true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
112 template<
typename KmsKeyIdT = Aws::String>
127 inline void SetAnomalyVisibilityTime(
long long value) { m_anomalyVisibilityTimeHasBeenSet =
true; m_anomalyVisibilityTime = value; }
140 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
141 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
142 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
144 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
146 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
152 bool m_logGroupArnListHasBeenSet =
false;
155 bool m_detectorNameHasBeenSet =
false;
158 bool m_evaluationFrequencyHasBeenSet =
false;
161 bool m_filterPatternHasBeenSet =
false;
164 bool m_kmsKeyIdHasBeenSet =
false;
166 long long m_anomalyVisibilityTime{0};
167 bool m_anomalyVisibilityTimeHasBeenSet =
false;
170 bool m_tagsHasBeenSet =
false;
void SetLogGroupArnList(LogGroupArnListT &&value)
bool FilterPatternHasBeenSet() const
CreateLogAnomalyDetectorRequest & WithFilterPattern(FilterPatternT &&value)
const Aws::String & GetKmsKeyId() const
void SetFilterPattern(FilterPatternT &&value)
CreateLogAnomalyDetectorRequest & WithKmsKeyId(KmsKeyIdT &&value)
EvaluationFrequency GetEvaluationFrequency() const
bool TagsHasBeenSet() const
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetTags(TagsT &&value)
const Aws::Vector< Aws::String > & GetLogGroupArnList() const
const Aws::String & GetFilterPattern() const
void SetEvaluationFrequency(EvaluationFrequency value)
AWS_CLOUDWATCHLOGS_API CreateLogAnomalyDetectorRequest()=default
CreateLogAnomalyDetectorRequest & WithLogGroupArnList(LogGroupArnListT &&value)
CreateLogAnomalyDetectorRequest & AddLogGroupArnList(LogGroupArnListT &&value)
void SetDetectorName(DetectorNameT &&value)
CreateLogAnomalyDetectorRequest & WithEvaluationFrequency(EvaluationFrequency value)
const Aws::String & GetDetectorName() const
long long GetAnomalyVisibilityTime() const
bool AnomalyVisibilityTimeHasBeenSet() const
CreateLogAnomalyDetectorRequest & WithTags(TagsT &&value)
bool DetectorNameHasBeenSet() const
CreateLogAnomalyDetectorRequest & WithAnomalyVisibilityTime(long long value)
CreateLogAnomalyDetectorRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool KmsKeyIdHasBeenSet() const
void SetKmsKeyId(KmsKeyIdT &&value)
bool EvaluationFrequencyHasBeenSet() const
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateLogAnomalyDetectorRequest & WithDetectorName(DetectorNameT &&value)
void SetAnomalyVisibilityTime(long long value)
bool LogGroupArnListHasBeenSet() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector