AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AppBlockBuilder.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/model/AccessEndpoint.h>
9#include <aws/appstream/model/AppBlockBuilderPlatformType.h>
10#include <aws/appstream/model/AppBlockBuilderState.h>
11#include <aws/appstream/model/AppBlockBuilderStateChangeReason.h>
12#include <aws/appstream/model/ResourceError.h>
13#include <aws/appstream/model/VpcConfig.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace AppStream {
28namespace Model {
29
36 public:
37 AWS_APPSTREAM_API AppBlockBuilder() = default;
38 AWS_APPSTREAM_API AppBlockBuilder(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetArn() const { return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 template <typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) {
50 m_arnHasBeenSet = true;
51 m_arn = std::forward<ArnT>(value);
52 }
53 template <typename ArnT = Aws::String>
54 AppBlockBuilder& WithArn(ArnT&& value) {
55 SetArn(std::forward<ArnT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetName() const { return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 template <typename NameT = Aws::String>
67 void SetName(NameT&& value) {
68 m_nameHasBeenSet = true;
69 m_name = std::forward<NameT>(value);
70 }
71 template <typename NameT = Aws::String>
72 AppBlockBuilder& WithName(NameT&& value) {
73 SetName(std::forward<NameT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetDisplayName() const { return m_displayName; }
83 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
84 template <typename DisplayNameT = Aws::String>
85 void SetDisplayName(DisplayNameT&& value) {
86 m_displayNameHasBeenSet = true;
87 m_displayName = std::forward<DisplayNameT>(value);
88 }
89 template <typename DisplayNameT = Aws::String>
90 AppBlockBuilder& WithDisplayName(DisplayNameT&& value) {
91 SetDisplayName(std::forward<DisplayNameT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template <typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) {
104 m_descriptionHasBeenSet = true;
105 m_description = std::forward<DescriptionT>(value);
106 }
107 template <typename DescriptionT = Aws::String>
108 AppBlockBuilder& WithDescription(DescriptionT&& value) {
109 SetDescription(std::forward<DescriptionT>(value));
110 return *this;
111 }
113
115
119 inline AppBlockBuilderPlatformType GetPlatform() const { return m_platform; }
120 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
122 m_platformHasBeenSet = true;
123 m_platform = value;
124 }
126 SetPlatform(value);
127 return *this;
128 }
130
132
135 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
136 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
137 template <typename InstanceTypeT = Aws::String>
138 void SetInstanceType(InstanceTypeT&& value) {
139 m_instanceTypeHasBeenSet = true;
140 m_instanceType = std::forward<InstanceTypeT>(value);
141 }
142 template <typename InstanceTypeT = Aws::String>
143 AppBlockBuilder& WithInstanceType(InstanceTypeT&& value) {
144 SetInstanceType(std::forward<InstanceTypeT>(value));
145 return *this;
146 }
148
150
154 inline bool GetEnableDefaultInternetAccess() const { return m_enableDefaultInternetAccess; }
155 inline bool EnableDefaultInternetAccessHasBeenSet() const { return m_enableDefaultInternetAccessHasBeenSet; }
156 inline void SetEnableDefaultInternetAccess(bool value) {
157 m_enableDefaultInternetAccessHasBeenSet = true;
158 m_enableDefaultInternetAccess = value;
159 }
162 return *this;
163 }
165
167
170 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
171 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
172 template <typename IamRoleArnT = Aws::String>
173 void SetIamRoleArn(IamRoleArnT&& value) {
174 m_iamRoleArnHasBeenSet = true;
175 m_iamRoleArn = std::forward<IamRoleArnT>(value);
176 }
177 template <typename IamRoleArnT = Aws::String>
178 AppBlockBuilder& WithIamRoleArn(IamRoleArnT&& value) {
179 SetIamRoleArn(std::forward<IamRoleArnT>(value));
180 return *this;
181 }
183
185
188 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
189 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
190 template <typename VpcConfigT = VpcConfig>
191 void SetVpcConfig(VpcConfigT&& value) {
192 m_vpcConfigHasBeenSet = true;
193 m_vpcConfig = std::forward<VpcConfigT>(value);
194 }
195 template <typename VpcConfigT = VpcConfig>
196 AppBlockBuilder& WithVpcConfig(VpcConfigT&& value) {
197 SetVpcConfig(std::forward<VpcConfigT>(value));
198 return *this;
199 }
201
203
206 inline AppBlockBuilderState GetState() const { return m_state; }
207 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
208 inline void SetState(AppBlockBuilderState value) {
209 m_stateHasBeenSet = true;
210 m_state = value;
211 }
213 SetState(value);
214 return *this;
215 }
217
219
222 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
223 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
224 template <typename CreatedTimeT = Aws::Utils::DateTime>
225 void SetCreatedTime(CreatedTimeT&& value) {
226 m_createdTimeHasBeenSet = true;
227 m_createdTime = std::forward<CreatedTimeT>(value);
228 }
229 template <typename CreatedTimeT = Aws::Utils::DateTime>
230 AppBlockBuilder& WithCreatedTime(CreatedTimeT&& value) {
231 SetCreatedTime(std::forward<CreatedTimeT>(value));
232 return *this;
233 }
235
237
240 inline const Aws::Vector<ResourceError>& GetAppBlockBuilderErrors() const { return m_appBlockBuilderErrors; }
241 inline bool AppBlockBuilderErrorsHasBeenSet() const { return m_appBlockBuilderErrorsHasBeenSet; }
242 template <typename AppBlockBuilderErrorsT = Aws::Vector<ResourceError>>
243 void SetAppBlockBuilderErrors(AppBlockBuilderErrorsT&& value) {
244 m_appBlockBuilderErrorsHasBeenSet = true;
245 m_appBlockBuilderErrors = std::forward<AppBlockBuilderErrorsT>(value);
246 }
247 template <typename AppBlockBuilderErrorsT = Aws::Vector<ResourceError>>
248 AppBlockBuilder& WithAppBlockBuilderErrors(AppBlockBuilderErrorsT&& value) {
249 SetAppBlockBuilderErrors(std::forward<AppBlockBuilderErrorsT>(value));
250 return *this;
251 }
252 template <typename AppBlockBuilderErrorsT = ResourceError>
253 AppBlockBuilder& AddAppBlockBuilderErrors(AppBlockBuilderErrorsT&& value) {
254 m_appBlockBuilderErrorsHasBeenSet = true;
255 m_appBlockBuilderErrors.emplace_back(std::forward<AppBlockBuilderErrorsT>(value));
256 return *this;
257 }
259
261
264 inline const AppBlockBuilderStateChangeReason& GetStateChangeReason() const { return m_stateChangeReason; }
265 inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; }
266 template <typename StateChangeReasonT = AppBlockBuilderStateChangeReason>
267 void SetStateChangeReason(StateChangeReasonT&& value) {
268 m_stateChangeReasonHasBeenSet = true;
269 m_stateChangeReason = std::forward<StateChangeReasonT>(value);
270 }
271 template <typename StateChangeReasonT = AppBlockBuilderStateChangeReason>
272 AppBlockBuilder& WithStateChangeReason(StateChangeReasonT&& value) {
273 SetStateChangeReason(std::forward<StateChangeReasonT>(value));
274 return *this;
275 }
277
279
284 inline const Aws::Vector<AccessEndpoint>& GetAccessEndpoints() const { return m_accessEndpoints; }
285 inline bool AccessEndpointsHasBeenSet() const { return m_accessEndpointsHasBeenSet; }
286 template <typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
287 void SetAccessEndpoints(AccessEndpointsT&& value) {
288 m_accessEndpointsHasBeenSet = true;
289 m_accessEndpoints = std::forward<AccessEndpointsT>(value);
290 }
291 template <typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
292 AppBlockBuilder& WithAccessEndpoints(AccessEndpointsT&& value) {
293 SetAccessEndpoints(std::forward<AccessEndpointsT>(value));
294 return *this;
295 }
296 template <typename AccessEndpointsT = AccessEndpoint>
297 AppBlockBuilder& AddAccessEndpoints(AccessEndpointsT&& value) {
298 m_accessEndpointsHasBeenSet = true;
299 m_accessEndpoints.emplace_back(std::forward<AccessEndpointsT>(value));
300 return *this;
301 }
303 private:
304 Aws::String m_arn;
305
306 Aws::String m_name;
307
308 Aws::String m_displayName;
309
310 Aws::String m_description;
311
313
314 Aws::String m_instanceType;
315
316 bool m_enableDefaultInternetAccess{false};
317
318 Aws::String m_iamRoleArn;
319
320 VpcConfig m_vpcConfig;
321
323
324 Aws::Utils::DateTime m_createdTime{};
325
326 Aws::Vector<ResourceError> m_appBlockBuilderErrors;
327
328 AppBlockBuilderStateChangeReason m_stateChangeReason;
329
330 Aws::Vector<AccessEndpoint> m_accessEndpoints;
331 bool m_arnHasBeenSet = false;
332 bool m_nameHasBeenSet = false;
333 bool m_displayNameHasBeenSet = false;
334 bool m_descriptionHasBeenSet = false;
335 bool m_platformHasBeenSet = false;
336 bool m_instanceTypeHasBeenSet = false;
337 bool m_enableDefaultInternetAccessHasBeenSet = false;
338 bool m_iamRoleArnHasBeenSet = false;
339 bool m_vpcConfigHasBeenSet = false;
340 bool m_stateHasBeenSet = false;
341 bool m_createdTimeHasBeenSet = false;
342 bool m_appBlockBuilderErrorsHasBeenSet = false;
343 bool m_stateChangeReasonHasBeenSet = false;
344 bool m_accessEndpointsHasBeenSet = false;
345};
346
347} // namespace Model
348} // namespace AppStream
349} // namespace Aws
void SetPlatform(AppBlockBuilderPlatformType value)
void SetInstanceType(InstanceTypeT &&value)
AppBlockBuilder & WithVpcConfig(VpcConfigT &&value)
const Aws::String & GetDescription() const
AWS_APPSTREAM_API AppBlockBuilder & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDisplayName(DisplayNameT &&value)
AppBlockBuilder & AddAccessEndpoints(AccessEndpointsT &&value)
const Aws::Vector< ResourceError > & GetAppBlockBuilderErrors() const
AppBlockBuilder & WithName(NameT &&value)
void SetStateChangeReason(StateChangeReasonT &&value)
AppBlockBuilder & WithCreatedTime(CreatedTimeT &&value)
const AppBlockBuilderStateChangeReason & GetStateChangeReason() const
const Aws::Utils::DateTime & GetCreatedTime() const
AppBlockBuilder & WithIamRoleArn(IamRoleArnT &&value)
void SetState(AppBlockBuilderState value)
AWS_APPSTREAM_API AppBlockBuilder()=default
AppBlockBuilder & WithEnableDefaultInternetAccess(bool value)
AppBlockBuilder & WithDisplayName(DisplayNameT &&value)
AppBlockBuilderState GetState() const
AppBlockBuilder & WithAccessEndpoints(AccessEndpointsT &&value)
AppBlockBuilder & WithInstanceType(InstanceTypeT &&value)
AppBlockBuilder & WithAppBlockBuilderErrors(AppBlockBuilderErrorsT &&value)
AppBlockBuilder & AddAppBlockBuilderErrors(AppBlockBuilderErrorsT &&value)
AppBlockBuilder & WithArn(ArnT &&value)
AppBlockBuilder & WithStateChangeReason(StateChangeReasonT &&value)
void SetCreatedTime(CreatedTimeT &&value)
const Aws::String & GetInstanceType() const
const VpcConfig & GetVpcConfig() const
const Aws::Vector< AccessEndpoint > & GetAccessEndpoints() const
AppBlockBuilder & WithDescription(DescriptionT &&value)
void SetAccessEndpoints(AccessEndpointsT &&value)
AppBlockBuilder & WithState(AppBlockBuilderState value)
AWS_APPSTREAM_API AppBlockBuilder(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAppBlockBuilderErrors(AppBlockBuilderErrorsT &&value)
void SetDescription(DescriptionT &&value)
AppBlockBuilderPlatformType GetPlatform() const
const Aws::String & GetDisplayName() const
const Aws::String & GetIamRoleArn() const
const Aws::String & GetArn() const
void SetIamRoleArn(IamRoleArnT &&value)
AppBlockBuilder & WithPlatform(AppBlockBuilderPlatformType value)
const Aws::String & GetName() 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