AWS SDK for C++

AWS SDK for C++ Version 1.11.846

Loading...
Searching...
No Matches
TreatmentInput.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/model/FlagValue.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppConfig {
21namespace Model {
22
30 public:
31 AWS_APPCONFIG_API TreatmentInput() = default;
32 AWS_APPCONFIG_API TreatmentInput(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline double GetWeight() const { return m_weight; }
41 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
42 inline void SetWeight(double value) {
43 m_weightHasBeenSet = true;
44 m_weight = value;
45 }
46 inline TreatmentInput& WithWeight(double value) {
47 SetWeight(value);
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
64 TreatmentInput& WithDescription(DescriptionT&& value) {
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
74 inline const FlagValue& GetFlagValue() const { return m_flagValue; }
75 inline bool FlagValueHasBeenSet() const { return m_flagValueHasBeenSet; }
76 template <typename FlagValueT = FlagValue>
77 void SetFlagValue(FlagValueT&& value) {
78 m_flagValueHasBeenSet = true;
79 m_flagValue = std::forward<FlagValueT>(value);
80 }
81 template <typename FlagValueT = FlagValue>
82 TreatmentInput& WithFlagValue(FlagValueT&& value) {
83 SetFlagValue(std::forward<FlagValueT>(value));
84 return *this;
85 }
87 private:
88 double m_weight{0.0};
89
90 Aws::String m_description;
91
92 FlagValue m_flagValue;
93 bool m_weightHasBeenSet = false;
94 bool m_descriptionHasBeenSet = false;
95 bool m_flagValueHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace AppConfig
100} // namespace Aws
void SetDescription(DescriptionT &&value)
TreatmentInput & WithDescription(DescriptionT &&value)
AWS_APPCONFIG_API TreatmentInput(Aws::Utils::Json::JsonView jsonValue)
const FlagValue & GetFlagValue() const
AWS_APPCONFIG_API TreatmentInput & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
void SetFlagValue(FlagValueT &&value)
AWS_APPCONFIG_API TreatmentInput()=default
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
TreatmentInput & WithFlagValue(FlagValueT &&value)
TreatmentInput & WithWeight(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue