AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AppBlockBuilder.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appstream/model/AppBlockBuilderPlatformType.h>
10#include <aws/appstream/model/VpcConfig.h>
11#include <aws/appstream/model/AppBlockBuilderState.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/appstream/model/AppBlockBuilderStateChangeReason.h>
15#include <aws/appstream/model/ResourceError.h>
16#include <aws/appstream/model/AccessEndpoint.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace AppStream
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_APPSTREAM_API AppBlockBuilder();
43 AWS_APPSTREAM_API AppBlockBuilder(Aws::Utils::Json::JsonView jsonValue);
45 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetArn() const{ return m_arn; }
53 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
54 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
55 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
56 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
57 inline AppBlockBuilder& WithArn(const Aws::String& value) { SetArn(value); return *this;}
58 inline AppBlockBuilder& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
59 inline AppBlockBuilder& WithArn(const char* value) { SetArn(value); return *this;}
61
63
66 inline const Aws::String& GetName() const{ return m_name; }
67 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
69 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
70 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
71 inline AppBlockBuilder& WithName(const Aws::String& value) { SetName(value); return *this;}
72 inline AppBlockBuilder& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
73 inline AppBlockBuilder& WithName(const char* value) { SetName(value); return *this;}
75
77
80 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
81 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
82 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
83 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
84 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
85 inline AppBlockBuilder& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
86 inline AppBlockBuilder& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
87 inline AppBlockBuilder& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
89
91
94 inline const Aws::String& GetDescription() const{ return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
97 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
98 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
99 inline AppBlockBuilder& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
100 inline AppBlockBuilder& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
101 inline AppBlockBuilder& WithDescription(const char* value) { SetDescription(value); return *this;}
103
105
109 inline const AppBlockBuilderPlatformType& GetPlatform() const{ return m_platform; }
110 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
111 inline void SetPlatform(const AppBlockBuilderPlatformType& value) { m_platformHasBeenSet = true; m_platform = value; }
112 inline void SetPlatform(AppBlockBuilderPlatformType&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
113 inline AppBlockBuilder& WithPlatform(const AppBlockBuilderPlatformType& value) { SetPlatform(value); return *this;}
114 inline AppBlockBuilder& WithPlatform(AppBlockBuilderPlatformType&& value) { SetPlatform(std::move(value)); return *this;}
116
118
121 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
122 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
123 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
124 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
125 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
126 inline AppBlockBuilder& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
127 inline AppBlockBuilder& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
128 inline AppBlockBuilder& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
130
132
136 inline bool GetEnableDefaultInternetAccess() const{ return m_enableDefaultInternetAccess; }
137 inline bool EnableDefaultInternetAccessHasBeenSet() const { return m_enableDefaultInternetAccessHasBeenSet; }
138 inline void SetEnableDefaultInternetAccess(bool value) { m_enableDefaultInternetAccessHasBeenSet = true; m_enableDefaultInternetAccess = value; }
141
143
146 inline const Aws::String& GetIamRoleArn() const{ return m_iamRoleArn; }
147 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
148 inline void SetIamRoleArn(const Aws::String& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = value; }
149 inline void SetIamRoleArn(Aws::String&& value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn = std::move(value); }
150 inline void SetIamRoleArn(const char* value) { m_iamRoleArnHasBeenSet = true; m_iamRoleArn.assign(value); }
151 inline AppBlockBuilder& WithIamRoleArn(const Aws::String& value) { SetIamRoleArn(value); return *this;}
152 inline AppBlockBuilder& WithIamRoleArn(Aws::String&& value) { SetIamRoleArn(std::move(value)); return *this;}
153 inline AppBlockBuilder& WithIamRoleArn(const char* value) { SetIamRoleArn(value); return *this;}
155
157
160 inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; }
161 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
162 inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; }
163 inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); }
164 inline AppBlockBuilder& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;}
165 inline AppBlockBuilder& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;}
167
169
172 inline const AppBlockBuilderState& GetState() const{ return m_state; }
173 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
174 inline void SetState(const AppBlockBuilderState& value) { m_stateHasBeenSet = true; m_state = value; }
175 inline void SetState(AppBlockBuilderState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
176 inline AppBlockBuilder& WithState(const AppBlockBuilderState& value) { SetState(value); return *this;}
177 inline AppBlockBuilder& WithState(AppBlockBuilderState&& value) { SetState(std::move(value)); return *this;}
179
181
184 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
185 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
186 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
187 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
188 inline AppBlockBuilder& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
189 inline AppBlockBuilder& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
191
193
196 inline const Aws::Vector<ResourceError>& GetAppBlockBuilderErrors() const{ return m_appBlockBuilderErrors; }
197 inline bool AppBlockBuilderErrorsHasBeenSet() const { return m_appBlockBuilderErrorsHasBeenSet; }
198 inline void SetAppBlockBuilderErrors(const Aws::Vector<ResourceError>& value) { m_appBlockBuilderErrorsHasBeenSet = true; m_appBlockBuilderErrors = value; }
199 inline void SetAppBlockBuilderErrors(Aws::Vector<ResourceError>&& value) { m_appBlockBuilderErrorsHasBeenSet = true; m_appBlockBuilderErrors = std::move(value); }
202 inline AppBlockBuilder& AddAppBlockBuilderErrors(const ResourceError& value) { m_appBlockBuilderErrorsHasBeenSet = true; m_appBlockBuilderErrors.push_back(value); return *this; }
203 inline AppBlockBuilder& AddAppBlockBuilderErrors(ResourceError&& value) { m_appBlockBuilderErrorsHasBeenSet = true; m_appBlockBuilderErrors.push_back(std::move(value)); return *this; }
205
207
210 inline const AppBlockBuilderStateChangeReason& GetStateChangeReason() const{ return m_stateChangeReason; }
211 inline bool StateChangeReasonHasBeenSet() const { return m_stateChangeReasonHasBeenSet; }
212 inline void SetStateChangeReason(const AppBlockBuilderStateChangeReason& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = value; }
213 inline void SetStateChangeReason(AppBlockBuilderStateChangeReason&& value) { m_stateChangeReasonHasBeenSet = true; m_stateChangeReason = std::move(value); }
217
219
224 inline const Aws::Vector<AccessEndpoint>& GetAccessEndpoints() const{ return m_accessEndpoints; }
225 inline bool AccessEndpointsHasBeenSet() const { return m_accessEndpointsHasBeenSet; }
226 inline void SetAccessEndpoints(const Aws::Vector<AccessEndpoint>& value) { m_accessEndpointsHasBeenSet = true; m_accessEndpoints = value; }
227 inline void SetAccessEndpoints(Aws::Vector<AccessEndpoint>&& value) { m_accessEndpointsHasBeenSet = true; m_accessEndpoints = std::move(value); }
229 inline AppBlockBuilder& WithAccessEndpoints(Aws::Vector<AccessEndpoint>&& value) { SetAccessEndpoints(std::move(value)); return *this;}
230 inline AppBlockBuilder& AddAccessEndpoints(const AccessEndpoint& value) { m_accessEndpointsHasBeenSet = true; m_accessEndpoints.push_back(value); return *this; }
231 inline AppBlockBuilder& AddAccessEndpoints(AccessEndpoint&& value) { m_accessEndpointsHasBeenSet = true; m_accessEndpoints.push_back(std::move(value)); return *this; }
233 private:
234
235 Aws::String m_arn;
236 bool m_arnHasBeenSet = false;
237
238 Aws::String m_name;
239 bool m_nameHasBeenSet = false;
240
241 Aws::String m_displayName;
242 bool m_displayNameHasBeenSet = false;
243
244 Aws::String m_description;
245 bool m_descriptionHasBeenSet = false;
246
248 bool m_platformHasBeenSet = false;
249
250 Aws::String m_instanceType;
251 bool m_instanceTypeHasBeenSet = false;
252
253 bool m_enableDefaultInternetAccess;
254 bool m_enableDefaultInternetAccessHasBeenSet = false;
255
256 Aws::String m_iamRoleArn;
257 bool m_iamRoleArnHasBeenSet = false;
258
259 VpcConfig m_vpcConfig;
260 bool m_vpcConfigHasBeenSet = false;
261
262 AppBlockBuilderState m_state;
263 bool m_stateHasBeenSet = false;
264
265 Aws::Utils::DateTime m_createdTime;
266 bool m_createdTimeHasBeenSet = false;
267
268 Aws::Vector<ResourceError> m_appBlockBuilderErrors;
269 bool m_appBlockBuilderErrorsHasBeenSet = false;
270
271 AppBlockBuilderStateChangeReason m_stateChangeReason;
272 bool m_stateChangeReasonHasBeenSet = false;
273
274 Aws::Vector<AccessEndpoint> m_accessEndpoints;
275 bool m_accessEndpointsHasBeenSet = false;
276 };
277
278} // namespace Model
279} // namespace AppStream
280} // namespace Aws
AppBlockBuilder & AddAccessEndpoints(const AccessEndpoint &value)
AppBlockBuilder & WithInstanceType(const char *value)
void SetIamRoleArn(const Aws::String &value)
AppBlockBuilder & WithArn(const char *value)
void SetDescription(const Aws::String &value)
void SetDescription(Aws::String &&value)
void SetState(AppBlockBuilderState &&value)
void SetAccessEndpoints(const Aws::Vector< AccessEndpoint > &value)
void SetDisplayName(Aws::String &&value)
AppBlockBuilder & WithState(AppBlockBuilderState &&value)
AppBlockBuilder & WithVpcConfig(const VpcConfig &value)
void SetArn(const Aws::String &value)
const Aws::String & GetDescription() const
AWS_APPSTREAM_API AppBlockBuilder & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVpcConfig(const VpcConfig &value)
AppBlockBuilder & WithIamRoleArn(const char *value)
const Aws::Vector< ResourceError > & GetAppBlockBuilderErrors() const
void SetCreatedTime(Aws::Utils::DateTime &&value)
AppBlockBuilder & WithDescription(Aws::String &&value)
void SetInstanceType(const Aws::String &value)
void SetInstanceType(Aws::String &&value)
AppBlockBuilder & WithCreatedTime(Aws::Utils::DateTime &&value)
const AppBlockBuilderStateChangeReason & GetStateChangeReason() const
const Aws::Utils::DateTime & GetCreatedTime() const
AppBlockBuilder & WithArn(const Aws::String &value)
AppBlockBuilder & WithDisplayName(const Aws::String &value)
AppBlockBuilder & WithEnableDefaultInternetAccess(bool value)
AppBlockBuilder & WithArn(Aws::String &&value)
void SetAppBlockBuilderErrors(Aws::Vector< ResourceError > &&value)
void SetPlatform(const AppBlockBuilderPlatformType &value)
AppBlockBuilder & WithInstanceType(Aws::String &&value)
AppBlockBuilder & WithName(Aws::String &&value)
AppBlockBuilder & WithName(const char *value)
AppBlockBuilder & AddAppBlockBuilderErrors(const ResourceError &value)
AppBlockBuilder & WithDescription(const Aws::String &value)
AppBlockBuilder & WithPlatform(AppBlockBuilderPlatformType &&value)
AppBlockBuilder & WithDisplayName(const char *value)
void SetIamRoleArn(Aws::String &&value)
const Aws::String & GetInstanceType() const
void SetDisplayName(const Aws::String &value)
AppBlockBuilder & WithName(const Aws::String &value)
void SetAccessEndpoints(Aws::Vector< AccessEndpoint > &&value)
AppBlockBuilder & WithDisplayName(Aws::String &&value)
const VpcConfig & GetVpcConfig() const
const Aws::Vector< AccessEndpoint > & GetAccessEndpoints() const
AppBlockBuilder & WithAppBlockBuilderErrors(const Aws::Vector< ResourceError > &value)
void SetStateChangeReason(const AppBlockBuilderStateChangeReason &value)
AppBlockBuilder & WithStateChangeReason(AppBlockBuilderStateChangeReason &&value)
const AppBlockBuilderPlatformType & GetPlatform() const
AppBlockBuilder & WithCreatedTime(const Aws::Utils::DateTime &value)
AWS_APPSTREAM_API AppBlockBuilder(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
AppBlockBuilder & WithPlatform(const AppBlockBuilderPlatformType &value)
AppBlockBuilder & AddAppBlockBuilderErrors(ResourceError &&value)
AppBlockBuilder & AddAccessEndpoints(AccessEndpoint &&value)
void SetState(const AppBlockBuilderState &value)
AppBlockBuilder & WithInstanceType(const Aws::String &value)
void SetStateChangeReason(AppBlockBuilderStateChangeReason &&value)
const Aws::String & GetDisplayName() const
const AppBlockBuilderState & GetState() const
AppBlockBuilder & WithVpcConfig(VpcConfig &&value)
AppBlockBuilder & WithStateChangeReason(const AppBlockBuilderStateChangeReason &value)
const Aws::String & GetIamRoleArn() const
void SetPlatform(AppBlockBuilderPlatformType &&value)
AppBlockBuilder & WithAccessEndpoints(Aws::Vector< AccessEndpoint > &&value)
const Aws::String & GetArn() const
AppBlockBuilder & WithAccessEndpoints(const Aws::Vector< AccessEndpoint > &value)
void SetAppBlockBuilderErrors(const Aws::Vector< ResourceError > &value)
AppBlockBuilder & WithDescription(const char *value)
void SetName(const Aws::String &value)
AppBlockBuilder & WithAppBlockBuilderErrors(Aws::Vector< ResourceError > &&value)
const Aws::String & GetName() const
AppBlockBuilder & WithIamRoleArn(Aws::String &&value)
void SetCreatedTime(const Aws::Utils::DateTime &value)
AppBlockBuilder & WithIamRoleArn(const Aws::String &value)
AppBlockBuilder & WithState(const AppBlockBuilderState &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue