/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the stop condition for an experiment.See Also:
AWS
* API Reference
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