7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/model/FlagValue.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
42 template <
typename KeyT = Aws::String>
44 m_keyHasBeenSet =
true;
45 m_key = std::forward<KeyT>(value);
47 template <
typename KeyT = Aws::String>
49 SetKey(std::forward<KeyT>(value));
58 inline double GetWeight()
const {
return m_weight; }
61 m_weightHasBeenSet =
true;
76 template <
typename DescriptionT = Aws::String>
78 m_descriptionHasBeenSet =
true;
79 m_description = std::forward<DescriptionT>(value);
81 template <
typename DescriptionT = Aws::String>
94 template <
typename FlagValueT = FlagValue>
96 m_flagValueHasBeenSet =
true;
97 m_flagValue = std::forward<FlagValueT>(value);
99 template <
typename FlagValueT = FlagValue>
108 double m_weight{0.0};
112 FlagValue m_flagValue;
113 bool m_keyHasBeenSet =
false;
114 bool m_weightHasBeenSet =
false;
115 bool m_descriptionHasBeenSet =
false;
116 bool m_flagValueHasBeenSet =
false;
Treatment & WithKey(KeyT &&value)
void SetFlagValue(FlagValueT &&value)
void SetWeight(double value)
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
bool KeyHasBeenSet() const
void SetDescription(DescriptionT &&value)
void SetKey(KeyT &&value)
Treatment & WithDescription(DescriptionT &&value)
Treatment & WithWeight(double value)
AWS_APPCONFIG_API Treatment & operator=(Aws::Utils::Json::JsonView jsonValue)
bool FlagValueHasBeenSet() const
bool DescriptionHasBeenSet() const
const Aws::String & GetKey() const
AWS_APPCONFIG_API Treatment(Aws::Utils::Json::JsonView jsonValue)
AWS_APPCONFIG_API Treatment()=default
const FlagValue & GetFlagValue() const
Treatment & WithFlagValue(FlagValueT &&value)
const Aws::String & GetDescription() const
bool WeightHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue