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

Specifies a stop condition for an experiment. You can define a stop condition * as a CloudWatch alarm.

See Also:

AWS * API Reference

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

The source for the stop condition. Specify aws:cloudwatch:alarm * if the stop condition is defined by a CloudWatch alarm. Specify * none if there is no stop condition.

*/ inline const Aws::String& GetSource() const{ return m_source; } /** *

The source for the stop condition. Specify aws:cloudwatch:alarm * if the stop condition is defined by a CloudWatch alarm. Specify * none if there is no stop condition.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The source for the stop condition. Specify aws:cloudwatch:alarm * if the stop condition is defined by a CloudWatch alarm. Specify * none if there is no stop condition.

*/ inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The source for the stop condition. Specify aws:cloudwatch:alarm * if the stop condition is defined by a CloudWatch alarm. Specify * none if there is no stop condition.

*/ inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The source for the stop condition. Specify aws:cloudwatch:alarm * if the stop condition is defined by a CloudWatch alarm. Specify * none if there is no stop condition.

*/ inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } /** *

The source for the stop condition. Specify aws:cloudwatch:alarm * if the stop condition is defined by a CloudWatch alarm. Specify * none if there is no stop condition.

*/ inline UpdateExperimentTemplateStopConditionInput& WithSource(const Aws::String& value) { SetSource(value); return *this;} /** *

The source for the stop condition. Specify aws:cloudwatch:alarm * if the stop condition is defined by a CloudWatch alarm. Specify * none if there is no stop condition.

*/ inline UpdateExperimentTemplateStopConditionInput& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} /** *

The source for the stop condition. Specify aws:cloudwatch:alarm * if the stop condition is defined by a CloudWatch alarm. Specify * none if there is no stop condition.

*/ inline UpdateExperimentTemplateStopConditionInput& WithSource(const char* value) { SetSource(value); return *this;} /** *

The Amazon Resource Name (ARN) of the CloudWatch alarm.

*/ inline const Aws::String& GetValue() const{ return m_value; } /** *

The Amazon Resource Name (ARN) of the CloudWatch alarm.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the CloudWatch alarm.

*/ inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The Amazon Resource Name (ARN) of the CloudWatch alarm.

*/ inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The Amazon Resource Name (ARN) of the CloudWatch alarm.

*/ inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } /** *

The Amazon Resource Name (ARN) of the CloudWatch alarm.

*/ inline UpdateExperimentTemplateStopConditionInput& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *

The Amazon Resource Name (ARN) of the CloudWatch alarm.

*/ inline UpdateExperimentTemplateStopConditionInput& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the CloudWatch alarm.

*/ inline UpdateExperimentTemplateStopConditionInput& WithValue(const char* value) { SetValue(value); return *this;} private: Aws::String m_source; bool m_sourceHasBeenSet = false; Aws::String m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace FIS } // namespace Aws