AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DelegatedAdministrator.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/organizations/model/AccountStatus.h>
10#include <aws/organizations/model/AccountJoinedMethod.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Organizations
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_ORGANIZATIONS_API DelegatedAdministrator() = default;
39 AWS_ORGANIZATIONS_API DelegatedAdministrator(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const { return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 DelegatedAdministrator& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
55
57
60 inline const Aws::String& GetArn() const { return m_arn; }
61 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
62 template<typename ArnT = Aws::String>
63 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
64 template<typename ArnT = Aws::String>
65 DelegatedAdministrator& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
67
69
73 inline const Aws::String& GetEmail() const { return m_email; }
74 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
75 template<typename EmailT = Aws::String>
76 void SetEmail(EmailT&& value) { m_emailHasBeenSet = true; m_email = std::forward<EmailT>(value); }
77 template<typename EmailT = Aws::String>
78 DelegatedAdministrator& WithEmail(EmailT&& value) { SetEmail(std::forward<EmailT>(value)); return *this;}
80
82
85 inline const Aws::String& GetName() const { return m_name; }
86 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 template<typename NameT = Aws::String>
88 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
89 template<typename NameT = Aws::String>
90 DelegatedAdministrator& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
92
94
97 inline AccountStatus GetStatus() const { return m_status; }
98 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
99 inline void SetStatus(AccountStatus value) { m_statusHasBeenSet = true; m_status = value; }
100 inline DelegatedAdministrator& WithStatus(AccountStatus value) { SetStatus(value); return *this;}
102
104
108 inline AccountJoinedMethod GetJoinedMethod() const { return m_joinedMethod; }
109 inline bool JoinedMethodHasBeenSet() const { return m_joinedMethodHasBeenSet; }
110 inline void SetJoinedMethod(AccountJoinedMethod value) { m_joinedMethodHasBeenSet = true; m_joinedMethod = value; }
113
115
119 inline const Aws::Utils::DateTime& GetJoinedTimestamp() const { return m_joinedTimestamp; }
120 inline bool JoinedTimestampHasBeenSet() const { return m_joinedTimestampHasBeenSet; }
121 template<typename JoinedTimestampT = Aws::Utils::DateTime>
122 void SetJoinedTimestamp(JoinedTimestampT&& value) { m_joinedTimestampHasBeenSet = true; m_joinedTimestamp = std::forward<JoinedTimestampT>(value); }
123 template<typename JoinedTimestampT = Aws::Utils::DateTime>
124 DelegatedAdministrator& WithJoinedTimestamp(JoinedTimestampT&& value) { SetJoinedTimestamp(std::forward<JoinedTimestampT>(value)); return *this;}
126
128
131 inline const Aws::Utils::DateTime& GetDelegationEnabledDate() const { return m_delegationEnabledDate; }
132 inline bool DelegationEnabledDateHasBeenSet() const { return m_delegationEnabledDateHasBeenSet; }
133 template<typename DelegationEnabledDateT = Aws::Utils::DateTime>
134 void SetDelegationEnabledDate(DelegationEnabledDateT&& value) { m_delegationEnabledDateHasBeenSet = true; m_delegationEnabledDate = std::forward<DelegationEnabledDateT>(value); }
135 template<typename DelegationEnabledDateT = Aws::Utils::DateTime>
136 DelegatedAdministrator& WithDelegationEnabledDate(DelegationEnabledDateT&& value) { SetDelegationEnabledDate(std::forward<DelegationEnabledDateT>(value)); return *this;}
138 private:
139
140 Aws::String m_id;
141 bool m_idHasBeenSet = false;
142
143 Aws::String m_arn;
144 bool m_arnHasBeenSet = false;
145
146 Aws::String m_email;
147 bool m_emailHasBeenSet = false;
148
149 Aws::String m_name;
150 bool m_nameHasBeenSet = false;
151
153 bool m_statusHasBeenSet = false;
154
156 bool m_joinedMethodHasBeenSet = false;
157
158 Aws::Utils::DateTime m_joinedTimestamp{};
159 bool m_joinedTimestampHasBeenSet = false;
160
161 Aws::Utils::DateTime m_delegationEnabledDate{};
162 bool m_delegationEnabledDateHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace Organizations
167} // 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
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue