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

The time the alarm model was created, in the Unix epoch format.

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

The time the alarm model was created, in the Unix epoch format.

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

The time the alarm model was created, in the Unix epoch format.

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

The time the alarm model was created, in the Unix epoch format.

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

The time the alarm model was created, in the Unix epoch format.

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

The ARN of the alarm model. For more information, see Amazon * Resource Names (ARNs) in the AWS General Reference.

*/ inline const Aws::String& GetAlarmModelArn() const{ return m_alarmModelArn; } /** *

The ARN of the alarm model. For more information, see Amazon * Resource Names (ARNs) in the AWS General Reference.

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

The ARN of the alarm model. For more information, see Amazon * Resource Names (ARNs) in the AWS General Reference.

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

The ARN of the alarm model. For more information, see Amazon * Resource Names (ARNs) in the AWS General Reference.

*/ inline void SetAlarmModelArn(const char* value) { m_alarmModelArn.assign(value); } /** *

The ARN of the alarm model. For more information, see Amazon * Resource Names (ARNs) in the AWS General Reference.

*/ inline CreateAlarmModelResult& WithAlarmModelArn(const Aws::String& value) { SetAlarmModelArn(value); return *this;} /** *

The ARN of the alarm model. For more information, see Amazon * Resource Names (ARNs) in the AWS General Reference.

*/ inline CreateAlarmModelResult& WithAlarmModelArn(Aws::String&& value) { SetAlarmModelArn(std::move(value)); return *this;} /** *

The ARN of the alarm model. For more information, see Amazon * Resource Names (ARNs) in the AWS General Reference.

*/ inline CreateAlarmModelResult& WithAlarmModelArn(const char* value) { SetAlarmModelArn(value); return *this;} /** *

The version of the alarm model.

*/ inline const Aws::String& GetAlarmModelVersion() const{ return m_alarmModelVersion; } /** *

The version of the alarm model.

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

The version of the alarm model.

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

The version of the alarm model.

*/ inline void SetAlarmModelVersion(const char* value) { m_alarmModelVersion.assign(value); } /** *

The version of the alarm model.

*/ inline CreateAlarmModelResult& WithAlarmModelVersion(const Aws::String& value) { SetAlarmModelVersion(value); return *this;} /** *

The version of the alarm model.

*/ inline CreateAlarmModelResult& WithAlarmModelVersion(Aws::String&& value) { SetAlarmModelVersion(std::move(value)); return *this;} /** *

The version of the alarm model.

*/ inline CreateAlarmModelResult& WithAlarmModelVersion(const char* value) { SetAlarmModelVersion(value); return *this;} /** *

The time the alarm model was last updated, in the Unix epoch format.

*/ inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; } /** *

The time the alarm model was last updated, in the Unix epoch format.

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

The time the alarm model was last updated, in the Unix epoch format.

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

The time the alarm model was last updated, in the Unix epoch format.

*/ inline CreateAlarmModelResult& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;} /** *

The time the alarm model was last updated, in the Unix epoch format.

*/ inline CreateAlarmModelResult& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(std::move(value)); return *this;} /** *

The status of the alarm model. The status can be one of the following * values:

  • ACTIVE - The alarm model is active and * it's ready to evaluate data.

  • ACTIVATING - AWS * IoT Events is activating your alarm model. Activating an alarm model can take up * to a few minutes.

  • INACTIVE - The alarm model is * inactive, so it isn't ready to evaluate data. Check your alarm model information * and update the alarm model.

  • FAILED - You * couldn't create or update the alarm model. Check your alarm model information * and try again.

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

The status of the alarm model. The status can be one of the following * values:

  • ACTIVE - The alarm model is active and * it's ready to evaluate data.

  • ACTIVATING - AWS * IoT Events is activating your alarm model. Activating an alarm model can take up * to a few minutes.

  • INACTIVE - The alarm model is * inactive, so it isn't ready to evaluate data. Check your alarm model information * and update the alarm model.

  • FAILED - You * couldn't create or update the alarm model. Check your alarm model information * and try again.

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

The status of the alarm model. The status can be one of the following * values:

  • ACTIVE - The alarm model is active and * it's ready to evaluate data.

  • ACTIVATING - AWS * IoT Events is activating your alarm model. Activating an alarm model can take up * to a few minutes.

  • INACTIVE - The alarm model is * inactive, so it isn't ready to evaluate data. Check your alarm model information * and update the alarm model.

  • FAILED - You * couldn't create or update the alarm model. Check your alarm model information * and try again.

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

The status of the alarm model. The status can be one of the following * values:

  • ACTIVE - The alarm model is active and * it's ready to evaluate data.

  • ACTIVATING - AWS * IoT Events is activating your alarm model. Activating an alarm model can take up * to a few minutes.

  • INACTIVE - The alarm model is * inactive, so it isn't ready to evaluate data. Check your alarm model information * and update the alarm model.

  • FAILED - You * couldn't create or update the alarm model. Check your alarm model information * and try again.

*/ inline CreateAlarmModelResult& WithStatus(const AlarmModelVersionStatus& value) { SetStatus(value); return *this;} /** *

The status of the alarm model. The status can be one of the following * values:

  • ACTIVE - The alarm model is active and * it's ready to evaluate data.

  • ACTIVATING - AWS * IoT Events is activating your alarm model. Activating an alarm model can take up * to a few minutes.

  • INACTIVE - The alarm model is * inactive, so it isn't ready to evaluate data. Check your alarm model information * and update the alarm model.

  • FAILED - You * couldn't create or update the alarm model. Check your alarm model information * and try again.

*/ inline CreateAlarmModelResult& WithStatus(AlarmModelVersionStatus&& value) { SetStatus(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 CreateAlarmModelResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateAlarmModelResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateAlarmModelResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::DateTime m_creationTime; Aws::String m_alarmModelArn; Aws::String m_alarmModelVersion; Aws::Utils::DateTime m_lastUpdateTime; AlarmModelVersionStatus m_status; Aws::String m_requestId; }; } // namespace Model } // namespace IoTEvents } // namespace Aws