AWS SDK for C++

AWS SDK for C++ Version 1.11.769

Loading...
Searching...
No Matches
DelegatedAdministrator.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/organizations/Organizations_EXPORTS.h>
10#include <aws/organizations/model/AccountJoinedMethod.h>
11#include <aws/organizations/model/AccountState.h>
12#include <aws/organizations/model/AccountStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Organizations {
24namespace Model {
25
33 public:
34 AWS_ORGANIZATIONS_API DelegatedAdministrator() = default;
35 AWS_ORGANIZATIONS_API DelegatedAdministrator(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetArn() const { return m_arn; }
62 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
63 template <typename ArnT = Aws::String>
64 void SetArn(ArnT&& value) {
65 m_arnHasBeenSet = true;
66 m_arn = std::forward<ArnT>(value);
67 }
68 template <typename ArnT = Aws::String>
70 SetArn(std::forward<ArnT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetEmail() const { return m_email; }
81 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
82 template <typename EmailT = Aws::String>
83 void SetEmail(EmailT&& value) {
84 m_emailHasBeenSet = true;
85 m_email = std::forward<EmailT>(value);
86 }
87 template <typename EmailT = Aws::String>
89 SetEmail(std::forward<EmailT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetName() const { return m_name; }
99 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
100 template <typename NameT = Aws::String>
101 void SetName(NameT&& value) {
102 m_nameHasBeenSet = true;
103 m_name = std::forward<NameT>(value);
104 }
105 template <typename NameT = Aws::String>
107 SetName(std::forward<NameT>(value));
108 return *this;
109 }
111
113
116 inline AccountStatus GetStatus() const { return m_status; }
117 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
118 inline void SetStatus(AccountStatus value) {
119 m_statusHasBeenSet = true;
120 m_status = value;
121 }
123 SetStatus(value);
124 return *this;
125 }
127
129
138 inline AccountState GetState() const { return m_state; }
139 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
140 inline void SetState(AccountState value) {
141 m_stateHasBeenSet = true;
142 m_state = value;
143 }
145 SetState(value);
146 return *this;
147 }
149
151
155 inline AccountJoinedMethod GetJoinedMethod() const { return m_joinedMethod; }
156 inline bool JoinedMethodHasBeenSet() const { return m_joinedMethodHasBeenSet; }
158 m_joinedMethodHasBeenSet = true;
159 m_joinedMethod = value;
160 }
162 SetJoinedMethod(value);
163 return *this;
164 }
166
168
172 inline const Aws::Utils::DateTime& GetJoinedTimestamp() const { return m_joinedTimestamp; }
173 inline bool JoinedTimestampHasBeenSet() const { return m_joinedTimestampHasBeenSet; }
174 template <typename JoinedTimestampT = Aws::Utils::DateTime>
175 void SetJoinedTimestamp(JoinedTimestampT&& value) {
176 m_joinedTimestampHasBeenSet = true;
177 m_joinedTimestamp = std::forward<JoinedTimestampT>(value);
178 }
179 template <typename JoinedTimestampT = Aws::Utils::DateTime>
180 DelegatedAdministrator& WithJoinedTimestamp(JoinedTimestampT&& value) {
181 SetJoinedTimestamp(std::forward<JoinedTimestampT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::Utils::DateTime& GetDelegationEnabledDate() const { return m_delegationEnabledDate; }
191 inline bool DelegationEnabledDateHasBeenSet() const { return m_delegationEnabledDateHasBeenSet; }
192 template <typename DelegationEnabledDateT = Aws::Utils::DateTime>
193 void SetDelegationEnabledDate(DelegationEnabledDateT&& value) {
194 m_delegationEnabledDateHasBeenSet = true;
195 m_delegationEnabledDate = std::forward<DelegationEnabledDateT>(value);
196 }
197 template <typename DelegationEnabledDateT = Aws::Utils::DateTime>
198 DelegatedAdministrator& WithDelegationEnabledDate(DelegationEnabledDateT&& value) {
199 SetDelegationEnabledDate(std::forward<DelegationEnabledDateT>(value));
200 return *this;
201 }
203 private:
204 Aws::String m_id;
205
206 Aws::String m_arn;
207
208 Aws::String m_email;
209
210 Aws::String m_name;
211
213
215
217
218 Aws::Utils::DateTime m_joinedTimestamp{};
219
220 Aws::Utils::DateTime m_delegationEnabledDate{};
221 bool m_idHasBeenSet = false;
222 bool m_arnHasBeenSet = false;
223 bool m_emailHasBeenSet = false;
224 bool m_nameHasBeenSet = false;
225 bool m_statusHasBeenSet = false;
226 bool m_stateHasBeenSet = false;
227 bool m_joinedMethodHasBeenSet = false;
228 bool m_joinedTimestampHasBeenSet = false;
229 bool m_delegationEnabledDateHasBeenSet = false;
230};
231
232} // namespace Model
233} // namespace Organizations
234} // namespace Aws
DelegatedAdministrator & WithName(NameT &&value)
DelegatedAdministrator & WithDelegationEnabledDate(DelegationEnabledDateT &&value)
DelegatedAdministrator & WithStatus(AccountStatus value)
const Aws::Utils::DateTime & GetJoinedTimestamp() const
void SetDelegationEnabledDate(DelegationEnabledDateT &&value)
DelegatedAdministrator & WithArn(ArnT &&value)
DelegatedAdministrator & WithJoinedTimestamp(JoinedTimestampT &&value)
DelegatedAdministrator & WithEmail(EmailT &&value)
DelegatedAdministrator & WithJoinedMethod(AccountJoinedMethod value)
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ORGANIZATIONS_API DelegatedAdministrator & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ORGANIZATIONS_API DelegatedAdministrator()=default
AWS_ORGANIZATIONS_API DelegatedAdministrator(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetDelegationEnabledDate() const
DelegatedAdministrator & WithState(AccountState value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue