AWS SDK for C++

AWS SDK for C++ Version 1.11.771

Loading...
Searching...
No Matches
AssociateAccountsRequest.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 AssociateAccountsRequest() = 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 "AssociateAccounts"; }
30
31 AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::String SerializePayload() const override;
32
33 AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
41 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
42 template <typename AccountIdsT = Aws::Vector<Aws::String>>
43 void SetAccountIds(AccountIdsT&& value) {
44 m_accountIdsHasBeenSet = true;
45 m_accountIds = std::forward<AccountIdsT>(value);
46 }
47 template <typename AccountIdsT = Aws::Vector<Aws::String>>
49 SetAccountIds(std::forward<AccountIdsT>(value));
50 return *this;
51 }
52 template <typename AccountIdsT = Aws::String>
54 m_accountIdsHasBeenSet = true;
55 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetClientToken() const { return m_clientToken; }
66 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
67 template <typename ClientTokenT = Aws::String>
68 void SetClientToken(ClientTokenT&& value) {
69 m_clientTokenHasBeenSet = true;
70 m_clientToken = std::forward<ClientTokenT>(value);
71 }
72 template <typename ClientTokenT = Aws::String>
74 SetClientToken(std::forward<ClientTokenT>(value));
75 return *this;
76 }
78 private:
79 Aws::Vector<Aws::String> m_accountIds;
80
82 bool m_accountIdsHasBeenSet = false;
83 bool m_clientTokenHasBeenSet = true;
84};
85
86} // namespace Model
87} // namespace ComputeOptimizerAutomation
88} // namespace Aws
AssociateAccountsRequest & WithAccountIds(AccountIdsT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AssociateAccountsRequest & WithClientToken(ClientTokenT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API AssociateAccountsRequest()=default
AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::String SerializePayload() const override
AssociateAccountsRequest & AddAccountIds(AccountIdsT &&value)
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