AWS SDK for C++

AWS SDK for C++ Version 1.11.772

Loading...
Searching...
No Matches
DisassociateAccountsRequest.h
1
6#pragma once
7#include <aws/compute-optimizer-automation/ComputeOptimizerAutomationRequest.h>
8#include <aws/compute-optimizer-automation/ComputeOptimizerAutomation_EXPORTS.h>
9#include <aws/core/utils/UUID.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ComputeOptimizerAutomation {
17namespace Model {
18
22 public:
23 AWS_COMPUTEOPTIMIZERAUTOMATION_API DisassociateAccountsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DisassociateAccounts"; }
30
31 AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::String SerializePayload() const override;
32
33 AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
40 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
41 template <typename AccountIdsT = Aws::Vector<Aws::String>>
42 void SetAccountIds(AccountIdsT&& value) {
43 m_accountIdsHasBeenSet = true;
44 m_accountIds = std::forward<AccountIdsT>(value);
45 }
46 template <typename AccountIdsT = Aws::Vector<Aws::String>>
48 SetAccountIds(std::forward<AccountIdsT>(value));
49 return *this;
50 }
51 template <typename AccountIdsT = Aws::String>
53 m_accountIdsHasBeenSet = true;
54 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetClientToken() const { return m_clientToken; }
64 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
65 template <typename ClientTokenT = Aws::String>
66 void SetClientToken(ClientTokenT&& value) {
67 m_clientTokenHasBeenSet = true;
68 m_clientToken = std::forward<ClientTokenT>(value);
69 }
70 template <typename ClientTokenT = Aws::String>
72 SetClientToken(std::forward<ClientTokenT>(value));
73 return *this;
74 }
76 private:
77 Aws::Vector<Aws::String> m_accountIds;
78
80 bool m_accountIdsHasBeenSet = false;
81 bool m_clientTokenHasBeenSet = true;
82};
83
84} // namespace Model
85} // namespace ComputeOptimizerAutomation
86} // namespace Aws
AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::String SerializePayload() const override
DisassociateAccountsRequest & WithClientToken(ClientTokenT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API DisassociateAccountsRequest()=default
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector