/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudWatchLogs { namespace Model { /** *

This structure represents one anomaly that has been found by a logs anomaly * detector.

For more information about patterns and anomalies, see CreateLogAnomalyDetector. *

See Also:

AWS API * Reference

*/ class Anomaly { public: AWS_CLOUDWATCHLOGS_API Anomaly(); AWS_CLOUDWATCHLOGS_API Anomaly(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API Anomaly& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The unique ID that CloudWatch Logs assigned to this anomaly.

*/ inline const Aws::String& GetAnomalyId() const{ return m_anomalyId; } /** *

The unique ID that CloudWatch Logs assigned to this anomaly.

*/ inline bool AnomalyIdHasBeenSet() const { return m_anomalyIdHasBeenSet; } /** *

The unique ID that CloudWatch Logs assigned to this anomaly.

*/ inline void SetAnomalyId(const Aws::String& value) { m_anomalyIdHasBeenSet = true; m_anomalyId = value; } /** *

The unique ID that CloudWatch Logs assigned to this anomaly.

*/ inline void SetAnomalyId(Aws::String&& value) { m_anomalyIdHasBeenSet = true; m_anomalyId = std::move(value); } /** *

The unique ID that CloudWatch Logs assigned to this anomaly.

*/ inline void SetAnomalyId(const char* value) { m_anomalyIdHasBeenSet = true; m_anomalyId.assign(value); } /** *

The unique ID that CloudWatch Logs assigned to this anomaly.

*/ inline Anomaly& WithAnomalyId(const Aws::String& value) { SetAnomalyId(value); return *this;} /** *

The unique ID that CloudWatch Logs assigned to this anomaly.

*/ inline Anomaly& WithAnomalyId(Aws::String&& value) { SetAnomalyId(std::move(value)); return *this;} /** *

The unique ID that CloudWatch Logs assigned to this anomaly.

*/ inline Anomaly& WithAnomalyId(const char* value) { SetAnomalyId(value); return *this;} /** *

The ID of the pattern used to help identify this anomaly.

*/ inline const Aws::String& GetPatternId() const{ return m_patternId; } /** *

The ID of the pattern used to help identify this anomaly.

*/ inline bool PatternIdHasBeenSet() const { return m_patternIdHasBeenSet; } /** *

The ID of the pattern used to help identify this anomaly.

*/ inline void SetPatternId(const Aws::String& value) { m_patternIdHasBeenSet = true; m_patternId = value; } /** *

The ID of the pattern used to help identify this anomaly.

*/ inline void SetPatternId(Aws::String&& value) { m_patternIdHasBeenSet = true; m_patternId = std::move(value); } /** *

The ID of the pattern used to help identify this anomaly.

*/ inline void SetPatternId(const char* value) { m_patternIdHasBeenSet = true; m_patternId.assign(value); } /** *

The ID of the pattern used to help identify this anomaly.

*/ inline Anomaly& WithPatternId(const Aws::String& value) { SetPatternId(value); return *this;} /** *

The ID of the pattern used to help identify this anomaly.

*/ inline Anomaly& WithPatternId(Aws::String&& value) { SetPatternId(std::move(value)); return *this;} /** *

The ID of the pattern used to help identify this anomaly.

*/ inline Anomaly& WithPatternId(const char* value) { SetPatternId(value); return *this;} /** *

The ARN of the anomaly detector that identified this anomaly.

*/ inline const Aws::String& GetAnomalyDetectorArn() const{ return m_anomalyDetectorArn; } /** *

The ARN of the anomaly detector that identified this anomaly.

*/ inline bool AnomalyDetectorArnHasBeenSet() const { return m_anomalyDetectorArnHasBeenSet; } /** *

The ARN of the anomaly detector that identified this anomaly.

*/ inline void SetAnomalyDetectorArn(const Aws::String& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = value; } /** *

The ARN of the anomaly detector that identified this anomaly.

*/ inline void SetAnomalyDetectorArn(Aws::String&& value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn = std::move(value); } /** *

The ARN of the anomaly detector that identified this anomaly.

*/ inline void SetAnomalyDetectorArn(const char* value) { m_anomalyDetectorArnHasBeenSet = true; m_anomalyDetectorArn.assign(value); } /** *

The ARN of the anomaly detector that identified this anomaly.

*/ inline Anomaly& WithAnomalyDetectorArn(const Aws::String& value) { SetAnomalyDetectorArn(value); return *this;} /** *

The ARN of the anomaly detector that identified this anomaly.

*/ inline Anomaly& WithAnomalyDetectorArn(Aws::String&& value) { SetAnomalyDetectorArn(std::move(value)); return *this;} /** *

The ARN of the anomaly detector that identified this anomaly.

*/ inline Anomaly& WithAnomalyDetectorArn(const char* value) { SetAnomalyDetectorArn(value); return *this;} /** *

The pattern used to help identify this anomaly, in string format.

*/ inline const Aws::String& GetPatternString() const{ return m_patternString; } /** *

The pattern used to help identify this anomaly, in string format.

*/ inline bool PatternStringHasBeenSet() const { return m_patternStringHasBeenSet; } /** *

The pattern used to help identify this anomaly, in string format.

*/ inline void SetPatternString(const Aws::String& value) { m_patternStringHasBeenSet = true; m_patternString = value; } /** *

The pattern used to help identify this anomaly, in string format.

*/ inline void SetPatternString(Aws::String&& value) { m_patternStringHasBeenSet = true; m_patternString = std::move(value); } /** *

The pattern used to help identify this anomaly, in string format.

*/ inline void SetPatternString(const char* value) { m_patternStringHasBeenSet = true; m_patternString.assign(value); } /** *

The pattern used to help identify this anomaly, in string format.

*/ inline Anomaly& WithPatternString(const Aws::String& value) { SetPatternString(value); return *this;} /** *

The pattern used to help identify this anomaly, in string format.

*/ inline Anomaly& WithPatternString(Aws::String&& value) { SetPatternString(std::move(value)); return *this;} /** *

The pattern used to help identify this anomaly, in string format.

*/ inline Anomaly& WithPatternString(const char* value) { SetPatternString(value); return *this;} /** *

The pattern used to help identify this anomaly, in regular expression * format.

*/ inline const Aws::String& GetPatternRegex() const{ return m_patternRegex; } /** *

The pattern used to help identify this anomaly, in regular expression * format.

*/ inline bool PatternRegexHasBeenSet() const { return m_patternRegexHasBeenSet; } /** *

The pattern used to help identify this anomaly, in regular expression * format.

*/ inline void SetPatternRegex(const Aws::String& value) { m_patternRegexHasBeenSet = true; m_patternRegex = value; } /** *

The pattern used to help identify this anomaly, in regular expression * format.

*/ inline void SetPatternRegex(Aws::String&& value) { m_patternRegexHasBeenSet = true; m_patternRegex = std::move(value); } /** *

The pattern used to help identify this anomaly, in regular expression * format.

*/ inline void SetPatternRegex(const char* value) { m_patternRegexHasBeenSet = true; m_patternRegex.assign(value); } /** *

The pattern used to help identify this anomaly, in regular expression * format.

*/ inline Anomaly& WithPatternRegex(const Aws::String& value) { SetPatternRegex(value); return *this;} /** *

The pattern used to help identify this anomaly, in regular expression * format.

*/ inline Anomaly& WithPatternRegex(Aws::String&& value) { SetPatternRegex(std::move(value)); return *this;} /** *

The pattern used to help identify this anomaly, in regular expression * format.

*/ inline Anomaly& WithPatternRegex(const char* value) { SetPatternRegex(value); return *this;} /** *

The priority level of this anomaly, as determined by CloudWatch Logs. * Priority is computed based on log severity labels such as FATAL and * ERROR and the amount of deviation from the baseline. Possible * values are HIGH, MEDIUM, and LOW.

*/ inline const Aws::String& GetPriority() const{ return m_priority; } /** *

The priority level of this anomaly, as determined by CloudWatch Logs. * Priority is computed based on log severity labels such as FATAL and * ERROR and the amount of deviation from the baseline. Possible * values are HIGH, MEDIUM, and LOW.

*/ inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; } /** *

The priority level of this anomaly, as determined by CloudWatch Logs. * Priority is computed based on log severity labels such as FATAL and * ERROR and the amount of deviation from the baseline. Possible * values are HIGH, MEDIUM, and LOW.

*/ inline void SetPriority(const Aws::String& value) { m_priorityHasBeenSet = true; m_priority = value; } /** *

The priority level of this anomaly, as determined by CloudWatch Logs. * Priority is computed based on log severity labels such as FATAL and * ERROR and the amount of deviation from the baseline. Possible * values are HIGH, MEDIUM, and LOW.

*/ inline void SetPriority(Aws::String&& value) { m_priorityHasBeenSet = true; m_priority = std::move(value); } /** *

The priority level of this anomaly, as determined by CloudWatch Logs. * Priority is computed based on log severity labels such as FATAL and * ERROR and the amount of deviation from the baseline. Possible * values are HIGH, MEDIUM, and LOW.

*/ inline void SetPriority(const char* value) { m_priorityHasBeenSet = true; m_priority.assign(value); } /** *

The priority level of this anomaly, as determined by CloudWatch Logs. * Priority is computed based on log severity labels such as FATAL and * ERROR and the amount of deviation from the baseline. Possible * values are HIGH, MEDIUM, and LOW.

*/ inline Anomaly& WithPriority(const Aws::String& value) { SetPriority(value); return *this;} /** *

The priority level of this anomaly, as determined by CloudWatch Logs. * Priority is computed based on log severity labels such as FATAL and * ERROR and the amount of deviation from the baseline. Possible * values are HIGH, MEDIUM, and LOW.

*/ inline Anomaly& WithPriority(Aws::String&& value) { SetPriority(std::move(value)); return *this;} /** *

The priority level of this anomaly, as determined by CloudWatch Logs. * Priority is computed based on log severity labels such as FATAL and * ERROR and the amount of deviation from the baseline. Possible * values are HIGH, MEDIUM, and LOW.

*/ inline Anomaly& WithPriority(const char* value) { SetPriority(value); return *this;} /** *

The date and time when the anomaly detector first saw this anomaly. It is * specified as epoch time, which is the number of seconds since January 1, * 1970, 00:00:00 UTC.

*/ inline long long GetFirstSeen() const{ return m_firstSeen; } /** *

The date and time when the anomaly detector first saw this anomaly. It is * specified as epoch time, which is the number of seconds since January 1, * 1970, 00:00:00 UTC.

*/ inline bool FirstSeenHasBeenSet() const { return m_firstSeenHasBeenSet; } /** *

The date and time when the anomaly detector first saw this anomaly. It is * specified as epoch time, which is the number of seconds since January 1, * 1970, 00:00:00 UTC.

*/ inline void SetFirstSeen(long long value) { m_firstSeenHasBeenSet = true; m_firstSeen = value; } /** *

The date and time when the anomaly detector first saw this anomaly. It is * specified as epoch time, which is the number of seconds since January 1, * 1970, 00:00:00 UTC.

*/ inline Anomaly& WithFirstSeen(long long value) { SetFirstSeen(value); return *this;} /** *

The date and time when the anomaly detector most recently saw this anomaly. * It is specified as epoch time, which is the number of seconds since * January 1, 1970, 00:00:00 UTC.

*/ inline long long GetLastSeen() const{ return m_lastSeen; } /** *

The date and time when the anomaly detector most recently saw this anomaly. * It is specified as epoch time, which is the number of seconds since * January 1, 1970, 00:00:00 UTC.

*/ inline bool LastSeenHasBeenSet() const { return m_lastSeenHasBeenSet; } /** *

The date and time when the anomaly detector most recently saw this anomaly. * It is specified as epoch time, which is the number of seconds since * January 1, 1970, 00:00:00 UTC.

*/ inline void SetLastSeen(long long value) { m_lastSeenHasBeenSet = true; m_lastSeen = value; } /** *

The date and time when the anomaly detector most recently saw this anomaly. * It is specified as epoch time, which is the number of seconds since * January 1, 1970, 00:00:00 UTC.

*/ inline Anomaly& WithLastSeen(long long value) { SetLastSeen(value); return *this;} /** *

A human-readable description of the anomaly. This description is generated by * CloudWatch Logs.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A human-readable description of the anomaly. This description is generated by * CloudWatch Logs.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A human-readable description of the anomaly. This description is generated by * CloudWatch Logs.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A human-readable description of the anomaly. This description is generated by * CloudWatch Logs.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A human-readable description of the anomaly. This description is generated by * CloudWatch Logs.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A human-readable description of the anomaly. This description is generated by * CloudWatch Logs.

*/ inline Anomaly& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A human-readable description of the anomaly. This description is generated by * CloudWatch Logs.

*/ inline Anomaly& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A human-readable description of the anomaly. This description is generated by * CloudWatch Logs.

*/ inline Anomaly& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Specifies whether this anomaly is still ongoing.

*/ inline bool GetActive() const{ return m_active; } /** *

Specifies whether this anomaly is still ongoing.

*/ inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; } /** *

Specifies whether this anomaly is still ongoing.

*/ inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; } /** *

Specifies whether this anomaly is still ongoing.

*/ inline Anomaly& WithActive(bool value) { SetActive(value); return *this;} /** *

Indicates the current state of this anomaly. If it is still being treated as * an anomaly, the value is Active. If you have suppressed this * anomaly by using the UpdateAnomaly * operation, the value is Suppressed. If this behavior is now * considered to be normal, the value is Baseline.

*/ inline const State& GetState() const{ return m_state; } /** *

Indicates the current state of this anomaly. If it is still being treated as * an anomaly, the value is Active. If you have suppressed this * anomaly by using the UpdateAnomaly * operation, the value is Suppressed. If this behavior is now * considered to be normal, the value is Baseline.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

Indicates the current state of this anomaly. If it is still being treated as * an anomaly, the value is Active. If you have suppressed this * anomaly by using the UpdateAnomaly * operation, the value is Suppressed. If this behavior is now * considered to be normal, the value is Baseline.

*/ inline void SetState(const State& value) { m_stateHasBeenSet = true; m_state = value; } /** *

Indicates the current state of this anomaly. If it is still being treated as * an anomaly, the value is Active. If you have suppressed this * anomaly by using the UpdateAnomaly * operation, the value is Suppressed. If this behavior is now * considered to be normal, the value is Baseline.

*/ inline void SetState(State&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

Indicates the current state of this anomaly. If it is still being treated as * an anomaly, the value is Active. If you have suppressed this * anomaly by using the UpdateAnomaly * operation, the value is Suppressed. If this behavior is now * considered to be normal, the value is Baseline.

*/ inline Anomaly& WithState(const State& value) { SetState(value); return *this;} /** *

Indicates the current state of this anomaly. If it is still being treated as * an anomaly, the value is Active. If you have suppressed this * anomaly by using the UpdateAnomaly * operation, the value is Suppressed. If this behavior is now * considered to be normal, the value is Baseline.

*/ inline Anomaly& WithState(State&& value) { SetState(std::move(value)); return *this;} /** *

A map showing times when the anomaly detector ran, and the number of * occurrences of this anomaly that were detected at each of those runs. The times * are specified in epoch time, which is the number of seconds since January * 1, 1970, 00:00:00 UTC.

*/ inline const Aws::Map& GetHistogram() const{ return m_histogram; } /** *

A map showing times when the anomaly detector ran, and the number of * occurrences of this anomaly that were detected at each of those runs. The times * are specified in epoch time, which is the number of seconds since January * 1, 1970, 00:00:00 UTC.

*/ inline bool HistogramHasBeenSet() const { return m_histogramHasBeenSet; } /** *

A map showing times when the anomaly detector ran, and the number of * occurrences of this anomaly that were detected at each of those runs. The times * are specified in epoch time, which is the number of seconds since January * 1, 1970, 00:00:00 UTC.

*/ inline void SetHistogram(const Aws::Map& value) { m_histogramHasBeenSet = true; m_histogram = value; } /** *

A map showing times when the anomaly detector ran, and the number of * occurrences of this anomaly that were detected at each of those runs. The times * are specified in epoch time, which is the number of seconds since January * 1, 1970, 00:00:00 UTC.

*/ inline void SetHistogram(Aws::Map&& value) { m_histogramHasBeenSet = true; m_histogram = std::move(value); } /** *

A map showing times when the anomaly detector ran, and the number of * occurrences of this anomaly that were detected at each of those runs. The times * are specified in epoch time, which is the number of seconds since January * 1, 1970, 00:00:00 UTC.

*/ inline Anomaly& WithHistogram(const Aws::Map& value) { SetHistogram(value); return *this;} /** *

A map showing times when the anomaly detector ran, and the number of * occurrences of this anomaly that were detected at each of those runs. The times * are specified in epoch time, which is the number of seconds since January * 1, 1970, 00:00:00 UTC.

*/ inline Anomaly& WithHistogram(Aws::Map&& value) { SetHistogram(std::move(value)); return *this;} /** *

A map showing times when the anomaly detector ran, and the number of * occurrences of this anomaly that were detected at each of those runs. The times * are specified in epoch time, which is the number of seconds since January * 1, 1970, 00:00:00 UTC.

*/ inline Anomaly& AddHistogram(const Aws::String& key, long long value) { m_histogramHasBeenSet = true; m_histogram.emplace(key, value); return *this; } /** *

A map showing times when the anomaly detector ran, and the number of * occurrences of this anomaly that were detected at each of those runs. The times * are specified in epoch time, which is the number of seconds since January * 1, 1970, 00:00:00 UTC.

*/ inline Anomaly& AddHistogram(Aws::String&& key, long long value) { m_histogramHasBeenSet = true; m_histogram.emplace(std::move(key), value); return *this; } /** *

A map showing times when the anomaly detector ran, and the number of * occurrences of this anomaly that were detected at each of those runs. The times * are specified in epoch time, which is the number of seconds since January * 1, 1970, 00:00:00 UTC.

*/ inline Anomaly& AddHistogram(const char* key, long long value) { m_histogramHasBeenSet = true; m_histogram.emplace(key, value); return *this; } /** *

An array of sample log event messages that are considered to be part of this * anomaly.

*/ inline const Aws::Vector& GetLogSamples() const{ return m_logSamples; } /** *

An array of sample log event messages that are considered to be part of this * anomaly.

*/ inline bool LogSamplesHasBeenSet() const { return m_logSamplesHasBeenSet; } /** *

An array of sample log event messages that are considered to be part of this * anomaly.

*/ inline void SetLogSamples(const Aws::Vector& value) { m_logSamplesHasBeenSet = true; m_logSamples = value; } /** *

An array of sample log event messages that are considered to be part of this * anomaly.

*/ inline void SetLogSamples(Aws::Vector&& value) { m_logSamplesHasBeenSet = true; m_logSamples = std::move(value); } /** *

An array of sample log event messages that are considered to be part of this * anomaly.

*/ inline Anomaly& WithLogSamples(const Aws::Vector& value) { SetLogSamples(value); return *this;} /** *

An array of sample log event messages that are considered to be part of this * anomaly.

*/ inline Anomaly& WithLogSamples(Aws::Vector&& value) { SetLogSamples(std::move(value)); return *this;} /** *

An array of sample log event messages that are considered to be part of this * anomaly.

*/ inline Anomaly& AddLogSamples(const LogEvent& value) { m_logSamplesHasBeenSet = true; m_logSamples.push_back(value); return *this; } /** *

An array of sample log event messages that are considered to be part of this * anomaly.

*/ inline Anomaly& AddLogSamples(LogEvent&& value) { m_logSamplesHasBeenSet = true; m_logSamples.push_back(std::move(value)); return *this; } /** *

An array of structures where each structure contains information about one * token that makes up the pattern.

*/ inline const Aws::Vector& GetPatternTokens() const{ return m_patternTokens; } /** *

An array of structures where each structure contains information about one * token that makes up the pattern.

*/ inline bool PatternTokensHasBeenSet() const { return m_patternTokensHasBeenSet; } /** *

An array of structures where each structure contains information about one * token that makes up the pattern.

*/ inline void SetPatternTokens(const Aws::Vector& value) { m_patternTokensHasBeenSet = true; m_patternTokens = value; } /** *

An array of structures where each structure contains information about one * token that makes up the pattern.

*/ inline void SetPatternTokens(Aws::Vector&& value) { m_patternTokensHasBeenSet = true; m_patternTokens = std::move(value); } /** *

An array of structures where each structure contains information about one * token that makes up the pattern.

*/ inline Anomaly& WithPatternTokens(const Aws::Vector& value) { SetPatternTokens(value); return *this;} /** *

An array of structures where each structure contains information about one * token that makes up the pattern.

*/ inline Anomaly& WithPatternTokens(Aws::Vector&& value) { SetPatternTokens(std::move(value)); return *this;} /** *

An array of structures where each structure contains information about one * token that makes up the pattern.

*/ inline Anomaly& AddPatternTokens(const PatternToken& value) { m_patternTokensHasBeenSet = true; m_patternTokens.push_back(value); return *this; } /** *

An array of structures where each structure contains information about one * token that makes up the pattern.

*/ inline Anomaly& AddPatternTokens(PatternToken&& value) { m_patternTokensHasBeenSet = true; m_patternTokens.push_back(std::move(value)); return *this; } /** *

An array of ARNS of the log groups that contained log events considered to be * part of this anomaly.

*/ inline const Aws::Vector& GetLogGroupArnList() const{ return m_logGroupArnList; } /** *

An array of ARNS of the log groups that contained log events considered to be * part of this anomaly.

*/ inline bool LogGroupArnListHasBeenSet() const { return m_logGroupArnListHasBeenSet; } /** *

An array of ARNS of the log groups that contained log events considered to be * part of this anomaly.

*/ inline void SetLogGroupArnList(const Aws::Vector& value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList = value; } /** *

An array of ARNS of the log groups that contained log events considered to be * part of this anomaly.

*/ inline void SetLogGroupArnList(Aws::Vector&& value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList = std::move(value); } /** *

An array of ARNS of the log groups that contained log events considered to be * part of this anomaly.

*/ inline Anomaly& WithLogGroupArnList(const Aws::Vector& value) { SetLogGroupArnList(value); return *this;} /** *

An array of ARNS of the log groups that contained log events considered to be * part of this anomaly.

*/ inline Anomaly& WithLogGroupArnList(Aws::Vector&& value) { SetLogGroupArnList(std::move(value)); return *this;} /** *

An array of ARNS of the log groups that contained log events considered to be * part of this anomaly.

*/ inline Anomaly& AddLogGroupArnList(const Aws::String& value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList.push_back(value); return *this; } /** *

An array of ARNS of the log groups that contained log events considered to be * part of this anomaly.

*/ inline Anomaly& AddLogGroupArnList(Aws::String&& value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList.push_back(std::move(value)); return *this; } /** *

An array of ARNS of the log groups that contained log events considered to be * part of this anomaly.

*/ inline Anomaly& AddLogGroupArnList(const char* value) { m_logGroupArnListHasBeenSet = true; m_logGroupArnList.push_back(value); return *this; } /** *

Indicates whether this anomaly is currently suppressed. To suppress an * anomaly, use UpdateAnomaly.

*/ inline bool GetSuppressed() const{ return m_suppressed; } /** *

Indicates whether this anomaly is currently suppressed. To suppress an * anomaly, use UpdateAnomaly.

*/ inline bool SuppressedHasBeenSet() const { return m_suppressedHasBeenSet; } /** *

Indicates whether this anomaly is currently suppressed. To suppress an * anomaly, use UpdateAnomaly.

*/ inline void SetSuppressed(bool value) { m_suppressedHasBeenSet = true; m_suppressed = value; } /** *

Indicates whether this anomaly is currently suppressed. To suppress an * anomaly, use UpdateAnomaly.

*/ inline Anomaly& WithSuppressed(bool value) { SetSuppressed(value); return *this;} /** *

If the anomaly is suppressed, this indicates when it was suppressed.

*/ inline long long GetSuppressedDate() const{ return m_suppressedDate; } /** *

If the anomaly is suppressed, this indicates when it was suppressed.

*/ inline bool SuppressedDateHasBeenSet() const { return m_suppressedDateHasBeenSet; } /** *

If the anomaly is suppressed, this indicates when it was suppressed.

*/ inline void SetSuppressedDate(long long value) { m_suppressedDateHasBeenSet = true; m_suppressedDate = value; } /** *

If the anomaly is suppressed, this indicates when it was suppressed.

*/ inline Anomaly& WithSuppressedDate(long long value) { SetSuppressedDate(value); return *this;} /** *

If the anomaly is suppressed, this indicates when the suppression will end. * If this value is 0, the anomaly was suppressed with no expiration, * with the INFINITE value.

*/ inline long long GetSuppressedUntil() const{ return m_suppressedUntil; } /** *

If the anomaly is suppressed, this indicates when the suppression will end. * If this value is 0, the anomaly was suppressed with no expiration, * with the INFINITE value.

*/ inline bool SuppressedUntilHasBeenSet() const { return m_suppressedUntilHasBeenSet; } /** *

If the anomaly is suppressed, this indicates when the suppression will end. * If this value is 0, the anomaly was suppressed with no expiration, * with the INFINITE value.

*/ inline void SetSuppressedUntil(long long value) { m_suppressedUntilHasBeenSet = true; m_suppressedUntil = value; } /** *

If the anomaly is suppressed, this indicates when the suppression will end. * If this value is 0, the anomaly was suppressed with no expiration, * with the INFINITE value.

*/ inline Anomaly& WithSuppressedUntil(long long value) { SetSuppressedUntil(value); return *this;} /** *

If this anomaly is suppressed, this field is true if the * suppression is because the pattern is suppressed. If false, then * only this particular anomaly is suppressed.

*/ inline bool GetIsPatternLevelSuppression() const{ return m_isPatternLevelSuppression; } /** *

If this anomaly is suppressed, this field is true if the * suppression is because the pattern is suppressed. If false, then * only this particular anomaly is suppressed.

*/ inline bool IsPatternLevelSuppressionHasBeenSet() const { return m_isPatternLevelSuppressionHasBeenSet; } /** *

If this anomaly is suppressed, this field is true if the * suppression is because the pattern is suppressed. If false, then * only this particular anomaly is suppressed.

*/ inline void SetIsPatternLevelSuppression(bool value) { m_isPatternLevelSuppressionHasBeenSet = true; m_isPatternLevelSuppression = value; } /** *

If this anomaly is suppressed, this field is true if the * suppression is because the pattern is suppressed. If false, then * only this particular anomaly is suppressed.

*/ inline Anomaly& WithIsPatternLevelSuppression(bool value) { SetIsPatternLevelSuppression(value); return *this;} private: Aws::String m_anomalyId; bool m_anomalyIdHasBeenSet = false; Aws::String m_patternId; bool m_patternIdHasBeenSet = false; Aws::String m_anomalyDetectorArn; bool m_anomalyDetectorArnHasBeenSet = false; Aws::String m_patternString; bool m_patternStringHasBeenSet = false; Aws::String m_patternRegex; bool m_patternRegexHasBeenSet = false; Aws::String m_priority; bool m_priorityHasBeenSet = false; long long m_firstSeen; bool m_firstSeenHasBeenSet = false; long long m_lastSeen; bool m_lastSeenHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; bool m_active; bool m_activeHasBeenSet = false; State m_state; bool m_stateHasBeenSet = false; Aws::Map m_histogram; bool m_histogramHasBeenSet = false; Aws::Vector m_logSamples; bool m_logSamplesHasBeenSet = false; Aws::Vector m_patternTokens; bool m_patternTokensHasBeenSet = false; Aws::Vector m_logGroupArnList; bool m_logGroupArnListHasBeenSet = false; bool m_suppressed; bool m_suppressedHasBeenSet = false; long long m_suppressedDate; bool m_suppressedDateHasBeenSet = false; long long m_suppressedUntil; bool m_suppressedUntilHasBeenSet = false; bool m_isPatternLevelSuppression; bool m_isPatternLevelSuppressionHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws