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

The status of an anomaly detector run.

See Also:

AWS * API Reference

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

The run's timestamp.

*/ inline const Aws::String& GetTimestamp() const{ return m_timestamp; } /** *

The run's timestamp.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

The run's timestamp.

*/ inline void SetTimestamp(const Aws::String& value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

The run's timestamp.

*/ inline void SetTimestamp(Aws::String&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } /** *

The run's timestamp.

*/ inline void SetTimestamp(const char* value) { m_timestampHasBeenSet = true; m_timestamp.assign(value); } /** *

The run's timestamp.

*/ inline ExecutionStatus& WithTimestamp(const Aws::String& value) { SetTimestamp(value); return *this;} /** *

The run's timestamp.

*/ inline ExecutionStatus& WithTimestamp(Aws::String&& value) { SetTimestamp(std::move(value)); return *this;} /** *

The run's timestamp.

*/ inline ExecutionStatus& WithTimestamp(const char* value) { SetTimestamp(value); return *this;} /** *

The run's status.

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

The run's status.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The run's status.

*/ inline void SetStatus(const AnomalyDetectionTaskStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The run's status.

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

The run's status.

*/ inline ExecutionStatus& WithStatus(const AnomalyDetectionTaskStatus& value) { SetStatus(value); return *this;} /** *

The run's status.

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

The reason that the run failed, if applicable.

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

The reason that the run failed, if applicable.

*/ inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } /** *

The reason that the run failed, if applicable.

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

The reason that the run failed, if applicable.

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

The reason that the run failed, if applicable.

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

The reason that the run failed, if applicable.

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

The reason that the run failed, if applicable.

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

The reason that the run failed, if applicable.

*/ inline ExecutionStatus& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} private: Aws::String m_timestamp; bool m_timestampHasBeenSet = false; AnomalyDetectionTaskStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_failureReason; bool m_failureReasonHasBeenSet = false; }; } // namespace Model } // namespace LookoutMetrics } // namespace Aws