AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Account.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/chime/model/AccountType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/chime/model/License.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/chime/model/AccountStatus.h>
14#include <aws/chime/model/SigninDelegateGroup.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Chime
28{
29namespace Model
30{
31
38 class Account
39 {
40 public:
41 AWS_CHIME_API Account() = default;
42 AWS_CHIME_API Account(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CHIME_API Account& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
52 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
53 template<typename AwsAccountIdT = Aws::String>
54 void SetAwsAccountId(AwsAccountIdT&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
55 template<typename AwsAccountIdT = Aws::String>
56 Account& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
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) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
67 template<typename AccountIdT = Aws::String>
68 Account& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template<typename NameT = Aws::String>
78 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
79 template<typename NameT = Aws::String>
80 Account& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
82
84
91 inline AccountType GetAccountType() const { return m_accountType; }
92 inline bool AccountTypeHasBeenSet() const { return m_accountTypeHasBeenSet; }
93 inline void SetAccountType(AccountType value) { m_accountTypeHasBeenSet = true; m_accountType = value; }
94 inline Account& WithAccountType(AccountType value) { SetAccountType(value); return *this;}
96
98
101 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
102 inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; }
103 template<typename CreatedTimestampT = Aws::Utils::DateTime>
104 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
105 template<typename CreatedTimestampT = Aws::Utils::DateTime>
106 Account& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
108
110
113 inline License GetDefaultLicense() const { return m_defaultLicense; }
114 inline bool DefaultLicenseHasBeenSet() const { return m_defaultLicenseHasBeenSet; }
115 inline void SetDefaultLicense(License value) { m_defaultLicenseHasBeenSet = true; m_defaultLicense = value; }
116 inline Account& WithDefaultLicense(License value) { SetDefaultLicense(value); return *this;}
118
120
123 inline const Aws::Vector<License>& GetSupportedLicenses() const { return m_supportedLicenses; }
124 inline bool SupportedLicensesHasBeenSet() const { return m_supportedLicensesHasBeenSet; }
125 template<typename SupportedLicensesT = Aws::Vector<License>>
126 void SetSupportedLicenses(SupportedLicensesT&& value) { m_supportedLicensesHasBeenSet = true; m_supportedLicenses = std::forward<SupportedLicensesT>(value); }
127 template<typename SupportedLicensesT = Aws::Vector<License>>
128 Account& WithSupportedLicenses(SupportedLicensesT&& value) { SetSupportedLicenses(std::forward<SupportedLicensesT>(value)); return *this;}
129 inline Account& AddSupportedLicenses(License value) { m_supportedLicensesHasBeenSet = true; m_supportedLicenses.push_back(value); return *this; }
131
133
136 inline AccountStatus GetAccountStatus() const { return m_accountStatus; }
137 inline bool AccountStatusHasBeenSet() const { return m_accountStatusHasBeenSet; }
138 inline void SetAccountStatus(AccountStatus value) { m_accountStatusHasBeenSet = true; m_accountStatus = value; }
139 inline Account& WithAccountStatus(AccountStatus value) { SetAccountStatus(value); return *this;}
141
143
146 inline const Aws::Vector<SigninDelegateGroup>& GetSigninDelegateGroups() const { return m_signinDelegateGroups; }
147 inline bool SigninDelegateGroupsHasBeenSet() const { return m_signinDelegateGroupsHasBeenSet; }
148 template<typename SigninDelegateGroupsT = Aws::Vector<SigninDelegateGroup>>
149 void SetSigninDelegateGroups(SigninDelegateGroupsT&& value) { m_signinDelegateGroupsHasBeenSet = true; m_signinDelegateGroups = std::forward<SigninDelegateGroupsT>(value); }
150 template<typename SigninDelegateGroupsT = Aws::Vector<SigninDelegateGroup>>
151 Account& WithSigninDelegateGroups(SigninDelegateGroupsT&& value) { SetSigninDelegateGroups(std::forward<SigninDelegateGroupsT>(value)); return *this;}
152 template<typename SigninDelegateGroupsT = SigninDelegateGroup>
153 Account& AddSigninDelegateGroups(SigninDelegateGroupsT&& value) { m_signinDelegateGroupsHasBeenSet = true; m_signinDelegateGroups.emplace_back(std::forward<SigninDelegateGroupsT>(value)); return *this; }
155 private:
156
157 Aws::String m_awsAccountId;
158 bool m_awsAccountIdHasBeenSet = false;
159
160 Aws::String m_accountId;
161 bool m_accountIdHasBeenSet = false;
162
163 Aws::String m_name;
164 bool m_nameHasBeenSet = false;
165
166 AccountType m_accountType{AccountType::NOT_SET};
167 bool m_accountTypeHasBeenSet = false;
168
169 Aws::Utils::DateTime m_createdTimestamp{};
170 bool m_createdTimestampHasBeenSet = false;
171
172 License m_defaultLicense{License::NOT_SET};
173 bool m_defaultLicenseHasBeenSet = false;
174
175 Aws::Vector<License> m_supportedLicenses;
176 bool m_supportedLicensesHasBeenSet = false;
177
178 AccountStatus m_accountStatus{AccountStatus::NOT_SET};
179 bool m_accountStatusHasBeenSet = false;
180
181 Aws::Vector<SigninDelegateGroup> m_signinDelegateGroups;
182 bool m_signinDelegateGroupsHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace Chime
187} // namespace Aws
AWS_CHIME_API Account()=default
void SetSupportedLicenses(SupportedLicensesT &&value)
Definition Account.h:126
void SetAccountStatus(AccountStatus value)
Definition Account.h:138
Account & WithAccountType(AccountType value)
Definition Account.h:94
const Aws::Utils::DateTime & GetCreatedTimestamp() const
Definition Account.h:101
Account & WithAccountStatus(AccountStatus value)
Definition Account.h:139
const Aws::String & GetName() const
Definition Account.h:75
bool DefaultLicenseHasBeenSet() const
Definition Account.h:114
Account & WithSupportedLicenses(SupportedLicensesT &&value)
Definition Account.h:128
bool SupportedLicensesHasBeenSet() const
Definition Account.h:124
void SetName(NameT &&value)
Definition Account.h:78
bool NameHasBeenSet() const
Definition Account.h:76
void SetSigninDelegateGroups(SigninDelegateGroupsT &&value)
Definition Account.h:149
Account & AddSigninDelegateGroups(SigninDelegateGroupsT &&value)
Definition Account.h:153
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:92
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedTimestamp(CreatedTimestampT &&value)
Definition Account.h:104
bool AccountIdHasBeenSet() const
Definition Account.h:64
void SetDefaultLicense(License value)
Definition Account.h:115
AccountType GetAccountType() const
Definition Account.h:91
bool AccountStatusHasBeenSet() const
Definition Account.h:137
Account & AddSupportedLicenses(License value)
Definition Account.h:129
Account & WithAwsAccountId(AwsAccountIdT &&value)
Definition Account.h:56
Account & WithDefaultLicense(License value)
Definition Account.h:116
const Aws::String & GetAccountId() const
Definition Account.h:63
Account & WithName(NameT &&value)
Definition Account.h:80
AccountStatus GetAccountStatus() const
Definition Account.h:136
Account & WithCreatedTimestamp(CreatedTimestampT &&value)
Definition Account.h:106
License GetDefaultLicense() const
Definition Account.h:113
void SetAccountId(AccountIdT &&value)
Definition Account.h:66
bool CreatedTimestampHasBeenSet() const
Definition Account.h:102
const Aws::String & GetAwsAccountId() const
Definition Account.h:51
bool SigninDelegateGroupsHasBeenSet() const
Definition Account.h:147
bool AwsAccountIdHasBeenSet() const
Definition Account.h:52
const Aws::Vector< SigninDelegateGroup > & GetSigninDelegateGroups() const
Definition Account.h:146
void SetAccountType(AccountType value)
Definition Account.h:93
void SetAwsAccountId(AwsAccountIdT &&value)
Definition Account.h:54
Account & WithAccountId(AccountIdT &&value)
Definition Account.h:68
Account & WithSigninDelegateGroups(SigninDelegateGroupsT &&value)
Definition Account.h:151
const Aws::Vector< License > & GetSupportedLicenses() const
Definition Account.h:123
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue