AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TreatmentConfig.h
1
6#pragma once
7#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchEvidently
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_CLOUDWATCHEVIDENTLY_API TreatmentConfig() = default;
37 AWS_CLOUDWATCHEVIDENTLY_API TreatmentConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHEVIDENTLY_API TreatmentConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetDescription() const { return m_description; }
47 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
48 template<typename DescriptionT = Aws::String>
49 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
50 template<typename DescriptionT = Aws::String>
51 TreatmentConfig& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
53
55
58 inline const Aws::String& GetFeature() const { return m_feature; }
59 inline bool FeatureHasBeenSet() const { return m_featureHasBeenSet; }
60 template<typename FeatureT = Aws::String>
61 void SetFeature(FeatureT&& value) { m_featureHasBeenSet = true; m_feature = std::forward<FeatureT>(value); }
62 template<typename FeatureT = Aws::String>
63 TreatmentConfig& WithFeature(FeatureT&& value) { SetFeature(std::forward<FeatureT>(value)); return *this;}
65
67
70 inline const Aws::String& GetName() const { return m_name; }
71 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
72 template<typename NameT = Aws::String>
73 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
74 template<typename NameT = Aws::String>
75 TreatmentConfig& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
77
79
82 inline const Aws::String& GetVariation() const { return m_variation; }
83 inline bool VariationHasBeenSet() const { return m_variationHasBeenSet; }
84 template<typename VariationT = Aws::String>
85 void SetVariation(VariationT&& value) { m_variationHasBeenSet = true; m_variation = std::forward<VariationT>(value); }
86 template<typename VariationT = Aws::String>
87 TreatmentConfig& WithVariation(VariationT&& value) { SetVariation(std::forward<VariationT>(value)); return *this;}
89 private:
90
91 Aws::String m_description;
92 bool m_descriptionHasBeenSet = false;
93
94 Aws::String m_feature;
95 bool m_featureHasBeenSet = false;
96
97 Aws::String m_name;
98 bool m_nameHasBeenSet = false;
99
100 Aws::String m_variation;
101 bool m_variationHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace CloudWatchEvidently
106} // namespace Aws
TreatmentConfig & WithName(NameT &&value)
AWS_CLOUDWATCHEVIDENTLY_API TreatmentConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHEVIDENTLY_API TreatmentConfig(Aws::Utils::Json::JsonView jsonValue)
TreatmentConfig & WithDescription(DescriptionT &&value)
AWS_CLOUDWATCHEVIDENTLY_API TreatmentConfig()=default
TreatmentConfig & WithVariation(VariationT &&value)
TreatmentConfig & WithFeature(FeatureT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue