AWS SDK for C++  1.9.66
AWS SDK for C++
RegisterDelegatedAdministratorRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Organizations
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "RegisterDelegatedAdministrator"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetAccountId() const{ return m_accountId; }
42 
47  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
48 
53  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
54 
59  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
60 
65  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
66 
71  inline RegisterDelegatedAdministratorRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
72 
77  inline RegisterDelegatedAdministratorRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
78 
83  inline RegisterDelegatedAdministratorRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
84 
85 
90  inline const Aws::String& GetServicePrincipal() const{ return m_servicePrincipal; }
91 
96  inline bool ServicePrincipalHasBeenSet() const { return m_servicePrincipalHasBeenSet; }
97 
102  inline void SetServicePrincipal(const Aws::String& value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal = value; }
103 
108  inline void SetServicePrincipal(Aws::String&& value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal = std::move(value); }
109 
114  inline void SetServicePrincipal(const char* value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal.assign(value); }
115 
120  inline RegisterDelegatedAdministratorRequest& WithServicePrincipal(const Aws::String& value) { SetServicePrincipal(value); return *this;}
121 
126  inline RegisterDelegatedAdministratorRequest& WithServicePrincipal(Aws::String&& value) { SetServicePrincipal(std::move(value)); return *this;}
127 
132  inline RegisterDelegatedAdministratorRequest& WithServicePrincipal(const char* value) { SetServicePrincipal(value); return *this;}
133 
134  private:
135 
136  Aws::String m_accountId;
137  bool m_accountIdHasBeenSet;
138 
139  Aws::String m_servicePrincipal;
140  bool m_servicePrincipalHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace Organizations
145 } // namespace Aws
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest::WithServicePrincipal
RegisterDelegatedAdministratorRequest & WithServicePrincipal(const char *value)
Definition: RegisterDelegatedAdministratorRequest.h:132
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest::WithAccountId
RegisterDelegatedAdministratorRequest & WithAccountId(Aws::String &&value)
Definition: RegisterDelegatedAdministratorRequest.h:77
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest
Definition: RegisterDelegatedAdministratorRequest.h:22
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest::ServicePrincipalHasBeenSet
bool ServicePrincipalHasBeenSet() const
Definition: RegisterDelegatedAdministratorRequest.h:96
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest::SetServicePrincipal
void SetServicePrincipal(const Aws::String &value)
Definition: RegisterDelegatedAdministratorRequest.h:102
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest::WithServicePrincipal
RegisterDelegatedAdministratorRequest & WithServicePrincipal(Aws::String &&value)
Definition: RegisterDelegatedAdministratorRequest.h:126
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RegisterDelegatedAdministratorRequest.h:30
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: RegisterDelegatedAdministratorRequest.h:47
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest::SetAccountId
void SetAccountId(const char *value)
Definition: RegisterDelegatedAdministratorRequest.h:65
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
AWSString.h
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest::GetServicePrincipal
const Aws::String & GetServicePrincipal() const
Definition: RegisterDelegatedAdministratorRequest.h:90
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest::RegisterDelegatedAdministratorRequest
RegisterDelegatedAdministratorRequest()
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: RegisterDelegatedAdministratorRequest.h:53
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: RegisterDelegatedAdministratorRequest.h:41
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest::WithAccountId
RegisterDelegatedAdministratorRequest & WithAccountId(const char *value)
Definition: RegisterDelegatedAdministratorRequest.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest::WithServicePrincipal
RegisterDelegatedAdministratorRequest & WithServicePrincipal(const Aws::String &value)
Definition: RegisterDelegatedAdministratorRequest.h:120
Organizations_EXPORTS.h
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest::SetServicePrincipal
void SetServicePrincipal(const char *value)
Definition: RegisterDelegatedAdministratorRequest.h:114
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest::WithAccountId
RegisterDelegatedAdministratorRequest & WithAccountId(const Aws::String &value)
Definition: RegisterDelegatedAdministratorRequest.h:71
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: RegisterDelegatedAdministratorRequest.h:59
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::RegisterDelegatedAdministratorRequest::SetServicePrincipal
void SetServicePrincipal(Aws::String &&value)
Definition: RegisterDelegatedAdministratorRequest.h:108
OrganizationsRequest.h