AWS SDK for C++  1.9.160
AWS SDK for C++
AccountAssignment.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace SSOAdmin
23 {
24 namespace Model
25 {
26 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetAccountId() const{ return m_accountId; }
48 
52  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
53 
57  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
58 
62  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
63 
67  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
68 
72  inline AccountAssignment& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
73 
77  inline AccountAssignment& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
78 
82  inline AccountAssignment& WithAccountId(const char* value) { SetAccountId(value); return *this;}
83 
84 
91  inline const Aws::String& GetPermissionSetArn() const{ return m_permissionSetArn; }
92 
99  inline bool PermissionSetArnHasBeenSet() const { return m_permissionSetArnHasBeenSet; }
100 
107  inline void SetPermissionSetArn(const Aws::String& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = value; }
108 
115  inline void SetPermissionSetArn(Aws::String&& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = std::move(value); }
116 
123  inline void SetPermissionSetArn(const char* value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn.assign(value); }
124 
131  inline AccountAssignment& WithPermissionSetArn(const Aws::String& value) { SetPermissionSetArn(value); return *this;}
132 
139  inline AccountAssignment& WithPermissionSetArn(Aws::String&& value) { SetPermissionSetArn(std::move(value)); return *this;}
140 
147  inline AccountAssignment& WithPermissionSetArn(const char* value) { SetPermissionSetArn(value); return *this;}
148 
149 
153  inline const PrincipalType& GetPrincipalType() const{ return m_principalType; }
154 
158  inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
159 
163  inline void SetPrincipalType(const PrincipalType& value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
164 
168  inline void SetPrincipalType(PrincipalType&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); }
169 
173  inline AccountAssignment& WithPrincipalType(const PrincipalType& value) { SetPrincipalType(value); return *this;}
174 
178  inline AccountAssignment& WithPrincipalType(PrincipalType&& value) { SetPrincipalType(std::move(value)); return *this;}
179 
180 
189  inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
190 
199  inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
200 
209  inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
210 
219  inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
220 
229  inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
230 
239  inline AccountAssignment& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
240 
249  inline AccountAssignment& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
250 
259  inline AccountAssignment& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
260 
261  private:
262 
263  Aws::String m_accountId;
264  bool m_accountIdHasBeenSet;
265 
266  Aws::String m_permissionSetArn;
267  bool m_permissionSetArnHasBeenSet;
268 
269  PrincipalType m_principalType;
270  bool m_principalTypeHasBeenSet;
271 
272  Aws::String m_principalId;
273  bool m_principalIdHasBeenSet;
274  };
275 
276 } // namespace Model
277 } // namespace SSOAdmin
278 } // namespace Aws
Aws::SSOAdmin::Model::AccountAssignment::SetPrincipalType
void SetPrincipalType(PrincipalType &&value)
Definition: AccountAssignment.h:168
Aws::SSOAdmin::Model::AccountAssignment::SetAccountId
void SetAccountId(const char *value)
Definition: AccountAssignment.h:67
Aws::SSOAdmin::Model::AccountAssignment::WithPrincipalId
AccountAssignment & WithPrincipalId(const Aws::String &value)
Definition: AccountAssignment.h:239
Aws::SSOAdmin::Model::AccountAssignment::SetPrincipalType
void SetPrincipalType(const PrincipalType &value)
Definition: AccountAssignment.h:163
PrincipalType.h
Aws::SSOAdmin::Model::AccountAssignment::PermissionSetArnHasBeenSet
bool PermissionSetArnHasBeenSet() const
Definition: AccountAssignment.h:99
Aws::SSOAdmin::Model::AccountAssignment::SetPermissionSetArn
void SetPermissionSetArn(const char *value)
Definition: AccountAssignment.h:123
Aws::SSOAdmin::Model::AccountAssignment::SetPermissionSetArn
void SetPermissionSetArn(const Aws::String &value)
Definition: AccountAssignment.h:107
Aws::SSOAdmin::Model::AccountAssignment::WithPermissionSetArn
AccountAssignment & WithPermissionSetArn(Aws::String &&value)
Definition: AccountAssignment.h:139
AWS_SSOADMIN_API
#define AWS_SSOADMIN_API
Definition: SSOAdmin_EXPORTS.h:28
Aws::SSOAdmin::Model::AccountAssignment::SetPrincipalId
void SetPrincipalId(const char *value)
Definition: AccountAssignment.h:229
Aws::SSOAdmin::Model::AccountAssignment::SetPermissionSetArn
void SetPermissionSetArn(Aws::String &&value)
Definition: AccountAssignment.h:115
Aws::SSOAdmin::Model::AccountAssignment::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: AccountAssignment.h:52
SSOAdmin_EXPORTS.h
Aws::SSOAdmin::Model::AccountAssignment::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: AccountAssignment.h:57
Aws::SSOAdmin::Model::AccountAssignment::WithPrincipalId
AccountAssignment & WithPrincipalId(Aws::String &&value)
Definition: AccountAssignment.h:249
Aws::SSOAdmin::Model::AccountAssignment::SetPrincipalId
void SetPrincipalId(const Aws::String &value)
Definition: AccountAssignment.h:209
Aws::SSOAdmin::Model::PrincipalType
PrincipalType
Definition: PrincipalType.h:17
Aws::SSOAdmin::Model::AccountAssignment::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SSOAdmin::Model::AccountAssignment::WithPrincipalType
AccountAssignment & WithPrincipalType(PrincipalType &&value)
Definition: AccountAssignment.h:178
Aws::SSOAdmin::Model::AccountAssignment::GetAccountId
const Aws::String & GetAccountId() const
Definition: AccountAssignment.h:47
Aws::SSOAdmin::Model::AccountAssignment::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: AccountAssignment.h:62
Aws::SSOAdmin::Model::AccountAssignment::WithPrincipalType
AccountAssignment & WithPrincipalType(const PrincipalType &value)
Definition: AccountAssignment.h:173
Aws::SSOAdmin::Model::AccountAssignment::GetPrincipalType
const PrincipalType & GetPrincipalType() const
Definition: AccountAssignment.h:153
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SSOAdmin::Model::AccountAssignment::SetPrincipalId
void SetPrincipalId(Aws::String &&value)
Definition: AccountAssignment.h:219
Aws::SSOAdmin::Model::AccountAssignment::PrincipalTypeHasBeenSet
bool PrincipalTypeHasBeenSet() const
Definition: AccountAssignment.h:158
Aws::SSOAdmin::Model::AccountAssignment::WithAccountId
AccountAssignment & WithAccountId(const Aws::String &value)
Definition: AccountAssignment.h:72
Aws::SSOAdmin::Model::AccountAssignment::AccountAssignment
AccountAssignment()
Aws::SSOAdmin::Model::AccountAssignment::GetPrincipalId
const Aws::String & GetPrincipalId() const
Definition: AccountAssignment.h:189
Aws::SSOAdmin::Model::AccountAssignment::GetPermissionSetArn
const Aws::String & GetPermissionSetArn() const
Definition: AccountAssignment.h:91
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::SSOAdmin::Model::AccountAssignment::PrincipalIdHasBeenSet
bool PrincipalIdHasBeenSet() const
Definition: AccountAssignment.h:199
Aws::SSOAdmin::Model::AccountAssignment::WithPermissionSetArn
AccountAssignment & WithPermissionSetArn(const Aws::String &value)
Definition: AccountAssignment.h:131
Aws::SSOAdmin::Model::AccountAssignment::WithPrincipalId
AccountAssignment & WithPrincipalId(const char *value)
Definition: AccountAssignment.h:259
Aws::SSOAdmin::Model::AccountAssignment
Definition: AccountAssignment.h:36
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSOAdmin::Model::AccountAssignment::WithAccountId
AccountAssignment & WithAccountId(const char *value)
Definition: AccountAssignment.h:82
Aws::SSOAdmin::Model::AccountAssignment::AccountAssignment
AccountAssignment(Aws::Utils::Json::JsonView jsonValue)
Aws::SSOAdmin::Model::AccountAssignment::operator=
AccountAssignment & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SSOAdmin::Model::AccountAssignment::WithAccountId
AccountAssignment & WithAccountId(Aws::String &&value)
Definition: AccountAssignment.h:77
Aws::SSOAdmin::Model::AccountAssignment::WithPermissionSetArn
AccountAssignment & WithPermissionSetArn(const char *value)
Definition: AccountAssignment.h:147