/** * 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 namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace LookoutMetrics { namespace Model { class DescribeAnomalyDetectorResult { public: AWS_LOOKOUTMETRICS_API DescribeAnomalyDetectorResult(); AWS_LOOKOUTMETRICS_API DescribeAnomalyDetectorResult(const Aws::AmazonWebServiceResult& result); AWS_LOOKOUTMETRICS_API DescribeAnomalyDetectorResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ARN of the detector.

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

The ARN of the detector.

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

The ARN of the detector.

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

The ARN of the detector.

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

The ARN of the detector.

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

The ARN of the detector.

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

The ARN of the detector.

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

The name of the detector.

*/ inline const Aws::String& GetAnomalyDetectorName() const{ return m_anomalyDetectorName; } /** *

The name of the detector.

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

The name of the detector.

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

The name of the detector.

*/ inline void SetAnomalyDetectorName(const char* value) { m_anomalyDetectorName.assign(value); } /** *

The name of the detector.

*/ inline DescribeAnomalyDetectorResult& WithAnomalyDetectorName(const Aws::String& value) { SetAnomalyDetectorName(value); return *this;} /** *

The name of the detector.

*/ inline DescribeAnomalyDetectorResult& WithAnomalyDetectorName(Aws::String&& value) { SetAnomalyDetectorName(std::move(value)); return *this;} /** *

The name of the detector.

*/ inline DescribeAnomalyDetectorResult& WithAnomalyDetectorName(const char* value) { SetAnomalyDetectorName(value); return *this;} /** *

A description of the detector.

*/ inline const Aws::String& GetAnomalyDetectorDescription() const{ return m_anomalyDetectorDescription; } /** *

A description of the detector.

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

A description of the detector.

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

A description of the detector.

*/ inline void SetAnomalyDetectorDescription(const char* value) { m_anomalyDetectorDescription.assign(value); } /** *

A description of the detector.

*/ inline DescribeAnomalyDetectorResult& WithAnomalyDetectorDescription(const Aws::String& value) { SetAnomalyDetectorDescription(value); return *this;} /** *

A description of the detector.

*/ inline DescribeAnomalyDetectorResult& WithAnomalyDetectorDescription(Aws::String&& value) { SetAnomalyDetectorDescription(std::move(value)); return *this;} /** *

A description of the detector.

*/ inline DescribeAnomalyDetectorResult& WithAnomalyDetectorDescription(const char* value) { SetAnomalyDetectorDescription(value); return *this;} /** *

Contains information about the detector's configuration.

*/ inline const AnomalyDetectorConfigSummary& GetAnomalyDetectorConfig() const{ return m_anomalyDetectorConfig; } /** *

Contains information about the detector's configuration.

*/ inline void SetAnomalyDetectorConfig(const AnomalyDetectorConfigSummary& value) { m_anomalyDetectorConfig = value; } /** *

Contains information about the detector's configuration.

*/ inline void SetAnomalyDetectorConfig(AnomalyDetectorConfigSummary&& value) { m_anomalyDetectorConfig = std::move(value); } /** *

Contains information about the detector's configuration.

*/ inline DescribeAnomalyDetectorResult& WithAnomalyDetectorConfig(const AnomalyDetectorConfigSummary& value) { SetAnomalyDetectorConfig(value); return *this;} /** *

Contains information about the detector's configuration.

*/ inline DescribeAnomalyDetectorResult& WithAnomalyDetectorConfig(AnomalyDetectorConfigSummary&& value) { SetAnomalyDetectorConfig(std::move(value)); return *this;} /** *

The time at which the detector was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The time at which the detector was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; } /** *

The time at which the detector was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); } /** *

The time at which the detector was created.

*/ inline DescribeAnomalyDetectorResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The time at which the detector was created.

*/ inline DescribeAnomalyDetectorResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The time at which the detector was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModificationTime() const{ return m_lastModificationTime; } /** *

The time at which the detector was last modified.

*/ inline void SetLastModificationTime(const Aws::Utils::DateTime& value) { m_lastModificationTime = value; } /** *

The time at which the detector was last modified.

*/ inline void SetLastModificationTime(Aws::Utils::DateTime&& value) { m_lastModificationTime = std::move(value); } /** *

The time at which the detector was last modified.

*/ inline DescribeAnomalyDetectorResult& WithLastModificationTime(const Aws::Utils::DateTime& value) { SetLastModificationTime(value); return *this;} /** *

The time at which the detector was last modified.

*/ inline DescribeAnomalyDetectorResult& WithLastModificationTime(Aws::Utils::DateTime&& value) { SetLastModificationTime(std::move(value)); return *this;} /** *

The status of the detector.

*/ inline const AnomalyDetectorStatus& GetStatus() const{ return m_status; } /** *

The status of the detector.

*/ inline void SetStatus(const AnomalyDetectorStatus& value) { m_status = value; } /** *

The status of the detector.

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

The status of the detector.

*/ inline DescribeAnomalyDetectorResult& WithStatus(const AnomalyDetectorStatus& value) { SetStatus(value); return *this;} /** *

The status of the detector.

*/ inline DescribeAnomalyDetectorResult& WithStatus(AnomalyDetectorStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The reason that the detector failed.

*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *

The reason that the detector failed.

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

The reason that the detector failed.

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

The reason that the detector failed.

*/ inline void SetFailureReason(const char* value) { m_failureReason.assign(value); } /** *

The reason that the detector failed.

*/ inline DescribeAnomalyDetectorResult& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *

The reason that the detector failed.

*/ inline DescribeAnomalyDetectorResult& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *

The reason that the detector failed.

*/ inline DescribeAnomalyDetectorResult& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} /** *

The ARN of the KMS key to use to encrypt your data.

*/ inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; } /** *

The ARN of the KMS key to use to encrypt your data.

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

The ARN of the KMS key to use to encrypt your data.

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

The ARN of the KMS key to use to encrypt your data.

*/ inline void SetKmsKeyArn(const char* value) { m_kmsKeyArn.assign(value); } /** *

The ARN of the KMS key to use to encrypt your data.

*/ inline DescribeAnomalyDetectorResult& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;} /** *

The ARN of the KMS key to use to encrypt your data.

*/ inline DescribeAnomalyDetectorResult& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;} /** *

The ARN of the KMS key to use to encrypt your data.

*/ inline DescribeAnomalyDetectorResult& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;} /** *

The process that caused the detector to fail.

*/ inline const AnomalyDetectorFailureType& GetFailureType() const{ return m_failureType; } /** *

The process that caused the detector to fail.

*/ inline void SetFailureType(const AnomalyDetectorFailureType& value) { m_failureType = value; } /** *

The process that caused the detector to fail.

*/ inline void SetFailureType(AnomalyDetectorFailureType&& value) { m_failureType = std::move(value); } /** *

The process that caused the detector to fail.

*/ inline DescribeAnomalyDetectorResult& WithFailureType(const AnomalyDetectorFailureType& value) { SetFailureType(value); return *this;} /** *

The process that caused the detector to fail.

*/ inline DescribeAnomalyDetectorResult& WithFailureType(AnomalyDetectorFailureType&& value) { SetFailureType(std::move(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 DescribeAnomalyDetectorResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeAnomalyDetectorResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeAnomalyDetectorResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_anomalyDetectorArn; Aws::String m_anomalyDetectorName; Aws::String m_anomalyDetectorDescription; AnomalyDetectorConfigSummary m_anomalyDetectorConfig; Aws::Utils::DateTime m_creationTime; Aws::Utils::DateTime m_lastModificationTime; AnomalyDetectorStatus m_status; Aws::String m_failureReason; Aws::String m_kmsKeyArn; AnomalyDetectorFailureType m_failureType; Aws::String m_requestId; }; } // namespace Model } // namespace LookoutMetrics } // namespace Aws