AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Parameter.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10#include <aws/ssm/model/ParameterType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SSM {
22namespace Model {
23
30class Parameter {
31 public:
32 AWS_SSM_API Parameter() = default;
33 AWS_SSM_API Parameter(Aws::Utils::Json::JsonView jsonValue);
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 Parameter& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
63 inline ParameterType GetType() const { return m_type; }
64 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
65 inline void SetType(ParameterType value) {
66 m_typeHasBeenSet = true;
67 m_type = value;
68 }
70 SetType(value);
71 return *this;
72 }
74
76
81 inline const Aws::String& GetValue() const { return m_value; }
82 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
83 template <typename ValueT = Aws::String>
84 void SetValue(ValueT&& value) {
85 m_valueHasBeenSet = true;
86 m_value = std::forward<ValueT>(value);
87 }
88 template <typename ValueT = Aws::String>
89 Parameter& WithValue(ValueT&& value) {
90 SetValue(std::forward<ValueT>(value));
91 return *this;
92 }
94
96
99 inline long long GetVersion() const { return m_version; }
100 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
101 inline void SetVersion(long long value) {
102 m_versionHasBeenSet = true;
103 m_version = value;
104 }
105 inline Parameter& WithVersion(long long value) {
106 SetVersion(value);
107 return *this;
108 }
110
112
117 inline const Aws::String& GetSelector() const { return m_selector; }
118 inline bool SelectorHasBeenSet() const { return m_selectorHasBeenSet; }
119 template <typename SelectorT = Aws::String>
120 void SetSelector(SelectorT&& value) {
121 m_selectorHasBeenSet = true;
122 m_selector = std::forward<SelectorT>(value);
123 }
124 template <typename SelectorT = Aws::String>
125 Parameter& WithSelector(SelectorT&& value) {
126 SetSelector(std::forward<SelectorT>(value));
127 return *this;
128 }
130
132
137 inline const Aws::String& GetSourceResult() const { return m_sourceResult; }
138 inline bool SourceResultHasBeenSet() const { return m_sourceResultHasBeenSet; }
139 template <typename SourceResultT = Aws::String>
140 void SetSourceResult(SourceResultT&& value) {
141 m_sourceResultHasBeenSet = true;
142 m_sourceResult = std::forward<SourceResultT>(value);
143 }
144 template <typename SourceResultT = Aws::String>
145 Parameter& WithSourceResult(SourceResultT&& value) {
146 SetSourceResult(std::forward<SourceResultT>(value));
147 return *this;
148 }
150
152
156 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
157 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
158 template <typename LastModifiedDateT = Aws::Utils::DateTime>
159 void SetLastModifiedDate(LastModifiedDateT&& value) {
160 m_lastModifiedDateHasBeenSet = true;
161 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
162 }
163 template <typename LastModifiedDateT = Aws::Utils::DateTime>
164 Parameter& WithLastModifiedDate(LastModifiedDateT&& value) {
165 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::String& GetARN() const { return m_aRN; }
175 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
176 template <typename ARNT = Aws::String>
177 void SetARN(ARNT&& value) {
178 m_aRNHasBeenSet = true;
179 m_aRN = std::forward<ARNT>(value);
180 }
181 template <typename ARNT = Aws::String>
182 Parameter& WithARN(ARNT&& value) {
183 SetARN(std::forward<ARNT>(value));
184 return *this;
185 }
187
189
193 inline const Aws::String& GetDataType() const { return m_dataType; }
194 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
195 template <typename DataTypeT = Aws::String>
196 void SetDataType(DataTypeT&& value) {
197 m_dataTypeHasBeenSet = true;
198 m_dataType = std::forward<DataTypeT>(value);
199 }
200 template <typename DataTypeT = Aws::String>
201 Parameter& WithDataType(DataTypeT&& value) {
202 SetDataType(std::forward<DataTypeT>(value));
203 return *this;
204 }
206 private:
207 Aws::String m_name;
208
210
211 Aws::String m_value;
212
213 long long m_version{0};
214
215 Aws::String m_selector;
216
217 Aws::String m_sourceResult;
218
219 Aws::Utils::DateTime m_lastModifiedDate{};
220
221 Aws::String m_aRN;
222
223 Aws::String m_dataType;
224 bool m_nameHasBeenSet = false;
225 bool m_typeHasBeenSet = false;
226 bool m_valueHasBeenSet = false;
227 bool m_versionHasBeenSet = false;
228 bool m_selectorHasBeenSet = false;
229 bool m_sourceResultHasBeenSet = false;
230 bool m_lastModifiedDateHasBeenSet = false;
231 bool m_aRNHasBeenSet = false;
232 bool m_dataTypeHasBeenSet = false;
233};
234
235} // namespace Model
236} // namespace SSM
237} // namespace Aws
long long GetVersion() const
Definition Parameter.h:99
void SetType(ParameterType value)
Definition Parameter.h:65
ParameterType GetType() const
Definition Parameter.h:63
Parameter & WithLastModifiedDate(LastModifiedDateT &&value)
Definition Parameter.h:164
const Aws::String & GetSourceResult() const
Definition Parameter.h:137
const Aws::String & GetDataType() const
Definition Parameter.h:193
Parameter & WithSelector(SelectorT &&value)
Definition Parameter.h:125
Parameter & WithSourceResult(SourceResultT &&value)
Definition Parameter.h:145
Parameter & WithVersion(long long value)
Definition Parameter.h:105
Parameter & WithType(ParameterType value)
Definition Parameter.h:69
bool DataTypeHasBeenSet() const
Definition Parameter.h:194
void SetARN(ARNT &&value)
Definition Parameter.h:177
const Aws::String & GetARN() const
Definition Parameter.h:174
bool SourceResultHasBeenSet() const
Definition Parameter.h:138
void SetSelector(SelectorT &&value)
Definition Parameter.h:120
void SetSourceResult(SourceResultT &&value)
Definition Parameter.h:140
const Aws::String & GetName() const
Definition Parameter.h:41
bool ValueHasBeenSet() const
Definition Parameter.h:82
Parameter & WithARN(ARNT &&value)
Definition Parameter.h:182
Parameter & WithDataType(DataTypeT &&value)
Definition Parameter.h:201
void SetValue(ValueT &&value)
Definition Parameter.h:84
AWS_SSM_API Parameter & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API Parameter()=default
bool LastModifiedDateHasBeenSet() const
Definition Parameter.h:157
Parameter & WithName(NameT &&value)
Definition Parameter.h:49
bool SelectorHasBeenSet() const
Definition Parameter.h:118
void SetName(NameT &&value)
Definition Parameter.h:44
void SetVersion(long long value)
Definition Parameter.h:101
const Aws::String & GetValue() const
Definition Parameter.h:81
bool TypeHasBeenSet() const
Definition Parameter.h:64
bool VersionHasBeenSet() const
Definition Parameter.h:100
AWS_SSM_API Parameter(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDataType(DataTypeT &&value)
Definition Parameter.h:196
bool NameHasBeenSet() const
Definition Parameter.h:42
const Aws::Utils::DateTime & GetLastModifiedDate() const
Definition Parameter.h:156
void SetLastModifiedDate(LastModifiedDateT &&value)
Definition Parameter.h:159
const Aws::String & GetSelector() const
Definition Parameter.h:117
Parameter & WithValue(ValueT &&value)
Definition Parameter.h:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue