AWS SDK for C++

AWS SDK for C++ Version 1.11.772

Loading...
Searching...
No Matches
AssociateAccountsResult.h
1
6#pragma once
7#include <aws/compute-optimizer-automation/ComputeOptimizerAutomation_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace ComputeOptimizerAutomation {
24namespace Model {
26 public:
27 AWS_COMPUTEOPTIMIZERAUTOMATION_API AssociateAccountsResult() = default;
29 AWS_COMPUTEOPTIMIZERAUTOMATION_API AssociateAccountsResult& operator=(
31
33
36 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
37 template <typename AccountIdsT = Aws::Vector<Aws::String>>
38 void SetAccountIds(AccountIdsT&& value) {
39 m_accountIdsHasBeenSet = true;
40 m_accountIds = std::forward<AccountIdsT>(value);
41 }
42 template <typename AccountIdsT = Aws::Vector<Aws::String>>
44 SetAccountIds(std::forward<AccountIdsT>(value));
45 return *this;
46 }
47 template <typename AccountIdsT = Aws::String>
48 AssociateAccountsResult& AddAccountIds(AccountIdsT&& value) {
49 m_accountIdsHasBeenSet = true;
50 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetErrors() const { return m_errors; }
60 template <typename ErrorsT = Aws::Vector<Aws::String>>
61 void SetErrors(ErrorsT&& value) {
62 m_errorsHasBeenSet = true;
63 m_errors = std::forward<ErrorsT>(value);
64 }
65 template <typename ErrorsT = Aws::Vector<Aws::String>>
67 SetErrors(std::forward<ErrorsT>(value));
68 return *this;
69 }
70 template <typename ErrorsT = Aws::String>
72 m_errorsHasBeenSet = true;
73 m_errors.emplace_back(std::forward<ErrorsT>(value));
74 return *this;
75 }
77
79
80 inline const Aws::String& GetRequestId() const { return m_requestId; }
81 template <typename RequestIdT = Aws::String>
82 void SetRequestId(RequestIdT&& value) {
83 m_requestIdHasBeenSet = true;
84 m_requestId = std::forward<RequestIdT>(value);
85 }
86 template <typename RequestIdT = Aws::String>
88 SetRequestId(std::forward<RequestIdT>(value));
89 return *this;
90 }
92 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
93
94 private:
95 Aws::Vector<Aws::String> m_accountIds;
96
98
99 Aws::String m_requestId;
100 Aws::Http::HttpResponseCode m_HttpResponseCode;
101 bool m_accountIdsHasBeenSet = false;
102 bool m_errorsHasBeenSet = false;
103 bool m_requestIdHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace ComputeOptimizerAutomation
108} // namespace Aws
AWS_COMPUTEOPTIMIZERAUTOMATION_API AssociateAccountsResult()=default
AWS_COMPUTEOPTIMIZERAUTOMATION_API AssociateAccountsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AssociateAccountsResult & AddAccountIds(AccountIdsT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API AssociateAccountsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AssociateAccountsResult & WithAccountIds(AccountIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue