/** * 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 CloudWatchEvidently { namespace Model { /** *

A structure that defines one treatment in an experiment. A treatment is a * variation of the feature that you are including in the experiment.

See * Also:

AWS * API Reference

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

A description for this treatment.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description for this treatment.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description for this treatment.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description for this treatment.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description for this treatment.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description for this treatment.

*/ inline TreatmentConfig& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description for this treatment.

*/ inline TreatmentConfig& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description for this treatment.

*/ inline TreatmentConfig& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The feature that this experiment is testing.

*/ inline const Aws::String& GetFeature() const{ return m_feature; } /** *

The feature that this experiment is testing.

*/ inline bool FeatureHasBeenSet() const { return m_featureHasBeenSet; } /** *

The feature that this experiment is testing.

*/ inline void SetFeature(const Aws::String& value) { m_featureHasBeenSet = true; m_feature = value; } /** *

The feature that this experiment is testing.

*/ inline void SetFeature(Aws::String&& value) { m_featureHasBeenSet = true; m_feature = std::move(value); } /** *

The feature that this experiment is testing.

*/ inline void SetFeature(const char* value) { m_featureHasBeenSet = true; m_feature.assign(value); } /** *

The feature that this experiment is testing.

*/ inline TreatmentConfig& WithFeature(const Aws::String& value) { SetFeature(value); return *this;} /** *

The feature that this experiment is testing.

*/ inline TreatmentConfig& WithFeature(Aws::String&& value) { SetFeature(std::move(value)); return *this;} /** *

The feature that this experiment is testing.

*/ inline TreatmentConfig& WithFeature(const char* value) { SetFeature(value); return *this;} /** *

A name for this treatment.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

A name for this treatment.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A name for this treatment.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

A name for this treatment.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

A name for this treatment.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

A name for this treatment.

*/ inline TreatmentConfig& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

A name for this treatment.

*/ inline TreatmentConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

A name for this treatment.

*/ inline TreatmentConfig& WithName(const char* value) { SetName(value); return *this;} /** *

The name of the variation to use as this treatment in the experiment.

*/ inline const Aws::String& GetVariation() const{ return m_variation; } /** *

The name of the variation to use as this treatment in the experiment.

*/ inline bool VariationHasBeenSet() const { return m_variationHasBeenSet; } /** *

The name of the variation to use as this treatment in the experiment.

*/ inline void SetVariation(const Aws::String& value) { m_variationHasBeenSet = true; m_variation = value; } /** *

The name of the variation to use as this treatment in the experiment.

*/ inline void SetVariation(Aws::String&& value) { m_variationHasBeenSet = true; m_variation = std::move(value); } /** *

The name of the variation to use as this treatment in the experiment.

*/ inline void SetVariation(const char* value) { m_variationHasBeenSet = true; m_variation.assign(value); } /** *

The name of the variation to use as this treatment in the experiment.

*/ inline TreatmentConfig& WithVariation(const Aws::String& value) { SetVariation(value); return *this;} /** *

The name of the variation to use as this treatment in the experiment.

*/ inline TreatmentConfig& WithVariation(Aws::String&& value) { SetVariation(std::move(value)); return *this;} /** *

The name of the variation to use as this treatment in the experiment.

*/ inline TreatmentConfig& WithVariation(const char* value) { SetVariation(value); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_feature; bool m_featureHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_variation; bool m_variationHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvidently } // namespace Aws