AWS SDK for C++  1.9.107
AWS SDK for C++
MoveAccountRequest.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 "MoveAccount"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
42  inline const Aws::String& GetAccountId() const{ return m_accountId; }
43 
49  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
50 
56  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
57 
63  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
64 
70  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
71 
77  inline MoveAccountRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
78 
84  inline MoveAccountRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
85 
91  inline MoveAccountRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
92 
93 
105  inline const Aws::String& GetSourceParentId() const{ return m_sourceParentId; }
106 
118  inline bool SourceParentIdHasBeenSet() const { return m_sourceParentIdHasBeenSet; }
119 
131  inline void SetSourceParentId(const Aws::String& value) { m_sourceParentIdHasBeenSet = true; m_sourceParentId = value; }
132 
144  inline void SetSourceParentId(Aws::String&& value) { m_sourceParentIdHasBeenSet = true; m_sourceParentId = std::move(value); }
145 
157  inline void SetSourceParentId(const char* value) { m_sourceParentIdHasBeenSet = true; m_sourceParentId.assign(value); }
158 
170  inline MoveAccountRequest& WithSourceParentId(const Aws::String& value) { SetSourceParentId(value); return *this;}
171 
183  inline MoveAccountRequest& WithSourceParentId(Aws::String&& value) { SetSourceParentId(std::move(value)); return *this;}
184 
196  inline MoveAccountRequest& WithSourceParentId(const char* value) { SetSourceParentId(value); return *this;}
197 
198 
210  inline const Aws::String& GetDestinationParentId() const{ return m_destinationParentId; }
211 
223  inline bool DestinationParentIdHasBeenSet() const { return m_destinationParentIdHasBeenSet; }
224 
236  inline void SetDestinationParentId(const Aws::String& value) { m_destinationParentIdHasBeenSet = true; m_destinationParentId = value; }
237 
249  inline void SetDestinationParentId(Aws::String&& value) { m_destinationParentIdHasBeenSet = true; m_destinationParentId = std::move(value); }
250 
262  inline void SetDestinationParentId(const char* value) { m_destinationParentIdHasBeenSet = true; m_destinationParentId.assign(value); }
263 
275  inline MoveAccountRequest& WithDestinationParentId(const Aws::String& value) { SetDestinationParentId(value); return *this;}
276 
288  inline MoveAccountRequest& WithDestinationParentId(Aws::String&& value) { SetDestinationParentId(std::move(value)); return *this;}
289 
301  inline MoveAccountRequest& WithDestinationParentId(const char* value) { SetDestinationParentId(value); return *this;}
302 
303  private:
304 
305  Aws::String m_accountId;
306  bool m_accountIdHasBeenSet;
307 
308  Aws::String m_sourceParentId;
309  bool m_sourceParentIdHasBeenSet;
310 
311  Aws::String m_destinationParentId;
312  bool m_destinationParentIdHasBeenSet;
313  };
314 
315 } // namespace Model
316 } // namespace Organizations
317 } // namespace Aws
Aws::Organizations::Model::MoveAccountRequest::WithAccountId
MoveAccountRequest & WithAccountId(Aws::String &&value)
Definition: MoveAccountRequest.h:84
Aws::Organizations::Model::MoveAccountRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: MoveAccountRequest.h:42
Aws::Organizations::Model::MoveAccountRequest::WithDestinationParentId
MoveAccountRequest & WithDestinationParentId(const Aws::String &value)
Definition: MoveAccountRequest.h:275
Aws::Organizations::Model::MoveAccountRequest::SetDestinationParentId
void SetDestinationParentId(const Aws::String &value)
Definition: MoveAccountRequest.h:236
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::MoveAccountRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: MoveAccountRequest.h:63
Aws::Organizations::Model::MoveAccountRequest::WithAccountId
MoveAccountRequest & WithAccountId(const char *value)
Definition: MoveAccountRequest.h:91
Aws::Organizations::Model::MoveAccountRequest
Definition: MoveAccountRequest.h:22
Aws::Organizations::Model::MoveAccountRequest::GetDestinationParentId
const Aws::String & GetDestinationParentId() const
Definition: MoveAccountRequest.h:210
Aws::Organizations::Model::MoveAccountRequest::SetSourceParentId
void SetSourceParentId(Aws::String &&value)
Definition: MoveAccountRequest.h:144
Aws::Organizations::Model::MoveAccountRequest::GetSourceParentId
const Aws::String & GetSourceParentId() const
Definition: MoveAccountRequest.h:105
Aws::Organizations::Model::MoveAccountRequest::WithSourceParentId
MoveAccountRequest & WithSourceParentId(Aws::String &&value)
Definition: MoveAccountRequest.h:183
Aws::Organizations::Model::MoveAccountRequest::WithSourceParentId
MoveAccountRequest & WithSourceParentId(const char *value)
Definition: MoveAccountRequest.h:196
Aws::Organizations::Model::MoveAccountRequest::SetAccountId
void SetAccountId(const char *value)
Definition: MoveAccountRequest.h:70
Aws::Organizations::Model::MoveAccountRequest::SetDestinationParentId
void SetDestinationParentId(const char *value)
Definition: MoveAccountRequest.h:262
Aws::Organizations::Model::MoveAccountRequest::DestinationParentIdHasBeenSet
bool DestinationParentIdHasBeenSet() const
Definition: MoveAccountRequest.h:223
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::MoveAccountRequest::SetSourceParentId
void SetSourceParentId(const Aws::String &value)
Definition: MoveAccountRequest.h:131
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::MoveAccountRequest::SetDestinationParentId
void SetDestinationParentId(Aws::String &&value)
Definition: MoveAccountRequest.h:249
Aws::Organizations::Model::MoveAccountRequest::SetSourceParentId
void SetSourceParentId(const char *value)
Definition: MoveAccountRequest.h:157
AWSString.h
Aws::Organizations::Model::MoveAccountRequest::WithAccountId
MoveAccountRequest & WithAccountId(const Aws::String &value)
Definition: MoveAccountRequest.h:77
Aws::Organizations::Model::MoveAccountRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::MoveAccountRequest::WithSourceParentId
MoveAccountRequest & WithSourceParentId(const Aws::String &value)
Definition: MoveAccountRequest.h:170
Aws::Organizations::Model::MoveAccountRequest::SourceParentIdHasBeenSet
bool SourceParentIdHasBeenSet() const
Definition: MoveAccountRequest.h:118
Aws::Organizations::Model::MoveAccountRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: MoveAccountRequest.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::MoveAccountRequest::WithDestinationParentId
MoveAccountRequest & WithDestinationParentId(Aws::String &&value)
Definition: MoveAccountRequest.h:288
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::MoveAccountRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::MoveAccountRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: MoveAccountRequest.h:49
Aws::Organizations::Model::MoveAccountRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: MoveAccountRequest.h:56
Aws::Organizations::Model::MoveAccountRequest::WithDestinationParentId
MoveAccountRequest & WithDestinationParentId(const char *value)
Definition: MoveAccountRequest.h:301
Aws::Organizations::Model::MoveAccountRequest::MoveAccountRequest
MoveAccountRequest()
OrganizationsRequest.h