AWS SDK for C++  1.9.46
AWS SDK for C++
CreateIAMPolicyAssignmentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace QuickSight
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "CreateIAMPolicyAssignment"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
42  inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
43 
48  inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
49 
54  inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
55 
60  inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
61 
66  inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
67 
72  inline CreateIAMPolicyAssignmentRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
73 
78  inline CreateIAMPolicyAssignmentRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
79 
84  inline CreateIAMPolicyAssignmentRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
85 
86 
91  inline const Aws::String& GetAssignmentName() const{ return m_assignmentName; }
92 
97  inline bool AssignmentNameHasBeenSet() const { return m_assignmentNameHasBeenSet; }
98 
103  inline void SetAssignmentName(const Aws::String& value) { m_assignmentNameHasBeenSet = true; m_assignmentName = value; }
104 
109  inline void SetAssignmentName(Aws::String&& value) { m_assignmentNameHasBeenSet = true; m_assignmentName = std::move(value); }
110 
115  inline void SetAssignmentName(const char* value) { m_assignmentNameHasBeenSet = true; m_assignmentName.assign(value); }
116 
121  inline CreateIAMPolicyAssignmentRequest& WithAssignmentName(const Aws::String& value) { SetAssignmentName(value); return *this;}
122 
127  inline CreateIAMPolicyAssignmentRequest& WithAssignmentName(Aws::String&& value) { SetAssignmentName(std::move(value)); return *this;}
128 
133  inline CreateIAMPolicyAssignmentRequest& WithAssignmentName(const char* value) { SetAssignmentName(value); return *this;}
134 
135 
144  inline const AssignmentStatus& GetAssignmentStatus() const{ return m_assignmentStatus; }
145 
154  inline bool AssignmentStatusHasBeenSet() const { return m_assignmentStatusHasBeenSet; }
155 
164  inline void SetAssignmentStatus(const AssignmentStatus& value) { m_assignmentStatusHasBeenSet = true; m_assignmentStatus = value; }
165 
174  inline void SetAssignmentStatus(AssignmentStatus&& value) { m_assignmentStatusHasBeenSet = true; m_assignmentStatus = std::move(value); }
175 
184  inline CreateIAMPolicyAssignmentRequest& WithAssignmentStatus(const AssignmentStatus& value) { SetAssignmentStatus(value); return *this;}
185 
194  inline CreateIAMPolicyAssignmentRequest& WithAssignmentStatus(AssignmentStatus&& value) { SetAssignmentStatus(std::move(value)); return *this;}
195 
196 
201  inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
202 
207  inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
208 
213  inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
214 
219  inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
220 
225  inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
226 
231  inline CreateIAMPolicyAssignmentRequest& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
232 
237  inline CreateIAMPolicyAssignmentRequest& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
238 
243  inline CreateIAMPolicyAssignmentRequest& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
244 
245 
250  inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetIdentities() const{ return m_identities; }
251 
256  inline bool IdentitiesHasBeenSet() const { return m_identitiesHasBeenSet; }
257 
262  inline void SetIdentities(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_identitiesHasBeenSet = true; m_identities = value; }
263 
268  inline void SetIdentities(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_identitiesHasBeenSet = true; m_identities = std::move(value); }
269 
274  inline CreateIAMPolicyAssignmentRequest& WithIdentities(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetIdentities(value); return *this;}
275 
280  inline CreateIAMPolicyAssignmentRequest& WithIdentities(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetIdentities(std::move(value)); return *this;}
281 
286  inline CreateIAMPolicyAssignmentRequest& AddIdentities(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, value); return *this; }
287 
292  inline CreateIAMPolicyAssignmentRequest& AddIdentities(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_identitiesHasBeenSet = true; m_identities.emplace(std::move(key), value); return *this; }
293 
298  inline CreateIAMPolicyAssignmentRequest& AddIdentities(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, std::move(value)); return *this; }
299 
304  inline CreateIAMPolicyAssignmentRequest& AddIdentities(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_identitiesHasBeenSet = true; m_identities.emplace(std::move(key), std::move(value)); return *this; }
305 
310  inline CreateIAMPolicyAssignmentRequest& AddIdentities(const char* key, Aws::Vector<Aws::String>&& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, std::move(value)); return *this; }
311 
316  inline CreateIAMPolicyAssignmentRequest& AddIdentities(const char* key, const Aws::Vector<Aws::String>& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, value); return *this; }
317 
318 
322  inline const Aws::String& GetNamespace() const{ return m_namespace; }
323 
327  inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
328 
332  inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
333 
337  inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
338 
342  inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
343 
347  inline CreateIAMPolicyAssignmentRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
348 
352  inline CreateIAMPolicyAssignmentRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
353 
357  inline CreateIAMPolicyAssignmentRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
358 
359  private:
360 
361  Aws::String m_awsAccountId;
362  bool m_awsAccountIdHasBeenSet;
363 
364  Aws::String m_assignmentName;
365  bool m_assignmentNameHasBeenSet;
366 
367  AssignmentStatus m_assignmentStatus;
368  bool m_assignmentStatusHasBeenSet;
369 
370  Aws::String m_policyArn;
371  bool m_policyArnHasBeenSet;
372 
374  bool m_identitiesHasBeenSet;
375 
376  Aws::String m_namespace;
377  bool m_namespaceHasBeenSet;
378  };
379 
380 } // namespace Model
381 } // namespace QuickSight
382 } // namespace Aws
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::WithIdentities
CreateIAMPolicyAssignmentRequest & WithIdentities(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: CreateIAMPolicyAssignmentRequest.h:274
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::WithPolicyArn
CreateIAMPolicyAssignmentRequest & WithPolicyArn(Aws::String &&value)
Definition: CreateIAMPolicyAssignmentRequest.h:237
QuickSight_EXPORTS.h
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::WithAwsAccountId
CreateIAMPolicyAssignmentRequest & WithAwsAccountId(const Aws::String &value)
Definition: CreateIAMPolicyAssignmentRequest.h:72
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest
Definition: CreateIAMPolicyAssignmentRequest.h:25
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::SetIdentities
void SetIdentities(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: CreateIAMPolicyAssignmentRequest.h:268
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::AddIdentities
CreateIAMPolicyAssignmentRequest & AddIdentities(const Aws::String &key, Aws::Vector< Aws::String > &&value)
Definition: CreateIAMPolicyAssignmentRequest.h:298
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::SetAwsAccountId
void SetAwsAccountId(Aws::String &&value)
Definition: CreateIAMPolicyAssignmentRequest.h:60
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::AddIdentities
CreateIAMPolicyAssignmentRequest & AddIdentities(const char *key, const Aws::Vector< Aws::String > &value)
Definition: CreateIAMPolicyAssignmentRequest.h:316
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::SetNamespace
void SetNamespace(const Aws::String &value)
Definition: CreateIAMPolicyAssignmentRequest.h:332
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::SetIdentities
void SetIdentities(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: CreateIAMPolicyAssignmentRequest.h:262
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::WithAwsAccountId
CreateIAMPolicyAssignmentRequest & WithAwsAccountId(const char *value)
Definition: CreateIAMPolicyAssignmentRequest.h:84
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::WithAssignmentStatus
CreateIAMPolicyAssignmentRequest & WithAssignmentStatus(const AssignmentStatus &value)
Definition: CreateIAMPolicyAssignmentRequest.h:184
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::SetAssignmentName
void SetAssignmentName(Aws::String &&value)
Definition: CreateIAMPolicyAssignmentRequest.h:109
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::WithAssignmentStatus
CreateIAMPolicyAssignmentRequest & WithAssignmentStatus(AssignmentStatus &&value)
Definition: CreateIAMPolicyAssignmentRequest.h:194
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::SetAwsAccountId
void SetAwsAccountId(const char *value)
Definition: CreateIAMPolicyAssignmentRequest.h:66
AWSVector.h
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::SetPolicyArn
void SetPolicyArn(Aws::String &&value)
Definition: CreateIAMPolicyAssignmentRequest.h:219
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::AddIdentities
CreateIAMPolicyAssignmentRequest & AddIdentities(Aws::String &&key, Aws::Vector< Aws::String > &&value)
Definition: CreateIAMPolicyAssignmentRequest.h:304
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::AddIdentities
CreateIAMPolicyAssignmentRequest & AddIdentities(Aws::String &&key, const Aws::Vector< Aws::String > &value)
Definition: CreateIAMPolicyAssignmentRequest.h:292
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::SetAssignmentStatus
void SetAssignmentStatus(const AssignmentStatus &value)
Definition: CreateIAMPolicyAssignmentRequest.h:164
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::SetAssignmentName
void SetAssignmentName(const Aws::String &value)
Definition: CreateIAMPolicyAssignmentRequest.h:103
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateIAMPolicyAssignmentRequest.h:33
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::SetPolicyArn
void SetPolicyArn(const char *value)
Definition: CreateIAMPolicyAssignmentRequest.h:225
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::SetPolicyArn
void SetPolicyArn(const Aws::String &value)
Definition: CreateIAMPolicyAssignmentRequest.h:213
QuickSightRequest.h
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::WithAssignmentName
CreateIAMPolicyAssignmentRequest & WithAssignmentName(Aws::String &&value)
Definition: CreateIAMPolicyAssignmentRequest.h:127
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::SetNamespace
void SetNamespace(Aws::String &&value)
Definition: CreateIAMPolicyAssignmentRequest.h:337
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::GetIdentities
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetIdentities() const
Definition: CreateIAMPolicyAssignmentRequest.h:250
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::WithNamespace
CreateIAMPolicyAssignmentRequest & WithNamespace(const Aws::String &value)
Definition: CreateIAMPolicyAssignmentRequest.h:347
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::WithAssignmentName
CreateIAMPolicyAssignmentRequest & WithAssignmentName(const char *value)
Definition: CreateIAMPolicyAssignmentRequest.h:133
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::SetNamespace
void SetNamespace(const char *value)
Definition: CreateIAMPolicyAssignmentRequest.h:342
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::AssignmentNameHasBeenSet
bool AssignmentNameHasBeenSet() const
Definition: CreateIAMPolicyAssignmentRequest.h:97
AWSString.h
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::GetAssignmentName
const Aws::String & GetAssignmentName() const
Definition: CreateIAMPolicyAssignmentRequest.h:91
AssignmentStatus.h
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::PolicyArnHasBeenSet
bool PolicyArnHasBeenSet() const
Definition: CreateIAMPolicyAssignmentRequest.h:207
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::SetAssignmentStatus
void SetAssignmentStatus(AssignmentStatus &&value)
Definition: CreateIAMPolicyAssignmentRequest.h:174
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::IdentitiesHasBeenSet
bool IdentitiesHasBeenSet() const
Definition: CreateIAMPolicyAssignmentRequest.h:256
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::AddIdentities
CreateIAMPolicyAssignmentRequest & AddIdentities(const Aws::String &key, const Aws::Vector< Aws::String > &value)
Definition: CreateIAMPolicyAssignmentRequest.h:286
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::CreateIAMPolicyAssignmentRequest
CreateIAMPolicyAssignmentRequest()
Aws::QuickSight::Model::AssignmentStatus
AssignmentStatus
Definition: AssignmentStatus.h:17
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::WithIdentities
CreateIAMPolicyAssignmentRequest & WithIdentities(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: CreateIAMPolicyAssignmentRequest.h:280
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::WithNamespace
CreateIAMPolicyAssignmentRequest & WithNamespace(Aws::String &&value)
Definition: CreateIAMPolicyAssignmentRequest.h:352
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::WithAssignmentName
CreateIAMPolicyAssignmentRequest & WithAssignmentName(const Aws::String &value)
Definition: CreateIAMPolicyAssignmentRequest.h:121
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::GetAssignmentStatus
const AssignmentStatus & GetAssignmentStatus() const
Definition: CreateIAMPolicyAssignmentRequest.h:144
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::GetAwsAccountId
const Aws::String & GetAwsAccountId() const
Definition: CreateIAMPolicyAssignmentRequest.h:42
AWS_QUICKSIGHT_API
#define AWS_QUICKSIGHT_API
Definition: QuickSight_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::WithPolicyArn
CreateIAMPolicyAssignmentRequest & WithPolicyArn(const char *value)
Definition: CreateIAMPolicyAssignmentRequest.h:243
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::NamespaceHasBeenSet
bool NamespaceHasBeenSet() const
Definition: CreateIAMPolicyAssignmentRequest.h:327
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::AssignmentStatusHasBeenSet
bool AssignmentStatusHasBeenSet() const
Definition: CreateIAMPolicyAssignmentRequest.h:154
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::GetPolicyArn
const Aws::String & GetPolicyArn() const
Definition: CreateIAMPolicyAssignmentRequest.h:201
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::GetNamespace
const Aws::String & GetNamespace() const
Definition: CreateIAMPolicyAssignmentRequest.h:322
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::SetAwsAccountId
void SetAwsAccountId(const Aws::String &value)
Definition: CreateIAMPolicyAssignmentRequest.h:54
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::AddIdentities
CreateIAMPolicyAssignmentRequest & AddIdentities(const char *key, Aws::Vector< Aws::String > &&value)
Definition: CreateIAMPolicyAssignmentRequest.h:310
AWSMap.h
Aws::QuickSight::QuickSightRequest
Definition: QuickSightRequest.h:17
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::WithNamespace
CreateIAMPolicyAssignmentRequest & WithNamespace(const char *value)
Definition: CreateIAMPolicyAssignmentRequest.h:357
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::WithPolicyArn
CreateIAMPolicyAssignmentRequest & WithPolicyArn(const Aws::String &value)
Definition: CreateIAMPolicyAssignmentRequest.h:231
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::SetAssignmentName
void SetAssignmentName(const char *value)
Definition: CreateIAMPolicyAssignmentRequest.h:115
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::WithAwsAccountId
CreateIAMPolicyAssignmentRequest & WithAwsAccountId(Aws::String &&value)
Definition: CreateIAMPolicyAssignmentRequest.h:78
Aws::QuickSight::Model::CreateIAMPolicyAssignmentRequest::AwsAccountIdHasBeenSet
bool AwsAccountIdHasBeenSet() const
Definition: CreateIAMPolicyAssignmentRequest.h:48