AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
CommandParameter.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/CommandParameterType.h>
11#include <aws/iot/model/CommandParameterValue.h>
12#include <aws/iot/model/CommandParameterValueCondition.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoT {
24namespace Model {
25
33 public:
34 AWS_IOT_API CommandParameter() = default;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 CommandParameter& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline CommandParameterType GetType() const { return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(CommandParameterType value) {
64 m_typeHasBeenSet = true;
65 m_type = value;
66 }
68 SetType(value);
69 return *this;
70 }
72
74
77 inline const CommandParameterValue& GetValue() const { return m_value; }
78 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
79 template <typename ValueT = CommandParameterValue>
80 void SetValue(ValueT&& value) {
81 m_valueHasBeenSet = true;
82 m_value = std::forward<ValueT>(value);
83 }
84 template <typename ValueT = CommandParameterValue>
85 CommandParameter& WithValue(ValueT&& value) {
86 SetValue(std::forward<ValueT>(value));
87 return *this;
88 }
90
92
96 inline const CommandParameterValue& GetDefaultValue() const { return m_defaultValue; }
97 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
98 template <typename DefaultValueT = CommandParameterValue>
99 void SetDefaultValue(DefaultValueT&& value) {
100 m_defaultValueHasBeenSet = true;
101 m_defaultValue = std::forward<DefaultValueT>(value);
102 }
103 template <typename DefaultValueT = CommandParameterValue>
104 CommandParameter& WithDefaultValue(DefaultValueT&& value) {
105 SetDefaultValue(std::forward<DefaultValueT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::Vector<CommandParameterValueCondition>& GetValueConditions() const { return m_valueConditions; }
116 inline bool ValueConditionsHasBeenSet() const { return m_valueConditionsHasBeenSet; }
117 template <typename ValueConditionsT = Aws::Vector<CommandParameterValueCondition>>
118 void SetValueConditions(ValueConditionsT&& value) {
119 m_valueConditionsHasBeenSet = true;
120 m_valueConditions = std::forward<ValueConditionsT>(value);
121 }
122 template <typename ValueConditionsT = Aws::Vector<CommandParameterValueCondition>>
123 CommandParameter& WithValueConditions(ValueConditionsT&& value) {
124 SetValueConditions(std::forward<ValueConditionsT>(value));
125 return *this;
126 }
127 template <typename ValueConditionsT = CommandParameterValueCondition>
128 CommandParameter& AddValueConditions(ValueConditionsT&& value) {
129 m_valueConditionsHasBeenSet = true;
130 m_valueConditions.emplace_back(std::forward<ValueConditionsT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetDescription() const { return m_description; }
140 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
141 template <typename DescriptionT = Aws::String>
142 void SetDescription(DescriptionT&& value) {
143 m_descriptionHasBeenSet = true;
144 m_description = std::forward<DescriptionT>(value);
145 }
146 template <typename DescriptionT = Aws::String>
147 CommandParameter& WithDescription(DescriptionT&& value) {
148 SetDescription(std::forward<DescriptionT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_name;
154
156
157 CommandParameterValue m_value;
158
159 CommandParameterValue m_defaultValue;
160
162
163 Aws::String m_description;
164 bool m_nameHasBeenSet = false;
165 bool m_typeHasBeenSet = false;
166 bool m_valueHasBeenSet = false;
167 bool m_defaultValueHasBeenSet = false;
168 bool m_valueConditionsHasBeenSet = false;
169 bool m_descriptionHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace IoT
174} // namespace Aws
void SetDefaultValue(DefaultValueT &&value)
CommandParameterType GetType() const
const Aws::Vector< CommandParameterValueCondition > & GetValueConditions() const
void SetDescription(DescriptionT &&value)
void SetValueConditions(ValueConditionsT &&value)
AWS_IOT_API CommandParameter()=default
CommandParameter & WithName(NameT &&value)
const Aws::String & GetName() const
AWS_IOT_API CommandParameter(Aws::Utils::Json::JsonView jsonValue)
CommandParameter & WithDefaultValue(DefaultValueT &&value)
CommandParameter & WithType(CommandParameterType value)
CommandParameter & WithValueConditions(ValueConditionsT &&value)
CommandParameter & WithDescription(DescriptionT &&value)
CommandParameter & WithValue(ValueT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDescription() const
AWS_IOT_API CommandParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
const CommandParameterValue & GetDefaultValue() const
void SetType(CommandParameterType value)
CommandParameter & AddValueConditions(ValueConditionsT &&value)
const CommandParameterValue & GetValue() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue