AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
GetAccountInformationResult.h
1
6#pragma once
7#include <aws/account/Account_EXPORTS.h>
8#include <aws/account/model/AccountState.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Account {
25namespace Model {
27 public:
28 AWS_ACCOUNT_API GetAccountInformationResult() = default;
31
33
51 inline const Aws::String& GetAccountId() const { return m_accountId; }
52 template <typename AccountIdT = Aws::String>
53 void SetAccountId(AccountIdT&& value) {
54 m_accountIdHasBeenSet = true;
55 m_accountId = std::forward<AccountIdT>(value);
56 }
57 template <typename AccountIdT = Aws::String>
59 SetAccountId(std::forward<AccountIdT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetAccountName() const { return m_accountName; }
69 template <typename AccountNameT = Aws::String>
70 void SetAccountName(AccountNameT&& value) {
71 m_accountNameHasBeenSet = true;
72 m_accountName = std::forward<AccountNameT>(value);
73 }
74 template <typename AccountNameT = Aws::String>
76 SetAccountName(std::forward<AccountNameT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Utils::DateTime& GetAccountCreatedDate() const { return m_accountCreatedDate; }
86 template <typename AccountCreatedDateT = Aws::Utils::DateTime>
87 void SetAccountCreatedDate(AccountCreatedDateT&& value) {
88 m_accountCreatedDateHasBeenSet = true;
89 m_accountCreatedDate = std::forward<AccountCreatedDateT>(value);
90 }
91 template <typename AccountCreatedDateT = Aws::Utils::DateTime>
93 SetAccountCreatedDate(std::forward<AccountCreatedDateT>(value));
94 return *this;
95 }
97
99
105 inline AccountState GetAccountState() const { return m_accountState; }
106 inline void SetAccountState(AccountState value) {
107 m_accountStateHasBeenSet = true;
108 m_accountState = value;
109 }
111 SetAccountState(value);
112 return *this;
113 }
115
117
118 inline const Aws::String& GetRequestId() const { return m_requestId; }
119 template <typename RequestIdT = Aws::String>
120 void SetRequestId(RequestIdT&& value) {
121 m_requestIdHasBeenSet = true;
122 m_requestId = std::forward<RequestIdT>(value);
123 }
124 template <typename RequestIdT = Aws::String>
126 SetRequestId(std::forward<RequestIdT>(value));
127 return *this;
128 }
130 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
131
132 private:
133 Aws::String m_accountId;
134
135 Aws::String m_accountName;
136
137 Aws::Utils::DateTime m_accountCreatedDate{};
138
139 AccountState m_accountState{AccountState::NOT_SET};
140
141 Aws::String m_requestId;
142 Aws::Http::HttpResponseCode m_HttpResponseCode;
143 bool m_accountIdHasBeenSet = false;
144 bool m_accountNameHasBeenSet = false;
145 bool m_accountCreatedDateHasBeenSet = false;
146 bool m_accountStateHasBeenSet = false;
147 bool m_requestIdHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace Account
152} // namespace Aws
AWS_ACCOUNT_API GetAccountInformationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_ACCOUNT_API GetAccountInformationResult()=default
GetAccountInformationResult & WithAccountCreatedDate(AccountCreatedDateT &&value)
GetAccountInformationResult & WithAccountId(AccountIdT &&value)
GetAccountInformationResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetAccountCreatedDate() const
GetAccountInformationResult & WithAccountState(AccountState value)
GetAccountInformationResult & WithAccountName(AccountNameT &&value)
AWS_ACCOUNT_API GetAccountInformationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue