AWS SDK for C++  1.9.105
AWS SDK for C++
DeregisterDelegatedAdministratorRequest.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 "DeregisterDelegatedAdministrator"; }
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 DeregisterDelegatedAdministratorRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
72 
77  inline DeregisterDelegatedAdministratorRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
78 
83  inline DeregisterDelegatedAdministratorRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
84 
85 
94  inline const Aws::String& GetServicePrincipal() const{ return m_servicePrincipal; }
95 
104  inline bool ServicePrincipalHasBeenSet() const { return m_servicePrincipalHasBeenSet; }
105 
114  inline void SetServicePrincipal(const Aws::String& value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal = value; }
115 
124  inline void SetServicePrincipal(Aws::String&& value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal = std::move(value); }
125 
134  inline void SetServicePrincipal(const char* value) { m_servicePrincipalHasBeenSet = true; m_servicePrincipal.assign(value); }
135 
144  inline DeregisterDelegatedAdministratorRequest& WithServicePrincipal(const Aws::String& value) { SetServicePrincipal(value); return *this;}
145 
154  inline DeregisterDelegatedAdministratorRequest& WithServicePrincipal(Aws::String&& value) { SetServicePrincipal(std::move(value)); return *this;}
155 
164  inline DeregisterDelegatedAdministratorRequest& WithServicePrincipal(const char* value) { SetServicePrincipal(value); return *this;}
165 
166  private:
167 
168  Aws::String m_accountId;
169  bool m_accountIdHasBeenSet;
170 
171  Aws::String m_servicePrincipal;
172  bool m_servicePrincipalHasBeenSet;
173  };
174 
175 } // namespace Model
176 } // namespace Organizations
177 } // namespace Aws
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest::DeregisterDelegatedAdministratorRequest
DeregisterDelegatedAdministratorRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest::WithServicePrincipal
DeregisterDelegatedAdministratorRequest & WithServicePrincipal(const Aws::String &value)
Definition: DeregisterDelegatedAdministratorRequest.h:144
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: DeregisterDelegatedAdministratorRequest.h:53
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeregisterDelegatedAdministratorRequest.h:30
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: DeregisterDelegatedAdministratorRequest.h:41
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest::SetAccountId
void SetAccountId(const char *value)
Definition: DeregisterDelegatedAdministratorRequest.h:65
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest
Definition: DeregisterDelegatedAdministratorRequest.h:22
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest::ServicePrincipalHasBeenSet
bool ServicePrincipalHasBeenSet() const
Definition: DeregisterDelegatedAdministratorRequest.h:104
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest::SetServicePrincipal
void SetServicePrincipal(const Aws::String &value)
Definition: DeregisterDelegatedAdministratorRequest.h:114
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: DeregisterDelegatedAdministratorRequest.h:47
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest::WithAccountId
DeregisterDelegatedAdministratorRequest & WithAccountId(const Aws::String &value)
Definition: DeregisterDelegatedAdministratorRequest.h:71
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
AWSString.h
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest::WithAccountId
DeregisterDelegatedAdministratorRequest & WithAccountId(const char *value)
Definition: DeregisterDelegatedAdministratorRequest.h:83
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest::SetServicePrincipal
void SetServicePrincipal(Aws::String &&value)
Definition: DeregisterDelegatedAdministratorRequest.h:124
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest::GetServicePrincipal
const Aws::String & GetServicePrincipal() const
Definition: DeregisterDelegatedAdministratorRequest.h:94
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest::WithServicePrincipal
DeregisterDelegatedAdministratorRequest & WithServicePrincipal(Aws::String &&value)
Definition: DeregisterDelegatedAdministratorRequest.h:154
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest::WithServicePrincipal
DeregisterDelegatedAdministratorRequest & WithServicePrincipal(const char *value)
Definition: DeregisterDelegatedAdministratorRequest.h:164
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: DeregisterDelegatedAdministratorRequest.h:59
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest::SetServicePrincipal
void SetServicePrincipal(const char *value)
Definition: DeregisterDelegatedAdministratorRequest.h:134
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::DeregisterDelegatedAdministratorRequest::WithAccountId
DeregisterDelegatedAdministratorRequest & WithAccountId(Aws::String &&value)
Definition: DeregisterDelegatedAdministratorRequest.h:77
OrganizationsRequest.h