AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline DelegatedAdministrator& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline DelegatedAdministrator& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline DelegatedAdministrator& WithId(const char* value) { SetId(value); return *this;}
57
59
62 inline const Aws::String& GetArn() const{ return m_arn; }
63 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
64 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
65 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
66 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
67 inline DelegatedAdministrator& WithArn(const Aws::String& value) { SetArn(value); return *this;}
68 inline DelegatedAdministrator& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
69 inline DelegatedAdministrator& WithArn(const char* value) { SetArn(value); return *this;}
71
73
77 inline const Aws::String& GetEmail() const{ return m_email; }
78 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
79 inline void SetEmail(const Aws::String& value) { m_emailHasBeenSet = true; m_email = value; }
80 inline void SetEmail(Aws::String&& value) { m_emailHasBeenSet = true; m_email = std::move(value); }
81 inline void SetEmail(const char* value) { m_emailHasBeenSet = true; m_email.assign(value); }
82 inline DelegatedAdministrator& WithEmail(const Aws::String& value) { SetEmail(value); return *this;}
83 inline DelegatedAdministrator& WithEmail(Aws::String&& value) { SetEmail(std::move(value)); return *this;}
84 inline DelegatedAdministrator& WithEmail(const char* value) { SetEmail(value); return *this;}
86
88
91 inline const Aws::String& GetName() const{ return m_name; }
92 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
94 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
95 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
96 inline DelegatedAdministrator& WithName(const Aws::String& value) { SetName(value); return *this;}
97 inline DelegatedAdministrator& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
98 inline DelegatedAdministrator& WithName(const char* value) { SetName(value); return *this;}
100
102
105 inline const AccountStatus& GetStatus() const{ return m_status; }
106 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
107 inline void SetStatus(const AccountStatus& value) { m_statusHasBeenSet = true; m_status = value; }
108 inline void SetStatus(AccountStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
109 inline DelegatedAdministrator& WithStatus(const AccountStatus& value) { SetStatus(value); return *this;}
110 inline DelegatedAdministrator& WithStatus(AccountStatus&& value) { SetStatus(std::move(value)); return *this;}
112
114
118 inline const AccountJoinedMethod& GetJoinedMethod() const{ return m_joinedMethod; }
119 inline bool JoinedMethodHasBeenSet() const { return m_joinedMethodHasBeenSet; }
120 inline void SetJoinedMethod(const AccountJoinedMethod& value) { m_joinedMethodHasBeenSet = true; m_joinedMethod = value; }
121 inline void SetJoinedMethod(AccountJoinedMethod&& value) { m_joinedMethodHasBeenSet = true; m_joinedMethod = std::move(value); }
122 inline DelegatedAdministrator& WithJoinedMethod(const AccountJoinedMethod& value) { SetJoinedMethod(value); return *this;}
123 inline DelegatedAdministrator& WithJoinedMethod(AccountJoinedMethod&& value) { SetJoinedMethod(std::move(value)); return *this;}
125
127
131 inline const Aws::Utils::DateTime& GetJoinedTimestamp() const{ return m_joinedTimestamp; }
132 inline bool JoinedTimestampHasBeenSet() const { return m_joinedTimestampHasBeenSet; }
133 inline void SetJoinedTimestamp(const Aws::Utils::DateTime& value) { m_joinedTimestampHasBeenSet = true; m_joinedTimestamp = value; }
134 inline void SetJoinedTimestamp(Aws::Utils::DateTime&& value) { m_joinedTimestampHasBeenSet = true; m_joinedTimestamp = std::move(value); }
136 inline DelegatedAdministrator& WithJoinedTimestamp(Aws::Utils::DateTime&& value) { SetJoinedTimestamp(std::move(value)); return *this;}
138
140
143 inline const Aws::Utils::DateTime& GetDelegationEnabledDate() const{ return m_delegationEnabledDate; }
144 inline bool DelegationEnabledDateHasBeenSet() const { return m_delegationEnabledDateHasBeenSet; }
145 inline void SetDelegationEnabledDate(const Aws::Utils::DateTime& value) { m_delegationEnabledDateHasBeenSet = true; m_delegationEnabledDate = value; }
146 inline void SetDelegationEnabledDate(Aws::Utils::DateTime&& value) { m_delegationEnabledDateHasBeenSet = true; m_delegationEnabledDate = std::move(value); }
150 private:
151
152 Aws::String m_id;
153 bool m_idHasBeenSet = false;
154
155 Aws::String m_arn;
156 bool m_arnHasBeenSet = false;
157
158 Aws::String m_email;
159 bool m_emailHasBeenSet = false;
160
161 Aws::String m_name;
162 bool m_nameHasBeenSet = false;
163
164 AccountStatus m_status;
165 bool m_statusHasBeenSet = false;
166
167 AccountJoinedMethod m_joinedMethod;
168 bool m_joinedMethodHasBeenSet = false;
169
170 Aws::Utils::DateTime m_joinedTimestamp;
171 bool m_joinedTimestampHasBeenSet = false;
172
173 Aws::Utils::DateTime m_delegationEnabledDate;
174 bool m_delegationEnabledDateHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace Organizations
179} // namespace Aws
void SetDelegationEnabledDate(Aws::Utils::DateTime &&value)
DelegatedAdministrator & WithName(Aws::String &&value)
DelegatedAdministrator & WithEmail(const char *value)
DelegatedAdministrator & WithArn(const char *value)
DelegatedAdministrator & WithEmail(const Aws::String &value)
DelegatedAdministrator & WithName(const char *value)
DelegatedAdministrator & WithDelegationEnabledDate(Aws::Utils::DateTime &&value)
DelegatedAdministrator & WithJoinedTimestamp(Aws::Utils::DateTime &&value)
DelegatedAdministrator & WithJoinedMethod(AccountJoinedMethod &&value)
const Aws::Utils::DateTime & GetJoinedTimestamp() const
DelegatedAdministrator & WithId(Aws::String &&value)
DelegatedAdministrator & WithJoinedMethod(const AccountJoinedMethod &value)
DelegatedAdministrator & WithArn(Aws::String &&value)
DelegatedAdministrator & WithStatus(const AccountStatus &value)
DelegatedAdministrator & WithId(const Aws::String &value)
void SetJoinedTimestamp(const Aws::Utils::DateTime &value)
void SetDelegationEnabledDate(const Aws::Utils::DateTime &value)
void SetJoinedMethod(const AccountJoinedMethod &value)
DelegatedAdministrator & WithStatus(AccountStatus &&value)
DelegatedAdministrator & WithArn(const Aws::String &value)
DelegatedAdministrator & WithId(const char *value)
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
DelegatedAdministrator & WithJoinedTimestamp(const Aws::Utils::DateTime &value)
AWS_ORGANIZATIONS_API DelegatedAdministrator & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ORGANIZATIONS_API DelegatedAdministrator(Aws::Utils::Json::JsonView jsonValue)
DelegatedAdministrator & WithDelegationEnabledDate(const Aws::Utils::DateTime &value)
DelegatedAdministrator & WithName(const Aws::String &value)
DelegatedAdministrator & WithEmail(Aws::String &&value)
const Aws::Utils::DateTime & GetDelegationEnabledDate() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue