/** * 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 { /** *

Describes the stop condition for an experiment.

See Also:

AWS * API Reference

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

The source for the stop condition.

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

The source for the stop condition.

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

The source for the stop condition.

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

The source for the stop condition.

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

The source for the stop condition.

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

The source for the stop condition.

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

The source for the stop condition.

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

The source for the stop condition.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ inline ExperimentStopCondition& 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