AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateAppBlockBuilderRequest.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/AppBlockBuilderAttribute.h>
11#include <aws/appstream/model/PlatformType.h>
12#include <aws/appstream/model/VpcConfig.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 UpdateAppBlockBuilderRequest() = 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 "UpdateAppBlockBuilder"; }
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
97 inline PlatformType GetPlatform() const { return m_platform; }
98 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
99 inline void SetPlatform(PlatformType value) {
100 m_platformHasBeenSet = true;
101 m_platform = value;
102 }
104 SetPlatform(value);
105 return *this;
106 }
108
110
117 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
118 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
119 template <typename InstanceTypeT = Aws::String>
120 void SetInstanceType(InstanceTypeT&& value) {
121 m_instanceTypeHasBeenSet = true;
122 m_instanceType = std::forward<InstanceTypeT>(value);
123 }
124 template <typename InstanceTypeT = Aws::String>
126 SetInstanceType(std::forward<InstanceTypeT>(value));
127 return *this;
128 }
130
132
137 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
138 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
139 template <typename VpcConfigT = VpcConfig>
140 void SetVpcConfig(VpcConfigT&& value) {
141 m_vpcConfigHasBeenSet = true;
142 m_vpcConfig = std::forward<VpcConfigT>(value);
143 }
144 template <typename VpcConfigT = VpcConfig>
146 SetVpcConfig(std::forward<VpcConfigT>(value));
147 return *this;
148 }
150
152
155 inline bool GetEnableDefaultInternetAccess() const { return m_enableDefaultInternetAccess; }
156 inline bool EnableDefaultInternetAccessHasBeenSet() const { return m_enableDefaultInternetAccessHasBeenSet; }
157 inline void SetEnableDefaultInternetAccess(bool value) {
158 m_enableDefaultInternetAccessHasBeenSet = true;
159 m_enableDefaultInternetAccess = value;
160 }
163 return *this;
164 }
166
168
181 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
182 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
183 template <typename IamRoleArnT = Aws::String>
184 void SetIamRoleArn(IamRoleArnT&& value) {
185 m_iamRoleArnHasBeenSet = true;
186 m_iamRoleArn = std::forward<IamRoleArnT>(value);
187 }
188 template <typename IamRoleArnT = Aws::String>
190 SetIamRoleArn(std::forward<IamRoleArnT>(value));
191 return *this;
192 }
194
196
201 inline const Aws::Vector<AccessEndpoint>& GetAccessEndpoints() const { return m_accessEndpoints; }
202 inline bool AccessEndpointsHasBeenSet() const { return m_accessEndpointsHasBeenSet; }
203 template <typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
204 void SetAccessEndpoints(AccessEndpointsT&& value) {
205 m_accessEndpointsHasBeenSet = true;
206 m_accessEndpoints = std::forward<AccessEndpointsT>(value);
207 }
208 template <typename AccessEndpointsT = Aws::Vector<AccessEndpoint>>
210 SetAccessEndpoints(std::forward<AccessEndpointsT>(value));
211 return *this;
212 }
213 template <typename AccessEndpointsT = AccessEndpoint>
215 m_accessEndpointsHasBeenSet = true;
216 m_accessEndpoints.emplace_back(std::forward<AccessEndpointsT>(value));
217 return *this;
218 }
220
222
225 inline const Aws::Vector<AppBlockBuilderAttribute>& GetAttributesToDelete() const { return m_attributesToDelete; }
226 inline bool AttributesToDeleteHasBeenSet() const { return m_attributesToDeleteHasBeenSet; }
227 template <typename AttributesToDeleteT = Aws::Vector<AppBlockBuilderAttribute>>
228 void SetAttributesToDelete(AttributesToDeleteT&& value) {
229 m_attributesToDeleteHasBeenSet = true;
230 m_attributesToDelete = std::forward<AttributesToDeleteT>(value);
231 }
232 template <typename AttributesToDeleteT = Aws::Vector<AppBlockBuilderAttribute>>
234 SetAttributesToDelete(std::forward<AttributesToDeleteT>(value));
235 return *this;
236 }
238 m_attributesToDeleteHasBeenSet = true;
239 m_attributesToDelete.push_back(value);
240 return *this;
241 }
243 private:
244 Aws::String m_name;
245
246 Aws::String m_description;
247
248 Aws::String m_displayName;
249
251
252 Aws::String m_instanceType;
253
254 VpcConfig m_vpcConfig;
255
256 bool m_enableDefaultInternetAccess{false};
257
258 Aws::String m_iamRoleArn;
259
260 Aws::Vector<AccessEndpoint> m_accessEndpoints;
261
262 Aws::Vector<AppBlockBuilderAttribute> m_attributesToDelete;
263 bool m_nameHasBeenSet = false;
264 bool m_descriptionHasBeenSet = false;
265 bool m_displayNameHasBeenSet = false;
266 bool m_platformHasBeenSet = false;
267 bool m_instanceTypeHasBeenSet = false;
268 bool m_vpcConfigHasBeenSet = false;
269 bool m_enableDefaultInternetAccessHasBeenSet = false;
270 bool m_iamRoleArnHasBeenSet = false;
271 bool m_accessEndpointsHasBeenSet = false;
272 bool m_attributesToDeleteHasBeenSet = false;
273};
274
275} // namespace Model
276} // namespace AppStream
277} // namespace Aws
AWS_APPSTREAM_API UpdateAppBlockBuilderRequest()=default
AWS_APPSTREAM_API Aws::String SerializePayload() const override
UpdateAppBlockBuilderRequest & WithAccessEndpoints(AccessEndpointsT &&value)
UpdateAppBlockBuilderRequest & WithDisplayName(DisplayNameT &&value)
UpdateAppBlockBuilderRequest & WithEnableDefaultInternetAccess(bool value)
UpdateAppBlockBuilderRequest & WithInstanceType(InstanceTypeT &&value)
UpdateAppBlockBuilderRequest & WithDescription(DescriptionT &&value)
UpdateAppBlockBuilderRequest & WithAttributesToDelete(AttributesToDeleteT &&value)
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateAppBlockBuilderRequest & WithVpcConfig(VpcConfigT &&value)
UpdateAppBlockBuilderRequest & AddAccessEndpoints(AccessEndpointsT &&value)
const Aws::Vector< AccessEndpoint > & GetAccessEndpoints() const
const Aws::Vector< AppBlockBuilderAttribute > & GetAttributesToDelete() const
UpdateAppBlockBuilderRequest & AddAttributesToDelete(AppBlockBuilderAttribute value)
UpdateAppBlockBuilderRequest & WithName(NameT &&value)
UpdateAppBlockBuilderRequest & WithIamRoleArn(IamRoleArnT &&value)
UpdateAppBlockBuilderRequest & WithPlatform(PlatformType value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector