7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/logs/model/State.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/logs/model/LogEvent.h>
13#include <aws/logs/model/PatternToken.h>
26namespace CloudWatchLogs
56 inline void SetAnomalyId(
const char* value) { m_anomalyIdHasBeenSet =
true; m_anomalyId.assign(value); }
70 inline void SetPatternId(
const char* value) { m_patternIdHasBeenSet =
true; m_patternId.assign(value); }
84 inline void SetAnomalyDetectorArn(
const char* value) { m_anomalyDetectorArnHasBeenSet =
true; m_anomalyDetectorArn.assign(value); }
98 inline void SetPatternString(
const char* value) { m_patternStringHasBeenSet =
true; m_patternString.assign(value); }
113 inline void SetPatternRegex(
const char* value) { m_patternRegexHasBeenSet =
true; m_patternRegex.assign(value); }
130 inline void SetPriority(
const char* value) { m_priorityHasBeenSet =
true; m_priority.assign(value); }
144 inline void SetFirstSeen(
long long value) { m_firstSeenHasBeenSet =
true; m_firstSeen = value; }
156 inline void SetLastSeen(
long long value) { m_lastSeenHasBeenSet =
true; m_lastSeen = value; }
169 inline void SetDescription(
const char* value) { m_descriptionHasBeenSet =
true; m_description.assign(value); }
181 inline void SetActive(
bool value) { m_activeHasBeenSet =
true; m_active = value; }
196 inline void SetState(
const State& value) { m_stateHasBeenSet =
true; m_state = value; }
197 inline void SetState(
State&& value) { m_stateHasBeenSet =
true; m_state = std::move(value); }
217 inline Anomaly&
AddHistogram(
const char* key,
long long value) { m_histogramHasBeenSet =
true; m_histogram.emplace(key, value);
return *
this; }
263 inline Anomaly&
AddLogGroupArnList(
const char* value) { m_logGroupArnListHasBeenSet =
true; m_logGroupArnList.push_back(value);
return *
this; }
274 inline void SetSuppressed(
bool value) { m_suppressedHasBeenSet =
true; m_suppressed = value; }
284 inline void SetSuppressedDate(
long long value) { m_suppressedDateHasBeenSet =
true; m_suppressedDate = value; }
296 inline void SetSuppressedUntil(
long long value) { m_suppressedUntilHasBeenSet =
true; m_suppressedUntil = value; }
314 bool m_anomalyIdHasBeenSet =
false;
317 bool m_patternIdHasBeenSet =
false;
320 bool m_anomalyDetectorArnHasBeenSet =
false;
323 bool m_patternStringHasBeenSet =
false;
326 bool m_patternRegexHasBeenSet =
false;
329 bool m_priorityHasBeenSet =
false;
331 long long m_firstSeen;
332 bool m_firstSeenHasBeenSet =
false;
334 long long m_lastSeen;
335 bool m_lastSeenHasBeenSet =
false;
338 bool m_descriptionHasBeenSet =
false;
341 bool m_activeHasBeenSet =
false;
344 bool m_stateHasBeenSet =
false;
347 bool m_histogramHasBeenSet =
false;
350 bool m_logSamplesHasBeenSet =
false;
353 bool m_patternTokensHasBeenSet =
false;
356 bool m_logGroupArnListHasBeenSet =
false;
359 bool m_suppressedHasBeenSet =
false;
361 long long m_suppressedDate;
362 bool m_suppressedDateHasBeenSet =
false;
364 long long m_suppressedUntil;
365 bool m_suppressedUntilHasBeenSet =
false;
367 bool m_isPatternLevelSuppression;
368 bool m_isPatternLevelSuppressionHasBeenSet =
false;
void SetDescription(const char *value)
Anomaly & WithPriority(const Aws::String &value)
void SetSuppressedUntil(long long value)
const Aws::Vector< PatternToken > & GetPatternTokens() const
void SetPatternId(const Aws::String &value)
bool PatternIdHasBeenSet() const
Anomaly & WithPatternRegex(const char *value)
const Aws::Vector< LogEvent > & GetLogSamples() const
void SetDescription(Aws::String &&value)
void SetAnomalyDetectorArn(const Aws::String &value)
Anomaly & WithLogSamples(const Aws::Vector< LogEvent > &value)
void SetFirstSeen(long long value)
void SetLastSeen(long long value)
const Aws::Map< Aws::String, long long > & GetHistogram() const
Anomaly & WithState(const State &value)
void SetActive(bool value)
const Aws::String & GetDescription() const
Anomaly & AddLogSamples(LogEvent &&value)
void SetPatternId(Aws::String &&value)
const Aws::Vector< Aws::String > & GetLogGroupArnList() const
AWS_CLOUDWATCHLOGS_API Anomaly()
Anomaly & AddPatternTokens(const PatternToken &value)
bool ActiveHasBeenSet() const
Anomaly & WithState(State &&value)
const Aws::String & GetPriority() const
Anomaly & AddHistogram(const Aws::String &key, long long value)
const Aws::String & GetAnomalyDetectorArn() const
Anomaly & AddLogGroupArnList(const char *value)
void SetAnomalyId(const char *value)
void SetPriority(Aws::String &&value)
void SetPatternTokens(Aws::Vector< PatternToken > &&value)
Anomaly & WithIsPatternLevelSuppression(bool value)
Anomaly & WithPatternString(const char *value)
void SetPatternString(const char *value)
long long GetFirstSeen() const
void SetHistogram(const Aws::Map< Aws::String, long long > &value)
Anomaly & WithAnomalyDetectorArn(Aws::String &&value)
long long GetLastSeen() const
void SetPatternRegex(const Aws::String &value)
void SetPatternId(const char *value)
bool PatternStringHasBeenSet() const
void SetPatternString(Aws::String &&value)
void SetAnomalyId(const Aws::String &value)
Anomaly & WithLogGroupArnList(const Aws::Vector< Aws::String > &value)
Anomaly & WithAnomalyId(const Aws::String &value)
void SetPatternString(const Aws::String &value)
void SetLogSamples(const Aws::Vector< LogEvent > &value)
void SetState(State &&value)
Anomaly & WithPriority(Aws::String &&value)
Anomaly & AddLogGroupArnList(Aws::String &&value)
void SetLogSamples(Aws::Vector< LogEvent > &&value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
Anomaly & WithPatternId(const Aws::String &value)
Anomaly & WithLastSeen(long long value)
Anomaly & WithActive(bool value)
Anomaly & WithPatternString(const Aws::String &value)
Anomaly & WithPatternRegex(Aws::String &&value)
Anomaly & AddHistogram(Aws::String &&key, long long value)
bool LogSamplesHasBeenSet() const
const Aws::String & GetPatternId() const
void SetPatternTokens(const Aws::Vector< PatternToken > &value)
bool HistogramHasBeenSet() const
const Aws::String & GetAnomalyId() const
void SetSuppressed(bool value)
Anomaly & AddHistogram(const char *key, long long value)
Anomaly & WithDescription(const char *value)
bool AnomalyIdHasBeenSet() const
bool PatternRegexHasBeenSet() const
bool LogGroupArnListHasBeenSet() const
Anomaly & WithAnomalyId(Aws::String &&value)
Anomaly & WithLogGroupArnList(Aws::Vector< Aws::String > &&value)
Anomaly & WithPatternTokens(Aws::Vector< PatternToken > &&value)
Anomaly & WithPatternTokens(const Aws::Vector< PatternToken > &value)
const Aws::String & GetPatternRegex() const
void SetLogGroupArnList(const Aws::Vector< Aws::String > &value)
void SetPriority(const char *value)
bool FirstSeenHasBeenSet() const
Anomaly & AddLogSamples(const LogEvent &value)
Anomaly & WithPatternId(const char *value)
bool StateHasBeenSet() const
Anomaly & WithDescription(const Aws::String &value)
bool AnomalyDetectorArnHasBeenSet() const
bool IsPatternLevelSuppressionHasBeenSet() const
const State & GetState() const
void SetAnomalyId(Aws::String &&value)
Anomaly & WithAnomalyId(const char *value)
void SetIsPatternLevelSuppression(bool value)
Anomaly & WithFirstSeen(long long value)
bool PriorityHasBeenSet() const
bool PatternTokensHasBeenSet() const
Anomaly & WithLogSamples(Aws::Vector< LogEvent > &&value)
void SetState(const State &value)
AWS_CLOUDWATCHLOGS_API Anomaly & operator=(Aws::Utils::Json::JsonView jsonValue)
Anomaly & WithHistogram(const Aws::Map< Aws::String, long long > &value)
Anomaly & AddPatternTokens(PatternToken &&value)
bool LastSeenHasBeenSet() const
void SetAnomalyDetectorArn(Aws::String &&value)
void SetPatternRegex(Aws::String &&value)
Anomaly & WithPriority(const char *value)
Anomaly & WithAnomalyDetectorArn(const Aws::String &value)
Anomaly & WithDescription(Aws::String &&value)
void SetPatternRegex(const char *value)
Anomaly & WithPatternId(Aws::String &&value)
bool DescriptionHasBeenSet() const
void SetAnomalyDetectorArn(const char *value)
Anomaly & WithAnomalyDetectorArn(const char *value)
Anomaly & WithSuppressedDate(long long value)
bool SuppressedDateHasBeenSet() const
bool GetSuppressed() const
Anomaly & WithHistogram(Aws::Map< Aws::String, long long > &&value)
void SetSuppressedDate(long long value)
bool SuppressedHasBeenSet() const
Anomaly & WithSuppressedUntil(long long value)
Anomaly & WithPatternRegex(const Aws::String &value)
void SetPriority(const Aws::String &value)
long long GetSuppressedDate() const
Anomaly & WithSuppressed(bool value)
Anomaly & AddLogGroupArnList(const Aws::String &value)
long long GetSuppressedUntil() const
Anomaly & WithPatternString(Aws::String &&value)
void SetHistogram(Aws::Map< Aws::String, long long > &&value)
void SetDescription(const Aws::String &value)
bool GetIsPatternLevelSuppression() const
const Aws::String & GetPatternString() const
AWS_CLOUDWATCHLOGS_API Anomaly(Aws::Utils::Json::JsonView jsonValue)
void SetLogGroupArnList(Aws::Vector< Aws::String > &&value)
bool SuppressedUntilHasBeenSet() const
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
Aws::Utils::Json::JsonValue JsonValue