AWS SDK for C++  1.9.66
AWS SDK for C++
CreateGovCloudAccountRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Organizations
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateGovCloudAccount"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
50  inline const Aws::String& GetEmail() const{ return m_email; }
51 
62  inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
63 
74  inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
75 
86  inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
87 
98  inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
99 
110  inline CreateGovCloudAccountRequest& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
111 
122  inline CreateGovCloudAccountRequest& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
123 
134  inline CreateGovCloudAccountRequest& WithEmail(const char* value) { SetEmail(value); return *this;}
135 
136 
140  inline const Aws::String& GetAccountName() const{ return m_accountName; }
141 
145  inline bool AccountNameHasBeenSet() const { return m_accountNameHasBeenSet; }
146 
150  inline void SetAccountName(const Aws::String& value) { m_accountNameHasBeenSet = true; m_accountName = value; }
151 
155  inline void SetAccountName(Aws::String&& value) { m_accountNameHasBeenSet = true; m_accountName = std::move(value); }
156 
160  inline void SetAccountName(const char* value) { m_accountNameHasBeenSet = true; m_accountName.assign(value); }
161 
165  inline CreateGovCloudAccountRequest& WithAccountName(const Aws::String& value) { SetAccountName(value); return *this;}
166 
170  inline CreateGovCloudAccountRequest& WithAccountName(Aws::String&& value) { SetAccountName(std::move(value)); return *this;}
171 
175  inline CreateGovCloudAccountRequest& WithAccountName(const char* value) { SetAccountName(value); return *this;}
176 
177 
198  inline const Aws::String& GetRoleName() const{ return m_roleName; }
199 
220  inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
221 
242  inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
243 
264  inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
265 
286  inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
287 
308  inline CreateGovCloudAccountRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
309 
330  inline CreateGovCloudAccountRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
331 
352  inline CreateGovCloudAccountRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
353 
354 
366  inline const IAMUserAccessToBilling& GetIamUserAccessToBilling() const{ return m_iamUserAccessToBilling; }
367 
379  inline bool IamUserAccessToBillingHasBeenSet() const { return m_iamUserAccessToBillingHasBeenSet; }
380 
392  inline void SetIamUserAccessToBilling(const IAMUserAccessToBilling& value) { m_iamUserAccessToBillingHasBeenSet = true; m_iamUserAccessToBilling = value; }
393 
405  inline void SetIamUserAccessToBilling(IAMUserAccessToBilling&& value) { m_iamUserAccessToBillingHasBeenSet = true; m_iamUserAccessToBilling = std::move(value); }
406 
418  inline CreateGovCloudAccountRequest& WithIamUserAccessToBilling(const IAMUserAccessToBilling& value) { SetIamUserAccessToBilling(value); return *this;}
419 
431  inline CreateGovCloudAccountRequest& WithIamUserAccessToBilling(IAMUserAccessToBilling&& value) { SetIamUserAccessToBilling(std::move(value)); return *this;}
432 
433 
449  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
450 
466  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
467 
483  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
484 
500  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
501 
517  inline CreateGovCloudAccountRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
518 
534  inline CreateGovCloudAccountRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
535 
551  inline CreateGovCloudAccountRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
552 
568  inline CreateGovCloudAccountRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
569 
570  private:
571 
572  Aws::String m_email;
573  bool m_emailHasBeenSet;
574 
575  Aws::String m_accountName;
576  bool m_accountNameHasBeenSet;
577 
578  Aws::String m_roleName;
579  bool m_roleNameHasBeenSet;
580 
581  IAMUserAccessToBilling m_iamUserAccessToBilling;
582  bool m_iamUserAccessToBillingHasBeenSet;
583 
584  Aws::Vector<Tag> m_tags;
585  bool m_tagsHasBeenSet;
586  };
587 
588 } // namespace Model
589 } // namespace Organizations
590 } // namespace Aws
Aws::Organizations::Model::CreateGovCloudAccountRequest::EmailHasBeenSet
bool EmailHasBeenSet() const
Definition: CreateGovCloudAccountRequest.h:62
Aws::Organizations::Model::CreateGovCloudAccountRequest::WithEmail
CreateGovCloudAccountRequest & WithEmail(Aws::String &&value)
Definition: CreateGovCloudAccountRequest.h:122
Aws::Organizations::Model::CreateGovCloudAccountRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateGovCloudAccountRequest.h:500
Aws::Organizations::Model::CreateGovCloudAccountRequest::SetEmail
void SetEmail(const Aws::String &value)
Definition: CreateGovCloudAccountRequest.h:74
Aws::Organizations::Model::CreateGovCloudAccountRequest::SetRoleName
void SetRoleName(const Aws::String &value)
Definition: CreateGovCloudAccountRequest.h:242
Aws::Organizations::Model::CreateGovCloudAccountRequest::AddTags
CreateGovCloudAccountRequest & AddTags(Tag &&value)
Definition: CreateGovCloudAccountRequest.h:568
Aws::Organizations::Model::CreateGovCloudAccountRequest::AccountNameHasBeenSet
bool AccountNameHasBeenSet() const
Definition: CreateGovCloudAccountRequest.h:145
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::CreateGovCloudAccountRequest::WithRoleName
CreateGovCloudAccountRequest & WithRoleName(const Aws::String &value)
Definition: CreateGovCloudAccountRequest.h:308
Aws::Organizations::Model::CreateGovCloudAccountRequest::SetEmail
void SetEmail(const char *value)
Definition: CreateGovCloudAccountRequest.h:98
Aws::Organizations::Model::CreateGovCloudAccountRequest::IamUserAccessToBillingHasBeenSet
bool IamUserAccessToBillingHasBeenSet() const
Definition: CreateGovCloudAccountRequest.h:379
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Organizations::Model::CreateGovCloudAccountRequest::SetRoleName
void SetRoleName(Aws::String &&value)
Definition: CreateGovCloudAccountRequest.h:264
AWSVector.h
Aws::Organizations::Model::CreateGovCloudAccountRequest::WithEmail
CreateGovCloudAccountRequest & WithEmail(const Aws::String &value)
Definition: CreateGovCloudAccountRequest.h:110
Aws::Organizations::Model::IAMUserAccessToBilling
IAMUserAccessToBilling
Definition: IAMUserAccessToBilling.h:17
Aws::Organizations::Model::CreateGovCloudAccountRequest::WithRoleName
CreateGovCloudAccountRequest & WithRoleName(const char *value)
Definition: CreateGovCloudAccountRequest.h:352
Aws::Organizations::Model::CreateGovCloudAccountRequest::WithIamUserAccessToBilling
CreateGovCloudAccountRequest & WithIamUserAccessToBilling(const IAMUserAccessToBilling &value)
Definition: CreateGovCloudAccountRequest.h:418
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::CreateGovCloudAccountRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::CreateGovCloudAccountRequest::WithIamUserAccessToBilling
CreateGovCloudAccountRequest & WithIamUserAccessToBilling(IAMUserAccessToBilling &&value)
Definition: CreateGovCloudAccountRequest.h:431
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::CreateGovCloudAccountRequest::SetIamUserAccessToBilling
void SetIamUserAccessToBilling(IAMUserAccessToBilling &&value)
Definition: CreateGovCloudAccountRequest.h:405
Aws::Organizations::Model::CreateGovCloudAccountRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateGovCloudAccountRequest.h:449
Aws::Organizations::Model::CreateGovCloudAccountRequest::RoleNameHasBeenSet
bool RoleNameHasBeenSet() const
Definition: CreateGovCloudAccountRequest.h:220
Aws::Organizations::Model::CreateGovCloudAccountRequest::WithRoleName
CreateGovCloudAccountRequest & WithRoleName(Aws::String &&value)
Definition: CreateGovCloudAccountRequest.h:330
Aws::Organizations::Model::CreateGovCloudAccountRequest::SetEmail
void SetEmail(Aws::String &&value)
Definition: CreateGovCloudAccountRequest.h:86
Aws::Organizations::Model::CreateGovCloudAccountRequest::AddTags
CreateGovCloudAccountRequest & AddTags(const Tag &value)
Definition: CreateGovCloudAccountRequest.h:551
Aws::Organizations::Model::CreateGovCloudAccountRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateGovCloudAccountRequest.h:33
AWSString.h
Aws::Organizations::Model::CreateGovCloudAccountRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateGovCloudAccountRequest.h:483
Aws::Organizations::Model::CreateGovCloudAccountRequest::WithAccountName
CreateGovCloudAccountRequest & WithAccountName(Aws::String &&value)
Definition: CreateGovCloudAccountRequest.h:170
Aws::Organizations::Model::CreateGovCloudAccountRequest::CreateGovCloudAccountRequest
CreateGovCloudAccountRequest()
Aws::Organizations::Model::CreateGovCloudAccountRequest
Definition: CreateGovCloudAccountRequest.h:25
Aws::Organizations::Model::CreateGovCloudAccountRequest::SetAccountName
void SetAccountName(const char *value)
Definition: CreateGovCloudAccountRequest.h:160
Aws::Organizations::Model::CreateGovCloudAccountRequest::WithAccountName
CreateGovCloudAccountRequest & WithAccountName(const char *value)
Definition: CreateGovCloudAccountRequest.h:175
Aws::Organizations::Model::CreateGovCloudAccountRequest::WithAccountName
CreateGovCloudAccountRequest & WithAccountName(const Aws::String &value)
Definition: CreateGovCloudAccountRequest.h:165
Aws::Organizations::Model::CreateGovCloudAccountRequest::WithEmail
CreateGovCloudAccountRequest & WithEmail(const char *value)
Definition: CreateGovCloudAccountRequest.h:134
Aws::Organizations::Model::CreateGovCloudAccountRequest::GetAccountName
const Aws::String & GetAccountName() const
Definition: CreateGovCloudAccountRequest.h:140
Aws::Organizations::Model::CreateGovCloudAccountRequest::SerializePayload
Aws::String SerializePayload() const override
Tag.h
Aws::Organizations::Model::CreateGovCloudAccountRequest::WithTags
CreateGovCloudAccountRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateGovCloudAccountRequest.h:534
Aws::Organizations::Model::Tag
Definition: Tag.h:36
IAMUserAccessToBilling.h
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::CreateGovCloudAccountRequest::GetEmail
const Aws::String & GetEmail() const
Definition: CreateGovCloudAccountRequest.h:50
Aws::Organizations::Model::CreateGovCloudAccountRequest::SetAccountName
void SetAccountName(const Aws::String &value)
Definition: CreateGovCloudAccountRequest.h:150
Aws::Organizations::Model::CreateGovCloudAccountRequest::SetIamUserAccessToBilling
void SetIamUserAccessToBilling(const IAMUserAccessToBilling &value)
Definition: CreateGovCloudAccountRequest.h:392
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::CreateGovCloudAccountRequest::GetRoleName
const Aws::String & GetRoleName() const
Definition: CreateGovCloudAccountRequest.h:198
Aws::Organizations::Model::CreateGovCloudAccountRequest::GetIamUserAccessToBilling
const IAMUserAccessToBilling & GetIamUserAccessToBilling() const
Definition: CreateGovCloudAccountRequest.h:366
Aws::Organizations::Model::CreateGovCloudAccountRequest::SetAccountName
void SetAccountName(Aws::String &&value)
Definition: CreateGovCloudAccountRequest.h:155
Aws::Organizations::Model::CreateGovCloudAccountRequest::WithTags
CreateGovCloudAccountRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateGovCloudAccountRequest.h:517
Aws::Organizations::Model::CreateGovCloudAccountRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateGovCloudAccountRequest.h:466
Aws::Organizations::Model::CreateGovCloudAccountRequest::SetRoleName
void SetRoleName(const char *value)
Definition: CreateGovCloudAccountRequest.h:286
OrganizationsRequest.h