text: ﻿/**
   * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * SPDX-License-Identifier: Apache-2.0.
   */
  
  #pragma once
  #include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <utility>
  
  namespace Aws
  {
  namespace Utils
  {
  namespace Json
  {
    class JsonValue;
    class JsonView;
  } // namespace Json
  } // namespace Utils
  namespace CloudWatchEvidently
  {
  namespace Model
  {
  
    /**
     * <p>A structure that defines one treatment in an experiment. A treatment is a
     * variation of the feature that you are including in the experiment.</p><p><h3>See
     * Also:</h3>   <a
     * href="http://docs.aws.amazon.com/goto/WebAPI/evidently-2021-02-01/TreatmentConfig">AWS
     * API Reference</a></p>
     */
    class AWS_CLOUDWATCHEVIDENTLY_API TreatmentConfig
    {
    public:
      TreatmentConfig();
      TreatmentConfig(Aws::Utils::Json::JsonView jsonValue);
      TreatmentConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
      Aws::Utils::Json::JsonValue Jsonize() const;
  
  
      /**
       * <p>A description for this treatment.</p>
       */
      inline const Aws::String& GetDescription() const{ return m_description; }
  
      /**
       * <p>A description for this treatment.</p>
       */
      inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
  
      /**
       * <p>A description for this treatment.</p>
       */
      inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
  
      /**
       * <p>A description for this treatment.</p>
       */
      inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
  
      /**
       * <p>A description for this treatment.</p>
       */
      inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
  
      /**
       * <p>A description for this treatment.</p>
       */
      inline TreatmentConfig& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
  
      /**
       * <p>A description for this treatment.</p>
       */
      inline TreatmentConfig& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
  
      /**
       * <p>A description for this treatment.</p>
       */
      inline TreatmentConfig& WithDescription(const char* value) { SetDescription(value); return *this;}
  
  
      /**
       * <p>The feature that this experiment is testing.</p>
       */
      inline const Aws::String& GetFeature() const{ return m_feature; }
  
      /**
       * <p>The feature that this experiment is testing.</p>
       */
      inline bool FeatureHasBeenSet() const { return m_featureHasBeenSet; }
  
      /**
       * <p>The feature that this experiment is testing.</p>
       */
      inline void SetFeature(const Aws::String& value) { m_featureHasBeenSet = true; m_feature = value; }
  
      /**
       * <p>The feature that this experiment is testing.</p>
       */
      inline void SetFeature(Aws::String&& value) { m_featureHasBeenSet = true; m_feature = std::move(value); }
  
      /**
       * <p>The feature that this experiment is testing.</p>
       */
      inline void SetFeature(const char* value) { m_featureHasBeenSet = true; m_feature.assign(value); }
  
      /**
       * <p>The feature that this experiment is testing.</p>
       */
      inline TreatmentConfig& WithFeature(const Aws::String& value) { SetFeature(value); return *this;}
  
      /**
       * <p>The feature that this experiment is testing.</p>
       */
      inline TreatmentConfig& WithFeature(Aws::String&& value) { SetFeature(std::move(value)); return *this;}
  
      /**
       * <p>The feature that this experiment is testing.</p>
       */
      inline TreatmentConfig& WithFeature(const char* value) { SetFeature(value); return *this;}
  
  
      /**
       * <p>A name for this treatment.</p>
       */
      inline const Aws::String& GetName() const{ return m_name; }
  
      /**
       * <p>A name for this treatment.</p>
       */
      inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
  
      /**
       * <p>A name for this treatment.</p>
       */
      inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
  
      /**
       * <p>A name for this treatment.</p>
       */
      inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
  
      /**
       * <p>A name for this treatment.</p>
       */
      inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
  
      /**
       * <p>A name for this treatment.</p>
       */
      inline TreatmentConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
  
      /**
       * <p>A name for this treatment.</p>
       */
      inline TreatmentConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
  
      /**
       * <p>A name for this treatment.</p>
       */
      inline TreatmentConfig& WithName(const char* value) { SetName(value); return *this;}
  
  
      /**
       * <p>The name of the variation to use as this treatment in the experiment.</p>
       */
      inline const Aws::String& GetVariation() const{ return m_variation; }
  
      /**
       * <p>The name of the variation to use as this treatment in the experiment.</p>
       */
      inline bool VariationHasBeenSet() const { return m_variationHasBeenSet; }
  
      /**
       * <p>The name of the variation to use as this treatment in the experiment.</p>
       */
      inline void SetVariation(const Aws::String& value) { m_variationHasBeenSet = true; m_variation = value; }
  
      /**
       * <p>The name of the variation to use as this treatment in the experiment.</p>
       */
      inline void SetVariation(Aws::String&& value) { m_variationHasBeenSet = true; m_variation = std::move(value); }
  
      /**
       * <p>The name of the variation to use as this treatment in the experiment.</p>
       */
      inline void SetVariation(const char* value) { m_variationHasBeenSet = true; m_variation.assign(value); }
  
      /**
       * <p>The name of the variation to use as this treatment in the experiment.</p>
       */
      inline TreatmentConfig& WithVariation(const Aws::String& value) { SetVariation(value); return *this;}
  
      /**
       * <p>The name of the variation to use as this treatment in the experiment.</p>
       */
      inline TreatmentConfig& WithVariation(Aws::String&& value) { SetVariation(std::move(value)); return *this;}
  
      /**
       * <p>The name of the variation to use as this treatment in the experiment.</p>
       */
      inline TreatmentConfig& WithVariation(const char* value) { SetVariation(value); return *this;}
  
    private:
  
      Aws::String m_description;
      bool m_descriptionHasBeenSet;
  
      Aws::String m_feature;
      bool m_featureHasBeenSet;
  
      Aws::String m_name;
      bool m_nameHasBeenSet;
  
      Aws::String m_variation;
      bool m_variationHasBeenSet;
    };
  
  } // namespace Model
  } // namespace CloudWatchEvidently
  } // namespace Aws
  