AWS SDK for C++  1.9.104
AWS SDK for C++
CreateAccountAssignmentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SSOAdmin
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateAccountAssignment"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
46  inline const Aws::String& GetInstanceArn() const{ return m_instanceArn; }
47 
55  inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
56 
64  inline void SetInstanceArn(const Aws::String& value) { m_instanceArnHasBeenSet = true; m_instanceArn = value; }
65 
73  inline void SetInstanceArn(Aws::String&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::move(value); }
74 
82  inline void SetInstanceArn(const char* value) { m_instanceArnHasBeenSet = true; m_instanceArn.assign(value); }
83 
91  inline CreateAccountAssignmentRequest& WithInstanceArn(const Aws::String& value) { SetInstanceArn(value); return *this;}
92 
100  inline CreateAccountAssignmentRequest& WithInstanceArn(Aws::String&& value) { SetInstanceArn(std::move(value)); return *this;}
101 
109  inline CreateAccountAssignmentRequest& WithInstanceArn(const char* value) { SetInstanceArn(value); return *this;}
110 
111 
116  inline const Aws::String& GetTargetId() const{ return m_targetId; }
117 
122  inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
123 
128  inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
129 
134  inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
135 
140  inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
141 
146  inline CreateAccountAssignmentRequest& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
147 
152  inline CreateAccountAssignmentRequest& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
153 
158  inline CreateAccountAssignmentRequest& WithTargetId(const char* value) { SetTargetId(value); return *this;}
159 
160 
164  inline const TargetType& GetTargetType() const{ return m_targetType; }
165 
169  inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
170 
174  inline void SetTargetType(const TargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
175 
179  inline void SetTargetType(TargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
180 
184  inline CreateAccountAssignmentRequest& WithTargetType(const TargetType& value) { SetTargetType(value); return *this;}
185 
189  inline CreateAccountAssignmentRequest& WithTargetType(TargetType&& value) { SetTargetType(std::move(value)); return *this;}
190 
191 
196  inline const Aws::String& GetPermissionSetArn() const{ return m_permissionSetArn; }
197 
202  inline bool PermissionSetArnHasBeenSet() const { return m_permissionSetArnHasBeenSet; }
203 
208  inline void SetPermissionSetArn(const Aws::String& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = value; }
209 
214  inline void SetPermissionSetArn(Aws::String&& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = std::move(value); }
215 
220  inline void SetPermissionSetArn(const char* value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn.assign(value); }
221 
226  inline CreateAccountAssignmentRequest& WithPermissionSetArn(const Aws::String& value) { SetPermissionSetArn(value); return *this;}
227 
232  inline CreateAccountAssignmentRequest& WithPermissionSetArn(Aws::String&& value) { SetPermissionSetArn(std::move(value)); return *this;}
233 
238  inline CreateAccountAssignmentRequest& WithPermissionSetArn(const char* value) { SetPermissionSetArn(value); return *this;}
239 
240 
244  inline const PrincipalType& GetPrincipalType() const{ return m_principalType; }
245 
249  inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
250 
254  inline void SetPrincipalType(const PrincipalType& value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
255 
259  inline void SetPrincipalType(PrincipalType&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); }
260 
264  inline CreateAccountAssignmentRequest& WithPrincipalType(const PrincipalType& value) { SetPrincipalType(value); return *this;}
265 
269  inline CreateAccountAssignmentRequest& WithPrincipalType(PrincipalType&& value) { SetPrincipalType(std::move(value)); return *this;}
270 
271 
280  inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
281 
290  inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
291 
300  inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
301 
310  inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
311 
320  inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
321 
330  inline CreateAccountAssignmentRequest& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
331 
340  inline CreateAccountAssignmentRequest& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
341 
350  inline CreateAccountAssignmentRequest& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
351 
352  private:
353 
354  Aws::String m_instanceArn;
355  bool m_instanceArnHasBeenSet;
356 
357  Aws::String m_targetId;
358  bool m_targetIdHasBeenSet;
359 
360  TargetType m_targetType;
361  bool m_targetTypeHasBeenSet;
362 
363  Aws::String m_permissionSetArn;
364  bool m_permissionSetArnHasBeenSet;
365 
366  PrincipalType m_principalType;
367  bool m_principalTypeHasBeenSet;
368 
369  Aws::String m_principalId;
370  bool m_principalIdHasBeenSet;
371  };
372 
373 } // namespace Model
374 } // namespace SSOAdmin
375 } // namespace Aws
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::SetPrincipalType
void SetPrincipalType(const PrincipalType &value)
Definition: CreateAccountAssignmentRequest.h:254
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::WithTargetId
CreateAccountAssignmentRequest & WithTargetId(const char *value)
Definition: CreateAccountAssignmentRequest.h:158
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::WithPrincipalId
CreateAccountAssignmentRequest & WithPrincipalId(Aws::String &&value)
Definition: CreateAccountAssignmentRequest.h:340
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::WithPrincipalId
CreateAccountAssignmentRequest & WithPrincipalId(const char *value)
Definition: CreateAccountAssignmentRequest.h:350
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::TargetIdHasBeenSet
bool TargetIdHasBeenSet() const
Definition: CreateAccountAssignmentRequest.h:122
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::PrincipalTypeHasBeenSet
bool PrincipalTypeHasBeenSet() const
Definition: CreateAccountAssignmentRequest.h:249
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest
Definition: CreateAccountAssignmentRequest.h:24
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::WithTargetType
CreateAccountAssignmentRequest & WithTargetType(const TargetType &value)
Definition: CreateAccountAssignmentRequest.h:184
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::SetTargetId
void SetTargetId(const char *value)
Definition: CreateAccountAssignmentRequest.h:140
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::SetPermissionSetArn
void SetPermissionSetArn(const char *value)
Definition: CreateAccountAssignmentRequest.h:220
PrincipalType.h
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::GetInstanceArn
const Aws::String & GetInstanceArn() const
Definition: CreateAccountAssignmentRequest.h:46
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::SetPermissionSetArn
void SetPermissionSetArn(Aws::String &&value)
Definition: CreateAccountAssignmentRequest.h:214
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::GetTargetType
const TargetType & GetTargetType() const
Definition: CreateAccountAssignmentRequest.h:164
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::SetPrincipalType
void SetPrincipalType(PrincipalType &&value)
Definition: CreateAccountAssignmentRequest.h:259
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::WithTargetId
CreateAccountAssignmentRequest & WithTargetId(Aws::String &&value)
Definition: CreateAccountAssignmentRequest.h:152
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::SetTargetId
void SetTargetId(const Aws::String &value)
Definition: CreateAccountAssignmentRequest.h:128
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::WithTargetId
CreateAccountAssignmentRequest & WithTargetId(const Aws::String &value)
Definition: CreateAccountAssignmentRequest.h:146
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::SetTargetId
void SetTargetId(Aws::String &&value)
Definition: CreateAccountAssignmentRequest.h:134
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::WithPrincipalType
CreateAccountAssignmentRequest & WithPrincipalType(PrincipalType &&value)
Definition: CreateAccountAssignmentRequest.h:269
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::SetTargetType
void SetTargetType(TargetType &&value)
Definition: CreateAccountAssignmentRequest.h:179
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::WithPermissionSetArn
CreateAccountAssignmentRequest & WithPermissionSetArn(const Aws::String &value)
Definition: CreateAccountAssignmentRequest.h:226
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::GetPermissionSetArn
const Aws::String & GetPermissionSetArn() const
Definition: CreateAccountAssignmentRequest.h:196
AWS_SSOADMIN_API
#define AWS_SSOADMIN_API
Definition: SSOAdmin_EXPORTS.h:28
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAccountAssignmentRequest.h:32
TargetType.h
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::SetPrincipalId
void SetPrincipalId(const Aws::String &value)
Definition: CreateAccountAssignmentRequest.h:300
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::WithInstanceArn
CreateAccountAssignmentRequest & WithInstanceArn(const Aws::String &value)
Definition: CreateAccountAssignmentRequest.h:91
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::SetPermissionSetArn
void SetPermissionSetArn(const Aws::String &value)
Definition: CreateAccountAssignmentRequest.h:208
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::InstanceArnHasBeenSet
bool InstanceArnHasBeenSet() const
Definition: CreateAccountAssignmentRequest.h:55
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::SetInstanceArn
void SetInstanceArn(const char *value)
Definition: CreateAccountAssignmentRequest.h:82
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::WithPrincipalId
CreateAccountAssignmentRequest & WithPrincipalId(const Aws::String &value)
Definition: CreateAccountAssignmentRequest.h:330
SSOAdmin_EXPORTS.h
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::WithInstanceArn
CreateAccountAssignmentRequest & WithInstanceArn(const char *value)
Definition: CreateAccountAssignmentRequest.h:109
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::WithPermissionSetArn
CreateAccountAssignmentRequest & WithPermissionSetArn(const char *value)
Definition: CreateAccountAssignmentRequest.h:238
Aws::SSOAdmin::Model::PrincipalType
PrincipalType
Definition: PrincipalType.h:17
Aws::SSOAdmin::SSOAdminRequest
Definition: SSOAdminRequest.h:17
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::WithTargetType
CreateAccountAssignmentRequest & WithTargetType(TargetType &&value)
Definition: CreateAccountAssignmentRequest.h:189
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::GetTargetId
const Aws::String & GetTargetId() const
Definition: CreateAccountAssignmentRequest.h:116
Aws::SSOAdmin::Model::TargetType
TargetType
Definition: TargetType.h:17
AWSString.h
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::PermissionSetArnHasBeenSet
bool PermissionSetArnHasBeenSet() const
Definition: CreateAccountAssignmentRequest.h:202
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::SetInstanceArn
void SetInstanceArn(const Aws::String &value)
Definition: CreateAccountAssignmentRequest.h:64
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::CreateAccountAssignmentRequest
CreateAccountAssignmentRequest()
SSOAdminRequest.h
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::SetPrincipalId
void SetPrincipalId(Aws::String &&value)
Definition: CreateAccountAssignmentRequest.h:310
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::SetInstanceArn
void SetInstanceArn(Aws::String &&value)
Definition: CreateAccountAssignmentRequest.h:73
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::WithPrincipalType
CreateAccountAssignmentRequest & WithPrincipalType(const PrincipalType &value)
Definition: CreateAccountAssignmentRequest.h:264
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::GetPrincipalId
const Aws::String & GetPrincipalId() const
Definition: CreateAccountAssignmentRequest.h:280
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::GetPrincipalType
const PrincipalType & GetPrincipalType() const
Definition: CreateAccountAssignmentRequest.h:244
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::SetPrincipalId
void SetPrincipalId(const char *value)
Definition: CreateAccountAssignmentRequest.h:320
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::WithPermissionSetArn
CreateAccountAssignmentRequest & WithPermissionSetArn(Aws::String &&value)
Definition: CreateAccountAssignmentRequest.h:232
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::WithInstanceArn
CreateAccountAssignmentRequest & WithInstanceArn(Aws::String &&value)
Definition: CreateAccountAssignmentRequest.h:100
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::TargetTypeHasBeenSet
bool TargetTypeHasBeenSet() const
Definition: CreateAccountAssignmentRequest.h:169
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::SetTargetType
void SetTargetType(const TargetType &value)
Definition: CreateAccountAssignmentRequest.h:174
Aws::SSOAdmin::Model::CreateAccountAssignmentRequest::PrincipalIdHasBeenSet
bool PrincipalIdHasBeenSet() const
Definition: CreateAccountAssignmentRequest.h:290