AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateStudioRequest.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/EMRRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticmapreduce/model/AuthMode.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/elasticmapreduce/model/IdcUserAssignment.h>
13#include <aws/elasticmapreduce/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace EMR
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_EMR_API CreateStudioRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateStudio"; }
35
36 AWS_EMR_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 CreateStudioRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template<typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
61 template<typename DescriptionT = Aws::String>
62 CreateStudioRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
64
66
70 inline AuthMode GetAuthMode() const { return m_authMode; }
71 inline bool AuthModeHasBeenSet() const { return m_authModeHasBeenSet; }
72 inline void SetAuthMode(AuthMode value) { m_authModeHasBeenSet = true; m_authMode = value; }
73 inline CreateStudioRequest& WithAuthMode(AuthMode value) { SetAuthMode(value); return *this;}
75
77
81 inline const Aws::String& GetVpcId() const { return m_vpcId; }
82 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
83 template<typename VpcIdT = Aws::String>
84 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
85 template<typename VpcIdT = Aws::String>
86 CreateStudioRequest& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
88
90
96 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
97 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
98 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
99 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
100 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
101 CreateStudioRequest& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
102 template<typename SubnetIdsT = Aws::String>
103 CreateStudioRequest& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
105
107
112 inline const Aws::String& GetServiceRole() const { return m_serviceRole; }
113 inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; }
114 template<typename ServiceRoleT = Aws::String>
115 void SetServiceRole(ServiceRoleT&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::forward<ServiceRoleT>(value); }
116 template<typename ServiceRoleT = Aws::String>
117 CreateStudioRequest& WithServiceRole(ServiceRoleT&& value) { SetServiceRole(std::forward<ServiceRoleT>(value)); return *this;}
119
121
127 inline const Aws::String& GetUserRole() const { return m_userRole; }
128 inline bool UserRoleHasBeenSet() const { return m_userRoleHasBeenSet; }
129 template<typename UserRoleT = Aws::String>
130 void SetUserRole(UserRoleT&& value) { m_userRoleHasBeenSet = true; m_userRole = std::forward<UserRoleT>(value); }
131 template<typename UserRoleT = Aws::String>
132 CreateStudioRequest& WithUserRole(UserRoleT&& value) { SetUserRole(std::forward<UserRoleT>(value)); return *this;}
134
136
142 inline const Aws::String& GetWorkspaceSecurityGroupId() const { return m_workspaceSecurityGroupId; }
143 inline bool WorkspaceSecurityGroupIdHasBeenSet() const { return m_workspaceSecurityGroupIdHasBeenSet; }
144 template<typename WorkspaceSecurityGroupIdT = Aws::String>
145 void SetWorkspaceSecurityGroupId(WorkspaceSecurityGroupIdT&& value) { m_workspaceSecurityGroupIdHasBeenSet = true; m_workspaceSecurityGroupId = std::forward<WorkspaceSecurityGroupIdT>(value); }
146 template<typename WorkspaceSecurityGroupIdT = Aws::String>
147 CreateStudioRequest& WithWorkspaceSecurityGroupId(WorkspaceSecurityGroupIdT&& value) { SetWorkspaceSecurityGroupId(std::forward<WorkspaceSecurityGroupIdT>(value)); return *this;}
149
151
156 inline const Aws::String& GetEngineSecurityGroupId() const { return m_engineSecurityGroupId; }
157 inline bool EngineSecurityGroupIdHasBeenSet() const { return m_engineSecurityGroupIdHasBeenSet; }
158 template<typename EngineSecurityGroupIdT = Aws::String>
159 void SetEngineSecurityGroupId(EngineSecurityGroupIdT&& value) { m_engineSecurityGroupIdHasBeenSet = true; m_engineSecurityGroupId = std::forward<EngineSecurityGroupIdT>(value); }
160 template<typename EngineSecurityGroupIdT = Aws::String>
161 CreateStudioRequest& WithEngineSecurityGroupId(EngineSecurityGroupIdT&& value) { SetEngineSecurityGroupId(std::forward<EngineSecurityGroupIdT>(value)); return *this;}
163
165
169 inline const Aws::String& GetDefaultS3Location() const { return m_defaultS3Location; }
170 inline bool DefaultS3LocationHasBeenSet() const { return m_defaultS3LocationHasBeenSet; }
171 template<typename DefaultS3LocationT = Aws::String>
172 void SetDefaultS3Location(DefaultS3LocationT&& value) { m_defaultS3LocationHasBeenSet = true; m_defaultS3Location = std::forward<DefaultS3LocationT>(value); }
173 template<typename DefaultS3LocationT = Aws::String>
174 CreateStudioRequest& WithDefaultS3Location(DefaultS3LocationT&& value) { SetDefaultS3Location(std::forward<DefaultS3LocationT>(value)); return *this;}
176
178
184 inline const Aws::String& GetIdpAuthUrl() const { return m_idpAuthUrl; }
185 inline bool IdpAuthUrlHasBeenSet() const { return m_idpAuthUrlHasBeenSet; }
186 template<typename IdpAuthUrlT = Aws::String>
187 void SetIdpAuthUrl(IdpAuthUrlT&& value) { m_idpAuthUrlHasBeenSet = true; m_idpAuthUrl = std::forward<IdpAuthUrlT>(value); }
188 template<typename IdpAuthUrlT = Aws::String>
189 CreateStudioRequest& WithIdpAuthUrl(IdpAuthUrlT&& value) { SetIdpAuthUrl(std::forward<IdpAuthUrlT>(value)); return *this;}
191
193
200 inline const Aws::String& GetIdpRelayStateParameterName() const { return m_idpRelayStateParameterName; }
201 inline bool IdpRelayStateParameterNameHasBeenSet() const { return m_idpRelayStateParameterNameHasBeenSet; }
202 template<typename IdpRelayStateParameterNameT = Aws::String>
203 void SetIdpRelayStateParameterName(IdpRelayStateParameterNameT&& value) { m_idpRelayStateParameterNameHasBeenSet = true; m_idpRelayStateParameterName = std::forward<IdpRelayStateParameterNameT>(value); }
204 template<typename IdpRelayStateParameterNameT = Aws::String>
205 CreateStudioRequest& WithIdpRelayStateParameterName(IdpRelayStateParameterNameT&& value) { SetIdpRelayStateParameterName(std::forward<IdpRelayStateParameterNameT>(value)); return *this;}
207
209
214 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
215 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
216 template<typename TagsT = Aws::Vector<Tag>>
217 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
218 template<typename TagsT = Aws::Vector<Tag>>
219 CreateStudioRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
220 template<typename TagsT = Tag>
221 CreateStudioRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
223
225
229 inline bool GetTrustedIdentityPropagationEnabled() const { return m_trustedIdentityPropagationEnabled; }
230 inline bool TrustedIdentityPropagationEnabledHasBeenSet() const { return m_trustedIdentityPropagationEnabledHasBeenSet; }
231 inline void SetTrustedIdentityPropagationEnabled(bool value) { m_trustedIdentityPropagationEnabledHasBeenSet = true; m_trustedIdentityPropagationEnabled = value; }
234
236
242 inline IdcUserAssignment GetIdcUserAssignment() const { return m_idcUserAssignment; }
243 inline bool IdcUserAssignmentHasBeenSet() const { return m_idcUserAssignmentHasBeenSet; }
244 inline void SetIdcUserAssignment(IdcUserAssignment value) { m_idcUserAssignmentHasBeenSet = true; m_idcUserAssignment = value; }
247
249
253 inline const Aws::String& GetIdcInstanceArn() const { return m_idcInstanceArn; }
254 inline bool IdcInstanceArnHasBeenSet() const { return m_idcInstanceArnHasBeenSet; }
255 template<typename IdcInstanceArnT = Aws::String>
256 void SetIdcInstanceArn(IdcInstanceArnT&& value) { m_idcInstanceArnHasBeenSet = true; m_idcInstanceArn = std::forward<IdcInstanceArnT>(value); }
257 template<typename IdcInstanceArnT = Aws::String>
258 CreateStudioRequest& WithIdcInstanceArn(IdcInstanceArnT&& value) { SetIdcInstanceArn(std::forward<IdcInstanceArnT>(value)); return *this;}
260
262
266 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
267 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
268 template<typename EncryptionKeyArnT = Aws::String>
269 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value); }
270 template<typename EncryptionKeyArnT = Aws::String>
271 CreateStudioRequest& WithEncryptionKeyArn(EncryptionKeyArnT&& value) { SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value)); return *this;}
273 private:
274
275 Aws::String m_name;
276 bool m_nameHasBeenSet = false;
277
278 Aws::String m_description;
279 bool m_descriptionHasBeenSet = false;
280
281 AuthMode m_authMode{AuthMode::NOT_SET};
282 bool m_authModeHasBeenSet = false;
283
284 Aws::String m_vpcId;
285 bool m_vpcIdHasBeenSet = false;
286
287 Aws::Vector<Aws::String> m_subnetIds;
288 bool m_subnetIdsHasBeenSet = false;
289
290 Aws::String m_serviceRole;
291 bool m_serviceRoleHasBeenSet = false;
292
293 Aws::String m_userRole;
294 bool m_userRoleHasBeenSet = false;
295
296 Aws::String m_workspaceSecurityGroupId;
297 bool m_workspaceSecurityGroupIdHasBeenSet = false;
298
299 Aws::String m_engineSecurityGroupId;
300 bool m_engineSecurityGroupIdHasBeenSet = false;
301
302 Aws::String m_defaultS3Location;
303 bool m_defaultS3LocationHasBeenSet = false;
304
305 Aws::String m_idpAuthUrl;
306 bool m_idpAuthUrlHasBeenSet = false;
307
308 Aws::String m_idpRelayStateParameterName;
309 bool m_idpRelayStateParameterNameHasBeenSet = false;
310
311 Aws::Vector<Tag> m_tags;
312 bool m_tagsHasBeenSet = false;
313
314 bool m_trustedIdentityPropagationEnabled{false};
315 bool m_trustedIdentityPropagationEnabledHasBeenSet = false;
316
318 bool m_idcUserAssignmentHasBeenSet = false;
319
320 Aws::String m_idcInstanceArn;
321 bool m_idcInstanceArnHasBeenSet = false;
322
323 Aws::String m_encryptionKeyArn;
324 bool m_encryptionKeyArnHasBeenSet = false;
325 };
326
327} // namespace Model
328} // namespace EMR
329} // namespace Aws
const Aws::String & GetUserRole() const
const Aws::String & GetWorkspaceSecurityGroupId() const
const Aws::String & GetIdcInstanceArn() const
AWS_EMR_API CreateStudioRequest()=default
CreateStudioRequest & WithVpcId(VpcIdT &&value)
const Aws::String & GetEncryptionKeyArn() const
CreateStudioRequest & WithTags(TagsT &&value)
const Aws::String & GetDescription() const
CreateStudioRequest & WithTrustedIdentityPropagationEnabled(bool value)
void SetDefaultS3Location(DefaultS3LocationT &&value)
const Aws::String & GetServiceRole() const
const Aws::Vector< Tag > & GetTags() const
CreateStudioRequest & WithIdpAuthUrl(IdpAuthUrlT &&value)
AWS_EMR_API Aws::String SerializePayload() const override
CreateStudioRequest & WithSubnetIds(SubnetIdsT &&value)
const Aws::String & GetName() const
AWS_EMR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateStudioRequest & WithUserRole(UserRoleT &&value)
void SetIdpRelayStateParameterName(IdpRelayStateParameterNameT &&value)
const Aws::String & GetEngineSecurityGroupId() const
IdcUserAssignment GetIdcUserAssignment() const
const Aws::String & GetVpcId() const
CreateStudioRequest & WithName(NameT &&value)
CreateStudioRequest & WithIdpRelayStateParameterName(IdpRelayStateParameterNameT &&value)
void SetServiceRole(ServiceRoleT &&value)
CreateStudioRequest & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
CreateStudioRequest & WithWorkspaceSecurityGroupId(WorkspaceSecurityGroupIdT &&value)
void SetIdcUserAssignment(IdcUserAssignment value)
void SetEngineSecurityGroupId(EngineSecurityGroupIdT &&value)
CreateStudioRequest & WithEngineSecurityGroupId(EngineSecurityGroupIdT &&value)
virtual const char * GetServiceRequestName() const override
CreateStudioRequest & AddSubnetIds(SubnetIdsT &&value)
void SetWorkspaceSecurityGroupId(WorkspaceSecurityGroupIdT &&value)
CreateStudioRequest & WithDefaultS3Location(DefaultS3LocationT &&value)
CreateStudioRequest & WithIdcInstanceArn(IdcInstanceArnT &&value)
CreateStudioRequest & WithServiceRole(ServiceRoleT &&value)
void SetIdcInstanceArn(IdcInstanceArnT &&value)
void SetEncryptionKeyArn(EncryptionKeyArnT &&value)
CreateStudioRequest & WithDescription(DescriptionT &&value)
const Aws::String & GetDefaultS3Location() const
CreateStudioRequest & AddTags(TagsT &&value)
const Aws::String & GetIdpRelayStateParameterName() const
void SetDescription(DescriptionT &&value)
CreateStudioRequest & WithIdcUserAssignment(IdcUserAssignment value)
const Aws::Vector< Aws::String > & GetSubnetIds() const
CreateStudioRequest & WithAuthMode(AuthMode value)
const Aws::String & GetIdpAuthUrl() const
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