/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CloudWatchLogs { namespace Model { class GetLogAnomalyDetectorResult { public: AWS_CLOUDWATCHLOGS_API GetLogAnomalyDetectorResult(); AWS_CLOUDWATCHLOGS_API GetLogAnomalyDetectorResult(const Aws::AmazonWebServiceResult& result); AWS_CLOUDWATCHLOGS_API GetLogAnomalyDetectorResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the log anomaly detector

*/ inline const Aws::String& GetDetectorName() const{ return m_detectorName; } /** *

The name of the log anomaly detector

*/ inline void SetDetectorName(const Aws::String& value) { m_detectorName = value; } /** *

The name of the log anomaly detector

*/ inline void SetDetectorName(Aws::String&& value) { m_detectorName = std::move(value); } /** *

The name of the log anomaly detector

*/ inline void SetDetectorName(const char* value) { m_detectorName.assign(value); } /** *

The name of the log anomaly detector

*/ inline GetLogAnomalyDetectorResult& WithDetectorName(const Aws::String& value) { SetDetectorName(value); return *this;} /** *

The name of the log anomaly detector

*/ inline GetLogAnomalyDetectorResult& WithDetectorName(Aws::String&& value) { SetDetectorName(std::move(value)); return *this;} /** *

The name of the log anomaly detector

*/ inline GetLogAnomalyDetectorResult& WithDetectorName(const char* value) { SetDetectorName(value); return *this;} /** *

An array of structures, where each structure contains the ARN of a log group * associated with this anomaly detector.

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

An array of structures, where each structure contains the ARN of a log group * associated with this anomaly detector.

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

An array of structures, where each structure contains the ARN of a log group * associated with this anomaly detector.

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

An array of structures, where each structure contains the ARN of a log group * associated with this anomaly detector.

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

An array of structures, where each structure contains the ARN of a log group * associated with this anomaly detector.

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

An array of structures, where each structure contains the ARN of a log group * associated with this anomaly detector.

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

An array of structures, where each structure contains the ARN of a log group * associated with this anomaly detector.

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

An array of structures, where each structure contains the ARN of a log group * associated with this anomaly detector.

*/ inline GetLogAnomalyDetectorResult& AddLogGroupArnList(const char* value) { m_logGroupArnList.push_back(value); return *this; } /** *

Specifies how often the anomaly detector runs and look for anomalies. Set * this value according to the frequency that the log group receives new logs. For * example, if the log group receives new log events every 10 minutes, then setting * evaluationFrequency to FIFTEEN_MIN might be * appropriate.

*/ inline const EvaluationFrequency& GetEvaluationFrequency() const{ return m_evaluationFrequency; } /** *

Specifies how often the anomaly detector runs and look for anomalies. Set * this value according to the frequency that the log group receives new logs. For * example, if the log group receives new log events every 10 minutes, then setting * evaluationFrequency to FIFTEEN_MIN might be * appropriate.

*/ inline void SetEvaluationFrequency(const EvaluationFrequency& value) { m_evaluationFrequency = value; } /** *

Specifies how often the anomaly detector runs and look for anomalies. Set * this value according to the frequency that the log group receives new logs. For * example, if the log group receives new log events every 10 minutes, then setting * evaluationFrequency to FIFTEEN_MIN might be * appropriate.

*/ inline void SetEvaluationFrequency(EvaluationFrequency&& value) { m_evaluationFrequency = std::move(value); } /** *

Specifies how often the anomaly detector runs and look for anomalies. Set * this value according to the frequency that the log group receives new logs. For * example, if the log group receives new log events every 10 minutes, then setting * evaluationFrequency to FIFTEEN_MIN might be * appropriate.

*/ inline GetLogAnomalyDetectorResult& WithEvaluationFrequency(const EvaluationFrequency& value) { SetEvaluationFrequency(value); return *this;} /** *

Specifies how often the anomaly detector runs and look for anomalies. Set * this value according to the frequency that the log group receives new logs. For * example, if the log group receives new log events every 10 minutes, then setting * evaluationFrequency to FIFTEEN_MIN might be * appropriate.

*/ inline GetLogAnomalyDetectorResult& WithEvaluationFrequency(EvaluationFrequency&& value) { SetEvaluationFrequency(std::move(value)); return *this;} inline const Aws::String& GetFilterPattern() const{ return m_filterPattern; } inline void SetFilterPattern(const Aws::String& value) { m_filterPattern = value; } inline void SetFilterPattern(Aws::String&& value) { m_filterPattern = std::move(value); } inline void SetFilterPattern(const char* value) { m_filterPattern.assign(value); } inline GetLogAnomalyDetectorResult& WithFilterPattern(const Aws::String& value) { SetFilterPattern(value); return *this;} inline GetLogAnomalyDetectorResult& WithFilterPattern(Aws::String&& value) { SetFilterPattern(std::move(value)); return *this;} inline GetLogAnomalyDetectorResult& WithFilterPattern(const char* value) { SetFilterPattern(value); return *this;} /** *

Specifies whether the anomaly detector is currently active. To change its * status, use the enabled parameter in the UpdateLogAnomalyDetector * operation.

*/ inline const AnomalyDetectorStatus& GetAnomalyDetectorStatus() const{ return m_anomalyDetectorStatus; } /** *

Specifies whether the anomaly detector is currently active. To change its * status, use the enabled parameter in the UpdateLogAnomalyDetector * operation.

*/ inline void SetAnomalyDetectorStatus(const AnomalyDetectorStatus& value) { m_anomalyDetectorStatus = value; } /** *

Specifies whether the anomaly detector is currently active. To change its * status, use the enabled parameter in the UpdateLogAnomalyDetector * operation.

*/ inline void SetAnomalyDetectorStatus(AnomalyDetectorStatus&& value) { m_anomalyDetectorStatus = std::move(value); } /** *

Specifies whether the anomaly detector is currently active. To change its * status, use the enabled parameter in the UpdateLogAnomalyDetector * operation.

*/ inline GetLogAnomalyDetectorResult& WithAnomalyDetectorStatus(const AnomalyDetectorStatus& value) { SetAnomalyDetectorStatus(value); return *this;} /** *

Specifies whether the anomaly detector is currently active. To change its * status, use the enabled parameter in the UpdateLogAnomalyDetector * operation.

*/ inline GetLogAnomalyDetectorResult& WithAnomalyDetectorStatus(AnomalyDetectorStatus&& value) { SetAnomalyDetectorStatus(std::move(value)); return *this;} /** *

The ID of the KMS key assigned to this anomaly detector, if any.

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

The ID of the KMS key assigned to this anomaly detector, if any.

*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyId = value; } /** *

The ID of the KMS key assigned to this anomaly detector, if any.

*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyId = std::move(value); } /** *

The ID of the KMS key assigned to this anomaly detector, if any.

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyId.assign(value); } /** *

The ID of the KMS key assigned to this anomaly detector, if any.

*/ inline GetLogAnomalyDetectorResult& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *

The ID of the KMS key assigned to this anomaly detector, if any.

*/ inline GetLogAnomalyDetectorResult& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *

The ID of the KMS key assigned to this anomaly detector, if any.

*/ inline GetLogAnomalyDetectorResult& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *

The date and time when this anomaly detector was created.

*/ inline long long GetCreationTimeStamp() const{ return m_creationTimeStamp; } /** *

The date and time when this anomaly detector was created.

*/ inline void SetCreationTimeStamp(long long value) { m_creationTimeStamp = value; } /** *

The date and time when this anomaly detector was created.

*/ inline GetLogAnomalyDetectorResult& WithCreationTimeStamp(long long value) { SetCreationTimeStamp(value); return *this;} /** *

The date and time when this anomaly detector was most recently modified.

*/ inline long long GetLastModifiedTimeStamp() const{ return m_lastModifiedTimeStamp; } /** *

The date and time when this anomaly detector was most recently modified.

*/ inline void SetLastModifiedTimeStamp(long long value) { m_lastModifiedTimeStamp = value; } /** *

The date and time when this anomaly detector was most recently modified.

*/ inline GetLogAnomalyDetectorResult& WithLastModifiedTimeStamp(long long value) { SetLastModifiedTimeStamp(value); return *this;} /** *

The number of days used as the life cycle of anomalies. After this time, * anomalies are automatically baselined and the anomaly detector model will treat * new occurrences of similar event as normal.

*/ inline long long GetAnomalyVisibilityTime() const{ return m_anomalyVisibilityTime; } /** *

The number of days used as the life cycle of anomalies. After this time, * anomalies are automatically baselined and the anomaly detector model will treat * new occurrences of similar event as normal.

*/ inline void SetAnomalyVisibilityTime(long long value) { m_anomalyVisibilityTime = value; } /** *

The number of days used as the life cycle of anomalies. After this time, * anomalies are automatically baselined and the anomaly detector model will treat * new occurrences of similar event as normal.

*/ inline GetLogAnomalyDetectorResult& WithAnomalyVisibilityTime(long long value) { SetAnomalyVisibilityTime(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetLogAnomalyDetectorResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetLogAnomalyDetectorResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetLogAnomalyDetectorResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_detectorName; Aws::Vector m_logGroupArnList; EvaluationFrequency m_evaluationFrequency; Aws::String m_filterPattern; AnomalyDetectorStatus m_anomalyDetectorStatus; Aws::String m_kmsKeyId; long long m_creationTimeStamp; long long m_lastModifiedTimeStamp; long long m_anomalyVisibilityTime; Aws::String m_requestId; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws