AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Account.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/chime/model/AccountStatus.h>
9#include <aws/chime/model/AccountType.h>
10#include <aws/chime/model/License.h>
11#include <aws/chime/model/SigninDelegateGroup.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Chime {
26namespace Model {
27
34class Account {
35 public:
36 AWS_CHIME_API Account() = default;
37 AWS_CHIME_API Account(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CHIME_API Account& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
46 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
47 template <typename AwsAccountIdT = Aws::String>
48 void SetAwsAccountId(AwsAccountIdT&& value) {
49 m_awsAccountIdHasBeenSet = true;
50 m_awsAccountId = std::forward<AwsAccountIdT>(value);
51 }
52 template <typename AwsAccountIdT = Aws::String>
53 Account& WithAwsAccountId(AwsAccountIdT&& value) {
54 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetAccountId() const { return m_accountId; }
64 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
65 template <typename AccountIdT = Aws::String>
66 void SetAccountId(AccountIdT&& value) {
67 m_accountIdHasBeenSet = true;
68 m_accountId = std::forward<AccountIdT>(value);
69 }
70 template <typename AccountIdT = Aws::String>
71 Account& WithAccountId(AccountIdT&& value) {
72 SetAccountId(std::forward<AccountIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetName() const { return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 template <typename NameT = Aws::String>
84 void SetName(NameT&& value) {
85 m_nameHasBeenSet = true;
86 m_name = std::forward<NameT>(value);
87 }
88 template <typename NameT = Aws::String>
89 Account& WithName(NameT&& value) {
90 SetName(std::forward<NameT>(value));
91 return *this;
92 }
94
96
103 inline AccountType GetAccountType() const { return m_accountType; }
104 inline bool AccountTypeHasBeenSet() const { return m_accountTypeHasBeenSet; }
105 inline void SetAccountType(AccountType value) {
106 m_accountTypeHasBeenSet = true;
107 m_accountType = value;
108 }
110 SetAccountType(value);
111 return *this;
112 }
114
116
119 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
120 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
121 template <typename CreatedTimestampT = Aws::Utils::DateTime>
122 void SetCreatedTimestamp(CreatedTimestampT&& value) {
123 m_createdTimestampHasBeenSet = true;
124 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
125 }
126 template <typename CreatedTimestampT = Aws::Utils::DateTime>
127 Account& WithCreatedTimestamp(CreatedTimestampT&& value) {
128 SetCreatedTimestamp(std::forward<CreatedTimestampT>(value));
129 return *this;
130 }
132
134
137 inline License GetDefaultLicense() const { return m_defaultLicense; }
138 inline bool DefaultLicenseHasBeenSet() const { return m_defaultLicenseHasBeenSet; }
139 inline void SetDefaultLicense(License value) {
140 m_defaultLicenseHasBeenSet = true;
141 m_defaultLicense = value;
142 }
144 SetDefaultLicense(value);
145 return *this;
146 }
148
150
153 inline const Aws::Vector<License>& GetSupportedLicenses() const { return m_supportedLicenses; }
154 inline bool SupportedLicensesHasBeenSet() const { return m_supportedLicensesHasBeenSet; }
155 template <typename SupportedLicensesT = Aws::Vector<License>>
156 void SetSupportedLicenses(SupportedLicensesT&& value) {
157 m_supportedLicensesHasBeenSet = true;
158 m_supportedLicenses = std::forward<SupportedLicensesT>(value);
159 }
160 template <typename SupportedLicensesT = Aws::Vector<License>>
161 Account& WithSupportedLicenses(SupportedLicensesT&& value) {
162 SetSupportedLicenses(std::forward<SupportedLicensesT>(value));
163 return *this;
164 }
166 m_supportedLicensesHasBeenSet = true;
167 m_supportedLicenses.push_back(value);
168 return *this;
169 }
171
173
176 inline AccountStatus GetAccountStatus() const { return m_accountStatus; }
177 inline bool AccountStatusHasBeenSet() const { return m_accountStatusHasBeenSet; }
178 inline void SetAccountStatus(AccountStatus value) {
179 m_accountStatusHasBeenSet = true;
180 m_accountStatus = value;
181 }
183 SetAccountStatus(value);
184 return *this;
185 }
187
189
192 inline const Aws::Vector<SigninDelegateGroup>& GetSigninDelegateGroups() const { return m_signinDelegateGroups; }
193 inline bool SigninDelegateGroupsHasBeenSet() const { return m_signinDelegateGroupsHasBeenSet; }
194 template <typename SigninDelegateGroupsT = Aws::Vector<SigninDelegateGroup>>
195 void SetSigninDelegateGroups(SigninDelegateGroupsT&& value) {
196 m_signinDelegateGroupsHasBeenSet = true;
197 m_signinDelegateGroups = std::forward<SigninDelegateGroupsT>(value);
198 }
199 template <typename SigninDelegateGroupsT = Aws::Vector<SigninDelegateGroup>>
200 Account& WithSigninDelegateGroups(SigninDelegateGroupsT&& value) {
201 SetSigninDelegateGroups(std::forward<SigninDelegateGroupsT>(value));
202 return *this;
203 }
204 template <typename SigninDelegateGroupsT = SigninDelegateGroup>
205 Account& AddSigninDelegateGroups(SigninDelegateGroupsT&& value) {
206 m_signinDelegateGroupsHasBeenSet = true;
207 m_signinDelegateGroups.emplace_back(std::forward<SigninDelegateGroupsT>(value));
208 return *this;
209 }
211 private:
212 Aws::String m_awsAccountId;
213
214 Aws::String m_accountId;
215
216 Aws::String m_name;
217
218 AccountType m_accountType{AccountType::NOT_SET};
219
220 Aws::Utils::DateTime m_createdTimestamp{};
221
222 License m_defaultLicense{License::NOT_SET};
223
224 Aws::Vector<License> m_supportedLicenses;
225
226 AccountStatus m_accountStatus{AccountStatus::NOT_SET};
227
228 Aws::Vector<SigninDelegateGroup> m_signinDelegateGroups;
229 bool m_awsAccountIdHasBeenSet = false;
230 bool m_accountIdHasBeenSet = false;
231 bool m_nameHasBeenSet = false;
232 bool m_accountTypeHasBeenSet = false;
233 bool m_createdTimestampHasBeenSet = false;
234 bool m_defaultLicenseHasBeenSet = false;
235 bool m_supportedLicensesHasBeenSet = false;
236 bool m_accountStatusHasBeenSet = false;
237 bool m_signinDelegateGroupsHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace Chime
242} // namespace Aws
AWS_CHIME_API Account()=default
void SetSupportedLicenses(SupportedLicensesT &&value)
Definition Account.h:156
void SetAccountStatus(AccountStatus value)
Definition Account.h:178
Account & WithAccountType(AccountType value)
Definition Account.h:109
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Definition Account.h:119
Account & WithAccountStatus(AccountStatus value)
Definition Account.h:182
const Aws::String & GetName() const
Definition Account.h:81
bool DefaultLicenseHasBeenSet() const
Definition Account.h:138
Account & WithSupportedLicenses(SupportedLicensesT &&value)
Definition Account.h:161
bool SupportedLicensesHasBeenSet() const
Definition Account.h:154
void SetName(NameT &&value)
Definition Account.h:84
bool NameHasBeenSet() const
Definition Account.h:82
void SetSigninDelegateGroups(SigninDelegateGroupsT &&value)
Definition Account.h:195
Account & AddSigninDelegateGroups(SigninDelegateGroupsT &&value)
Definition Account.h:205
AWS_CHIME_API Account(Aws::Utils::Json::JsonView jsonValue)
AWS_CHIME_API Account & operator=(Aws::Utils::Json::JsonView jsonValue)
bool AccountTypeHasBeenSet() const
Definition Account.h:104
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedTimestamp(CreatedTimestampT &&value)
Definition Account.h:122
bool AccountIdHasBeenSet() const
Definition Account.h:64
void SetDefaultLicense(License value)
Definition Account.h:139
AccountType GetAccountType() const
Definition Account.h:103
bool AccountStatusHasBeenSet() const
Definition Account.h:177
Account & AddSupportedLicenses(License value)
Definition Account.h:165
Account & WithAwsAccountId(AwsAccountIdT &&value)
Definition Account.h:53
Account & WithDefaultLicense(License value)
Definition Account.h:143
const Aws::String & GetAccountId() const
Definition Account.h:63
Account & WithName(NameT &&value)
Definition Account.h:89
AccountStatus GetAccountStatus() const
Definition Account.h:176
Account & WithCreatedTimestamp(CreatedTimestampT &&value)
Definition Account.h:127
License GetDefaultLicense() const
Definition Account.h:137
void SetAccountId(AccountIdT &&value)
Definition Account.h:66
bool CreatedTimestampHasBeenSet() const
Definition Account.h:120
const Aws::String & GetAwsAccountId() const
Definition Account.h:45
bool SigninDelegateGroupsHasBeenSet() const
Definition Account.h:193
bool AwsAccountIdHasBeenSet() const
Definition Account.h:46
const Aws::Vector< SigninDelegateGroup > & GetSigninDelegateGroups() const
Definition Account.h:192
void SetAccountType(AccountType value)
Definition Account.h:105
void SetAwsAccountId(AwsAccountIdT &&value)
Definition Account.h:48
Account & WithAccountId(AccountIdT &&value)
Definition Account.h:71
Account & WithSigninDelegateGroups(SigninDelegateGroupsT &&value)
Definition Account.h:200
const Aws::Vector< License > & GetSupportedLicenses() const
Definition Account.h:153
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue