AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateAppBlockBuilderRequest.h
1
6#pragma once
7#include <aws/appstream/AppStreamRequest.h>
8#include <aws/appstream/AppStream_EXPORTS.h>
9#include <aws/appstream/model/AccessEndpoint.h>
10#include <aws/appstream/model/AppBlockBuilderPlatformType.h>
11#include <aws/appstream/model/VpcConfig.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace AppStream {
20namespace Model {
21
25 public:
26 AWS_APPSTREAM_API CreateAppBlockBuilderRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateAppBlockBuilder"; }
33
34 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
35
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template <typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) {
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDisplayName() const { return m_displayName; }
79 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
80 template <typename DisplayNameT = Aws::String>
81 void SetDisplayName(DisplayNameT&& value) {
82 m_displayNameHasBeenSet = true;
83 m_displayName = std::forward<DisplayNameT>(value);
84 }
85 template <typename DisplayNameT = Aws::String>
87 SetDisplayName(std::forward<DisplayNameT>(value));
88 return *this;
89 }
91
93
104 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
105 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
106 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
107 void SetTags(TagsT&& value) {
108 m_tagsHasBeenSet = true;
109 m_tags = std::forward<TagsT>(value);
110 }
111 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 SetTags(std::forward<TagsT>(value));
114 return *this;
115 }
116 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
117 CreateAppBlockBuilderRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
118 m_tagsHasBeenSet = true;
119 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
120 return *this;
121 }
123
125
129 inline AppBlockBuilderPlatformType GetPlatform() const { return m_platform; }
130 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
132 m_platformHasBeenSet = true;
133 m_platform = value;
134 }
136 SetPlatform(value);
137 return *this;
138 }
140
142
149 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
150 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
151 template <typename InstanceTypeT = Aws::String>
152 void SetInstanceType(InstanceTypeT&& value) {
153 m_instanceTypeHasBeenSet = true;
154 m_instanceType = std::forward<InstanceTypeT>(value);
155 }
156 template <typename InstanceTypeT = Aws::String>
158 SetInstanceType(std::forward<InstanceTypeT>(value));
159 return *this;
160 }
162
164
169 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
170 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
171 template <typename VpcConfigT = VpcConfig>
172 void SetVpcConfig(VpcConfigT&& value) {
173 m_vpcConfigHasBeenSet = true;
174 m_vpcConfig = std::forward<VpcConfigT>(value);
175 }
176 template <typename VpcConfigT = VpcConfig>
178 SetVpcConfig(std::forward<VpcConfigT>(value));
179 return *this;
180 }
182
184
187 inline bool GetEnableDefaultInternetAccess() const { return m_enableDefaultInternetAccess; }
188 inline bool EnableDefaultInternetAccessHasBeenSet() const { return m_enableDefaultInternetAccessHasBeenSet; }
189 inline void SetEnableDefaultInternetAccess(bool value) {
190 m_enableDefaultInternetAccessHasBeenSet = true;
191 m_enableDefaultInternetAccess = value;
192 }
195 return *this;
196 }
198
200
213 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
214 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
215 template <typename IamRoleArnT = Aws::String>
216 void SetIamRoleArn(IamRoleArnT&& value) {
217 m_iamRoleArnHasBeenSet = true;
218 m_iamRoleArn = std::forward<IamRoleArnT>(value);
219 }
220 template <typename IamRoleArnT = Aws::String>
222 SetIamRoleArn(std::forward<IamRoleArnT>(value));
223 return *this;
224 }
226
228
233 inline const Aws::Vector<AccessEndpoint>& GetAccessEndpoints() const { return m_accessEndpoints; }
234 inline bool AccessEndpointsHasBeenSet() const { return m_accessEndpointsHasBeenSet; }
235 template <typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
236 void SetAccessEndpoints(AccessEndpointsT&& value) {
237 m_accessEndpointsHasBeenSet = true;
238 m_accessEndpoints = std::forward<AccessEndpointsT>(value);
239 }
240 template <typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
242 SetAccessEndpoints(std::forward<AccessEndpointsT>(value));
243 return *this;
244 }
245 template <typename AccessEndpointsT = AccessEndpoint>
247 m_accessEndpointsHasBeenSet = true;
248 m_accessEndpoints.emplace_back(std::forward<AccessEndpointsT>(value));
249 return *this;
250 }
252 private:
253 Aws::String m_name;
254
255 Aws::String m_description;
256
257 Aws::String m_displayName;
258
260
262
263 Aws::String m_instanceType;
264
265 VpcConfig m_vpcConfig;
266
267 bool m_enableDefaultInternetAccess{false};
268
269 Aws::String m_iamRoleArn;
270
271 Aws::Vector<AccessEndpoint> m_accessEndpoints;
272 bool m_nameHasBeenSet = false;
273 bool m_descriptionHasBeenSet = false;
274 bool m_displayNameHasBeenSet = false;
275 bool m_tagsHasBeenSet = false;
276 bool m_platformHasBeenSet = false;
277 bool m_instanceTypeHasBeenSet = false;
278 bool m_vpcConfigHasBeenSet = false;
279 bool m_enableDefaultInternetAccessHasBeenSet = false;
280 bool m_iamRoleArnHasBeenSet = false;
281 bool m_accessEndpointsHasBeenSet = false;
282};
283
284} // namespace Model
285} // namespace AppStream
286} // namespace Aws
CreateAppBlockBuilderRequest & WithTags(TagsT &&value)
CreateAppBlockBuilderRequest & WithInstanceType(InstanceTypeT &&value)
CreateAppBlockBuilderRequest & WithAccessEndpoints(AccessEndpointsT &&value)
CreateAppBlockBuilderRequest & WithDisplayName(DisplayNameT &&value)
CreateAppBlockBuilderRequest & WithVpcConfig(VpcConfigT &&value)
CreateAppBlockBuilderRequest & WithEnableDefaultInternetAccess(bool value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAppBlockBuilderRequest & WithName(NameT &&value)
CreateAppBlockBuilderRequest & AddAccessEndpoints(AccessEndpointsT &&value)
AWS_APPSTREAM_API CreateAppBlockBuilderRequest()=default
CreateAppBlockBuilderRequest & WithIamRoleArn(IamRoleArnT &&value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
const Aws::Vector< AccessEndpoint > & GetAccessEndpoints() const
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAppBlockBuilderRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAppBlockBuilderRequest & WithDescription(DescriptionT &&value)
CreateAppBlockBuilderRequest & WithPlatform(AppBlockBuilderPlatformType value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector