AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MoveAccountRequest.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/organizations/OrganizationsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Organizations
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_ORGANIZATIONS_API MoveAccountRequest();
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_ORGANIZATIONS_API Aws::String SerializePayload() const override;
33
34 AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
43 inline const Aws::String& GetAccountId() const{ return m_accountId; }
44 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
45 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
46 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
47 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
48 inline MoveAccountRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
49 inline MoveAccountRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
50 inline MoveAccountRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
52
54
65 inline const Aws::String& GetSourceParentId() const{ return m_sourceParentId; }
66 inline bool SourceParentIdHasBeenSet() const { return m_sourceParentIdHasBeenSet; }
67 inline void SetSourceParentId(const Aws::String& value) { m_sourceParentIdHasBeenSet = true; m_sourceParentId = value; }
68 inline void SetSourceParentId(Aws::String&& value) { m_sourceParentIdHasBeenSet = true; m_sourceParentId = std::move(value); }
69 inline void SetSourceParentId(const char* value) { m_sourceParentIdHasBeenSet = true; m_sourceParentId.assign(value); }
70 inline MoveAccountRequest& WithSourceParentId(const Aws::String& value) { SetSourceParentId(value); return *this;}
71 inline MoveAccountRequest& WithSourceParentId(Aws::String&& value) { SetSourceParentId(std::move(value)); return *this;}
72 inline MoveAccountRequest& WithSourceParentId(const char* value) { SetSourceParentId(value); return *this;}
74
76
87 inline const Aws::String& GetDestinationParentId() const{ return m_destinationParentId; }
88 inline bool DestinationParentIdHasBeenSet() const { return m_destinationParentIdHasBeenSet; }
89 inline void SetDestinationParentId(const Aws::String& value) { m_destinationParentIdHasBeenSet = true; m_destinationParentId = value; }
90 inline void SetDestinationParentId(Aws::String&& value) { m_destinationParentIdHasBeenSet = true; m_destinationParentId = std::move(value); }
91 inline void SetDestinationParentId(const char* value) { m_destinationParentIdHasBeenSet = true; m_destinationParentId.assign(value); }
93 inline MoveAccountRequest& WithDestinationParentId(Aws::String&& value) { SetDestinationParentId(std::move(value)); return *this;}
94 inline MoveAccountRequest& WithDestinationParentId(const char* value) { SetDestinationParentId(value); return *this;}
96 private:
97
98 Aws::String m_accountId;
99 bool m_accountIdHasBeenSet = false;
100
101 Aws::String m_sourceParentId;
102 bool m_sourceParentIdHasBeenSet = false;
103
104 Aws::String m_destinationParentId;
105 bool m_destinationParentIdHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Organizations
110} // namespace Aws
MoveAccountRequest & WithAccountId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
MoveAccountRequest & WithDestinationParentId(const char *value)
void SetDestinationParentId(const Aws::String &value)
MoveAccountRequest & WithSourceParentId(Aws::String &&value)
MoveAccountRequest & WithSourceParentId(const char *value)
MoveAccountRequest & WithDestinationParentId(const Aws::String &value)
MoveAccountRequest & WithAccountId(const Aws::String &value)
AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override
AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetSourceParentId(const Aws::String &value)
MoveAccountRequest & WithDestinationParentId(Aws::String &&value)
MoveAccountRequest & WithSourceParentId(const Aws::String &value)
MoveAccountRequest & WithAccountId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String