AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AccountIdT = Aws::String>
46 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
47 template<typename AccountIdT = Aws::String>
48 MoveAccountRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
50
52
63 inline const Aws::String& GetSourceParentId() const { return m_sourceParentId; }
64 inline bool SourceParentIdHasBeenSet() const { return m_sourceParentIdHasBeenSet; }
65 template<typename SourceParentIdT = Aws::String>
66 void SetSourceParentId(SourceParentIdT&& value) { m_sourceParentIdHasBeenSet = true; m_sourceParentId = std::forward<SourceParentIdT>(value); }
67 template<typename SourceParentIdT = Aws::String>
68 MoveAccountRequest& WithSourceParentId(SourceParentIdT&& value) { SetSourceParentId(std::forward<SourceParentIdT>(value)); return *this;}
70
72
83 inline const Aws::String& GetDestinationParentId() const { return m_destinationParentId; }
84 inline bool DestinationParentIdHasBeenSet() const { return m_destinationParentIdHasBeenSet; }
85 template<typename DestinationParentIdT = Aws::String>
86 void SetDestinationParentId(DestinationParentIdT&& value) { m_destinationParentIdHasBeenSet = true; m_destinationParentId = std::forward<DestinationParentIdT>(value); }
87 template<typename DestinationParentIdT = Aws::String>
88 MoveAccountRequest& WithDestinationParentId(DestinationParentIdT&& value) { SetDestinationParentId(std::forward<DestinationParentIdT>(value)); return *this;}
90 private:
91
92 Aws::String m_accountId;
93 bool m_accountIdHasBeenSet = false;
94
95 Aws::String m_sourceParentId;
96 bool m_sourceParentIdHasBeenSet = false;
97
98 Aws::String m_destinationParentId;
99 bool m_destinationParentIdHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace Organizations
104} // 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