AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
MoveAccountRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/organizations/OrganizationsRequest.h>
9#include <aws/organizations/Organizations_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Organizations {
15namespace Model {
16
20 public:
21 AWS_ORGANIZATIONS_API MoveAccountRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "MoveAccount"; }
28
29 AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override;
30
31 AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
39 inline const Aws::String& GetAccountId() const { return m_accountId; }
40 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
41 template <typename AccountIdT = Aws::String>
42 void SetAccountId(AccountIdT&& value) {
43 m_accountIdHasBeenSet = true;
44 m_accountId = std::forward<AccountIdT>(value);
45 }
46 template <typename AccountIdT = Aws::String>
47 MoveAccountRequest& WithAccountId(AccountIdT&& value) {
48 SetAccountId(std::forward<AccountIdT>(value));
49 return *this;
50 }
52
54
64 inline const Aws::String& GetSourceParentId() const { return m_sourceParentId; }
65 inline bool SourceParentIdHasBeenSet() const { return m_sourceParentIdHasBeenSet; }
66 template <typename SourceParentIdT = Aws::String>
67 void SetSourceParentId(SourceParentIdT&& value) {
68 m_sourceParentIdHasBeenSet = true;
69 m_sourceParentId = std::forward<SourceParentIdT>(value);
70 }
71 template <typename SourceParentIdT = Aws::String>
72 MoveAccountRequest& WithSourceParentId(SourceParentIdT&& value) {
73 SetSourceParentId(std::forward<SourceParentIdT>(value));
74 return *this;
75 }
77
79
89 inline const Aws::String& GetDestinationParentId() const { return m_destinationParentId; }
90 inline bool DestinationParentIdHasBeenSet() const { return m_destinationParentIdHasBeenSet; }
91 template <typename DestinationParentIdT = Aws::String>
92 void SetDestinationParentId(DestinationParentIdT&& value) {
93 m_destinationParentIdHasBeenSet = true;
94 m_destinationParentId = std::forward<DestinationParentIdT>(value);
95 }
96 template <typename DestinationParentIdT = Aws::String>
97 MoveAccountRequest& WithDestinationParentId(DestinationParentIdT&& value) {
98 SetDestinationParentId(std::forward<DestinationParentIdT>(value));
99 return *this;
100 }
102 private:
103 Aws::String m_accountId;
104
105 Aws::String m_sourceParentId;
106
107 Aws::String m_destinationParentId;
108 bool m_accountIdHasBeenSet = false;
109 bool m_sourceParentIdHasBeenSet = false;
110 bool m_destinationParentIdHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace Organizations
115} // namespace Aws
virtual const char * GetServiceRequestName() const override
MoveAccountRequest & WithDestinationParentId(DestinationParentIdT &&value)
void SetDestinationParentId(DestinationParentIdT &&value)
AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override
MoveAccountRequest & WithSourceParentId(SourceParentIdT &&value)
AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ORGANIZATIONS_API MoveAccountRequest()=default
MoveAccountRequest & WithAccountId(AccountIdT &&value)
void SetSourceParentId(SourceParentIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String