AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/qbusiness/QBusinessRequest.h>
11#include <aws/qbusiness/QBusiness_EXPORTS.h>
12#include <aws/qbusiness/model/AttachmentsConfiguration.h>
13#include <aws/qbusiness/model/EncryptionConfiguration.h>
14#include <aws/qbusiness/model/IdentityType.h>
15#include <aws/qbusiness/model/PersonalizationConfiguration.h>
16#include <aws/qbusiness/model/QAppsConfiguration.h>
17#include <aws/qbusiness/model/QuickSightConfiguration.h>
18#include <aws/qbusiness/model/Tag.h>
19
20#include <utility>
21
22namespace Aws {
23namespace QBusiness {
24namespace Model {
25
29 public:
30 AWS_QBUSINESS_API CreateApplicationRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
37
38 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
39
41
44 inline const Aws::String& GetDisplayName() const { return m_displayName; }
45 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
46 template <typename DisplayNameT = Aws::String>
48 m_displayNameHasBeenSet = true;
49 m_displayName = std::forward<DisplayNameT>(value);
50 }
51 template <typename DisplayNameT = Aws::String>
53 SetDisplayName(std::forward<DisplayNameT>(value));
54 return *this;
55 }
57
59
66 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
67 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
68 template <typename RoleArnT = Aws::String>
69 void SetRoleArn(RoleArnT&& value) {
70 m_roleArnHasBeenSet = true;
71 m_roleArn = std::forward<RoleArnT>(value);
72 }
73 template <typename RoleArnT = Aws::String>
75 SetRoleArn(std::forward<RoleArnT>(value));
76 return *this;
77 }
79
81
84 inline IdentityType GetIdentityType() const { return m_identityType; }
85 inline bool IdentityTypeHasBeenSet() const { return m_identityTypeHasBeenSet; }
86 inline void SetIdentityType(IdentityType value) {
87 m_identityTypeHasBeenSet = true;
88 m_identityType = value;
89 }
91 SetIdentityType(value);
92 return *this;
93 }
95
97
101 inline const Aws::String& GetIamIdentityProviderArn() const { return m_iamIdentityProviderArn; }
102 inline bool IamIdentityProviderArnHasBeenSet() const { return m_iamIdentityProviderArnHasBeenSet; }
103 template <typename IamIdentityProviderArnT = Aws::String>
105 m_iamIdentityProviderArnHasBeenSet = true;
106 m_iamIdentityProviderArn = std::forward<IamIdentityProviderArnT>(value);
107 }
108 template <typename IamIdentityProviderArnT = Aws::String>
110 SetIamIdentityProviderArn(std::forward<IamIdentityProviderArnT>(value));
111 return *this;
112 }
114
116
120 inline const Aws::String& GetIdentityCenterInstanceArn() const { return m_identityCenterInstanceArn; }
121 inline bool IdentityCenterInstanceArnHasBeenSet() const { return m_identityCenterInstanceArnHasBeenSet; }
122 template <typename IdentityCenterInstanceArnT = Aws::String>
124 m_identityCenterInstanceArnHasBeenSet = true;
125 m_identityCenterInstanceArn = std::forward<IdentityCenterInstanceArnT>(value);
126 }
127 template <typename IdentityCenterInstanceArnT = Aws::String>
129 SetIdentityCenterInstanceArn(std::forward<IdentityCenterInstanceArnT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Vector<Aws::String>& GetClientIdsForOIDC() const { return m_clientIdsForOIDC; }
139 inline bool ClientIdsForOIDCHasBeenSet() const { return m_clientIdsForOIDCHasBeenSet; }
140 template <typename ClientIdsForOIDCT = Aws::Vector<Aws::String>>
142 m_clientIdsForOIDCHasBeenSet = true;
143 m_clientIdsForOIDC = std::forward<ClientIdsForOIDCT>(value);
144 }
145 template <typename ClientIdsForOIDCT = Aws::Vector<Aws::String>>
147 SetClientIdsForOIDC(std::forward<ClientIdsForOIDCT>(value));
148 return *this;
149 }
150 template <typename ClientIdsForOIDCT = Aws::String>
152 m_clientIdsForOIDCHasBeenSet = true;
153 m_clientIdsForOIDC.emplace_back(std::forward<ClientIdsForOIDCT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::String& GetDescription() const { return m_description; }
163 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
164 template <typename DescriptionT = Aws::String>
166 m_descriptionHasBeenSet = true;
167 m_description = std::forward<DescriptionT>(value);
168 }
169 template <typename DescriptionT = Aws::String>
171 SetDescription(std::forward<DescriptionT>(value));
172 return *this;
173 }
175
177
181 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
182 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
183 template <typename EncryptionConfigurationT = EncryptionConfiguration>
185 m_encryptionConfigurationHasBeenSet = true;
186 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
187 }
188 template <typename EncryptionConfigurationT = EncryptionConfiguration>
190 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
191 return *this;
192 }
194
196
202 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
203 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
204 template <typename TagsT = Aws::Vector<Tag>>
205 void SetTags(TagsT&& value) {
206 m_tagsHasBeenSet = true;
207 m_tags = std::forward<TagsT>(value);
208 }
209 template <typename TagsT = Aws::Vector<Tag>>
211 SetTags(std::forward<TagsT>(value));
212 return *this;
213 }
214 template <typename TagsT = Tag>
216 m_tagsHasBeenSet = true;
217 m_tags.emplace_back(std::forward<TagsT>(value));
218 return *this;
219 }
221
223
227 inline const Aws::String& GetClientToken() const { return m_clientToken; }
228 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
229 template <typename ClientTokenT = Aws::String>
231 m_clientTokenHasBeenSet = true;
232 m_clientToken = std::forward<ClientTokenT>(value);
233 }
234 template <typename ClientTokenT = Aws::String>
236 SetClientToken(std::forward<ClientTokenT>(value));
237 return *this;
238 }
240
242
245 inline const AttachmentsConfiguration& GetAttachmentsConfiguration() const { return m_attachmentsConfiguration; }
246 inline bool AttachmentsConfigurationHasBeenSet() const { return m_attachmentsConfigurationHasBeenSet; }
247 template <typename AttachmentsConfigurationT = AttachmentsConfiguration>
249 m_attachmentsConfigurationHasBeenSet = true;
250 m_attachmentsConfiguration = std::forward<AttachmentsConfigurationT>(value);
251 }
252 template <typename AttachmentsConfigurationT = AttachmentsConfiguration>
254 SetAttachmentsConfiguration(std::forward<AttachmentsConfigurationT>(value));
255 return *this;
256 }
258
260
264 inline const QAppsConfiguration& GetQAppsConfiguration() const { return m_qAppsConfiguration; }
265 inline bool QAppsConfigurationHasBeenSet() const { return m_qAppsConfigurationHasBeenSet; }
266 template <typename QAppsConfigurationT = QAppsConfiguration>
268 m_qAppsConfigurationHasBeenSet = true;
269 m_qAppsConfiguration = std::forward<QAppsConfigurationT>(value);
270 }
271 template <typename QAppsConfigurationT = QAppsConfiguration>
273 SetQAppsConfiguration(std::forward<QAppsConfigurationT>(value));
274 return *this;
275 }
277
279
285 inline const PersonalizationConfiguration& GetPersonalizationConfiguration() const { return m_personalizationConfiguration; }
286 inline bool PersonalizationConfigurationHasBeenSet() const { return m_personalizationConfigurationHasBeenSet; }
287 template <typename PersonalizationConfigurationT = PersonalizationConfiguration>
289 m_personalizationConfigurationHasBeenSet = true;
290 m_personalizationConfiguration = std::forward<PersonalizationConfigurationT>(value);
291 }
292 template <typename PersonalizationConfigurationT = PersonalizationConfiguration>
294 SetPersonalizationConfiguration(std::forward<PersonalizationConfigurationT>(value));
295 return *this;
296 }
298
300
308 inline const QuickSightConfiguration& GetQuickSightConfiguration() const { return m_quickSightConfiguration; }
309 inline bool QuickSightConfigurationHasBeenSet() const { return m_quickSightConfigurationHasBeenSet; }
310 template <typename QuickSightConfigurationT = QuickSightConfiguration>
312 m_quickSightConfigurationHasBeenSet = true;
313 m_quickSightConfiguration = std::forward<QuickSightConfigurationT>(value);
314 }
315 template <typename QuickSightConfigurationT = QuickSightConfiguration>
317 SetQuickSightConfiguration(std::forward<QuickSightConfigurationT>(value));
318 return *this;
319 }
321 private:
322 Aws::String m_displayName;
323
324 Aws::String m_roleArn;
325
326 IdentityType m_identityType{IdentityType::NOT_SET};
327
328 Aws::String m_iamIdentityProviderArn;
329
330 Aws::String m_identityCenterInstanceArn;
331
332 Aws::Vector<Aws::String> m_clientIdsForOIDC;
333
334 Aws::String m_description;
335
336 EncryptionConfiguration m_encryptionConfiguration;
337
338 Aws::Vector<Tag> m_tags;
339
341
342 AttachmentsConfiguration m_attachmentsConfiguration;
343
344 QAppsConfiguration m_qAppsConfiguration;
345
346 PersonalizationConfiguration m_personalizationConfiguration;
347
348 QuickSightConfiguration m_quickSightConfiguration;
349 bool m_displayNameHasBeenSet = false;
350 bool m_roleArnHasBeenSet = false;
351 bool m_identityTypeHasBeenSet = false;
352 bool m_iamIdentityProviderArnHasBeenSet = false;
353 bool m_identityCenterInstanceArnHasBeenSet = false;
354 bool m_clientIdsForOIDCHasBeenSet = false;
355 bool m_descriptionHasBeenSet = false;
356 bool m_encryptionConfigurationHasBeenSet = false;
357 bool m_tagsHasBeenSet = false;
358 bool m_clientTokenHasBeenSet = true;
359 bool m_attachmentsConfigurationHasBeenSet = false;
360 bool m_qAppsConfigurationHasBeenSet = false;
361 bool m_personalizationConfigurationHasBeenSet = false;
362 bool m_quickSightConfigurationHasBeenSet = false;
363};
364
365} // namespace Model
366} // namespace QBusiness
367} // namespace Aws
CreateApplicationRequest & WithIdentityType(IdentityType value)
const QuickSightConfiguration & GetQuickSightConfiguration() const
CreateApplicationRequest & WithPersonalizationConfiguration(PersonalizationConfigurationT &&value)
AWS_QBUSINESS_API CreateApplicationRequest()=default
const QAppsConfiguration & GetQAppsConfiguration() const
void SetQuickSightConfiguration(QuickSightConfigurationT &&value)
const Aws::Vector< Aws::String > & GetClientIdsForOIDC() const
CreateApplicationRequest & WithRoleArn(RoleArnT &&value)
CreateApplicationRequest & WithIamIdentityProviderArn(IamIdentityProviderArnT &&value)
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
CreateApplicationRequest & AddTags(TagsT &&value)
CreateApplicationRequest & WithClientToken(ClientTokenT &&value)
void SetIamIdentityProviderArn(IamIdentityProviderArnT &&value)
CreateApplicationRequest & AddClientIdsForOIDC(ClientIdsForOIDCT &&value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
const EncryptionConfiguration & GetEncryptionConfiguration() const
CreateApplicationRequest & WithAttachmentsConfiguration(AttachmentsConfigurationT &&value)
const AttachmentsConfiguration & GetAttachmentsConfiguration() const
void SetAttachmentsConfiguration(AttachmentsConfigurationT &&value)
CreateApplicationRequest & WithDescription(DescriptionT &&value)
CreateApplicationRequest & WithIdentityCenterInstanceArn(IdentityCenterInstanceArnT &&value)
CreateApplicationRequest & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
void SetPersonalizationConfiguration(PersonalizationConfigurationT &&value)
CreateApplicationRequest & WithQAppsConfiguration(QAppsConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
const PersonalizationConfiguration & GetPersonalizationConfiguration() const
void SetIdentityCenterInstanceArn(IdentityCenterInstanceArnT &&value)
CreateApplicationRequest & WithClientIdsForOIDC(ClientIdsForOIDCT &&value)
CreateApplicationRequest & WithTags(TagsT &&value)
CreateApplicationRequest & WithQuickSightConfiguration(QuickSightConfigurationT &&value)
CreateApplicationRequest & WithDisplayName(DisplayNameT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector