AWS SDK for C++  1.9.40
AWS SDK for C++
UpdateIAMPolicyAssignmentRequest.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 "UpdateIAMPolicyAssignment"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
42 
46  inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
47 
51  inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
52 
56  inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
57 
61  inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
62 
66  inline UpdateIAMPolicyAssignmentRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
67 
71  inline UpdateIAMPolicyAssignmentRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
72 
76  inline UpdateIAMPolicyAssignmentRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
77 
78 
83  inline const Aws::String& GetAssignmentName() const{ return m_assignmentName; }
84 
89  inline bool AssignmentNameHasBeenSet() const { return m_assignmentNameHasBeenSet; }
90 
95  inline void SetAssignmentName(const Aws::String& value) { m_assignmentNameHasBeenSet = true; m_assignmentName = value; }
96 
101  inline void SetAssignmentName(Aws::String&& value) { m_assignmentNameHasBeenSet = true; m_assignmentName = std::move(value); }
102 
107  inline void SetAssignmentName(const char* value) { m_assignmentNameHasBeenSet = true; m_assignmentName.assign(value); }
108 
113  inline UpdateIAMPolicyAssignmentRequest& WithAssignmentName(const Aws::String& value) { SetAssignmentName(value); return *this;}
114 
119  inline UpdateIAMPolicyAssignmentRequest& WithAssignmentName(Aws::String&& value) { SetAssignmentName(std::move(value)); return *this;}
120 
125  inline UpdateIAMPolicyAssignmentRequest& WithAssignmentName(const char* value) { SetAssignmentName(value); return *this;}
126 
127 
131  inline const Aws::String& GetNamespace() const{ return m_namespace; }
132 
136  inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
137 
141  inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
142 
146  inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); }
147 
151  inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
152 
156  inline UpdateIAMPolicyAssignmentRequest& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
157 
161  inline UpdateIAMPolicyAssignmentRequest& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;}
162 
166  inline UpdateIAMPolicyAssignmentRequest& WithNamespace(const char* value) { SetNamespace(value); return *this;}
167 
168 
177  inline const AssignmentStatus& GetAssignmentStatus() const{ return m_assignmentStatus; }
178 
187  inline bool AssignmentStatusHasBeenSet() const { return m_assignmentStatusHasBeenSet; }
188 
197  inline void SetAssignmentStatus(const AssignmentStatus& value) { m_assignmentStatusHasBeenSet = true; m_assignmentStatus = value; }
198 
207  inline void SetAssignmentStatus(AssignmentStatus&& value) { m_assignmentStatusHasBeenSet = true; m_assignmentStatus = std::move(value); }
208 
217  inline UpdateIAMPolicyAssignmentRequest& WithAssignmentStatus(const AssignmentStatus& value) { SetAssignmentStatus(value); return *this;}
218 
227  inline UpdateIAMPolicyAssignmentRequest& WithAssignmentStatus(AssignmentStatus&& value) { SetAssignmentStatus(std::move(value)); return *this;}
228 
229 
234  inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
235 
240  inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
241 
246  inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
247 
252  inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
253 
258  inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
259 
264  inline UpdateIAMPolicyAssignmentRequest& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
265 
270  inline UpdateIAMPolicyAssignmentRequest& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
271 
276  inline UpdateIAMPolicyAssignmentRequest& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
277 
278 
283  inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetIdentities() const{ return m_identities; }
284 
289  inline bool IdentitiesHasBeenSet() const { return m_identitiesHasBeenSet; }
290 
295  inline void SetIdentities(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_identitiesHasBeenSet = true; m_identities = value; }
296 
301  inline void SetIdentities(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_identitiesHasBeenSet = true; m_identities = std::move(value); }
302 
307  inline UpdateIAMPolicyAssignmentRequest& WithIdentities(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetIdentities(value); return *this;}
308 
313  inline UpdateIAMPolicyAssignmentRequest& WithIdentities(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetIdentities(std::move(value)); return *this;}
314 
319  inline UpdateIAMPolicyAssignmentRequest& AddIdentities(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, value); return *this; }
320 
325  inline UpdateIAMPolicyAssignmentRequest& AddIdentities(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_identitiesHasBeenSet = true; m_identities.emplace(std::move(key), value); return *this; }
326 
331  inline UpdateIAMPolicyAssignmentRequest& AddIdentities(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, std::move(value)); return *this; }
332 
337  inline UpdateIAMPolicyAssignmentRequest& AddIdentities(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_identitiesHasBeenSet = true; m_identities.emplace(std::move(key), std::move(value)); return *this; }
338 
343  inline UpdateIAMPolicyAssignmentRequest& AddIdentities(const char* key, Aws::Vector<Aws::String>&& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, std::move(value)); return *this; }
344 
349  inline UpdateIAMPolicyAssignmentRequest& AddIdentities(const char* key, const Aws::Vector<Aws::String>& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, value); return *this; }
350 
351  private:
352 
353  Aws::String m_awsAccountId;
354  bool m_awsAccountIdHasBeenSet;
355 
356  Aws::String m_assignmentName;
357  bool m_assignmentNameHasBeenSet;
358 
359  Aws::String m_namespace;
360  bool m_namespaceHasBeenSet;
361 
362  AssignmentStatus m_assignmentStatus;
363  bool m_assignmentStatusHasBeenSet;
364 
365  Aws::String m_policyArn;
366  bool m_policyArnHasBeenSet;
367 
369  bool m_identitiesHasBeenSet;
370  };
371 
372 } // namespace Model
373 } // namespace QuickSight
374 } // namespace Aws
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::SetNamespace
void SetNamespace(const char *value)
Definition: UpdateIAMPolicyAssignmentRequest.h:151
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::SetPolicyArn
void SetPolicyArn(Aws::String &&value)
Definition: UpdateIAMPolicyAssignmentRequest.h:252
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::WithPolicyArn
UpdateIAMPolicyAssignmentRequest & WithPolicyArn(Aws::String &&value)
Definition: UpdateIAMPolicyAssignmentRequest.h:270
QuickSight_EXPORTS.h
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::SetAssignmentName
void SetAssignmentName(const Aws::String &value)
Definition: UpdateIAMPolicyAssignmentRequest.h:95
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::WithPolicyArn
UpdateIAMPolicyAssignmentRequest & WithPolicyArn(const Aws::String &value)
Definition: UpdateIAMPolicyAssignmentRequest.h:264
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::WithAssignmentName
UpdateIAMPolicyAssignmentRequest & WithAssignmentName(const char *value)
Definition: UpdateIAMPolicyAssignmentRequest.h:125
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::WithNamespace
UpdateIAMPolicyAssignmentRequest & WithNamespace(const Aws::String &value)
Definition: UpdateIAMPolicyAssignmentRequest.h:156
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::GetAssignmentName
const Aws::String & GetAssignmentName() const
Definition: UpdateIAMPolicyAssignmentRequest.h:83
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::WithNamespace
UpdateIAMPolicyAssignmentRequest & WithNamespace(const char *value)
Definition: UpdateIAMPolicyAssignmentRequest.h:166
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::WithNamespace
UpdateIAMPolicyAssignmentRequest & WithNamespace(Aws::String &&value)
Definition: UpdateIAMPolicyAssignmentRequest.h:161
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::SetPolicyArn
void SetPolicyArn(const Aws::String &value)
Definition: UpdateIAMPolicyAssignmentRequest.h:246
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::AddIdentities
UpdateIAMPolicyAssignmentRequest & AddIdentities(const char *key, Aws::Vector< Aws::String > &&value)
Definition: UpdateIAMPolicyAssignmentRequest.h:343
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::GetAssignmentStatus
const AssignmentStatus & GetAssignmentStatus() const
Definition: UpdateIAMPolicyAssignmentRequest.h:177
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::WithAwsAccountId
UpdateIAMPolicyAssignmentRequest & WithAwsAccountId(const Aws::String &value)
Definition: UpdateIAMPolicyAssignmentRequest.h:66
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::SetNamespace
void SetNamespace(Aws::String &&value)
Definition: UpdateIAMPolicyAssignmentRequest.h:146
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateIAMPolicyAssignmentRequest.h:33
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest
Definition: UpdateIAMPolicyAssignmentRequest.h:25
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::SetAwsAccountId
void SetAwsAccountId(const char *value)
Definition: UpdateIAMPolicyAssignmentRequest.h:61
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::SetAssignmentName
void SetAssignmentName(Aws::String &&value)
Definition: UpdateIAMPolicyAssignmentRequest.h:101
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::GetNamespace
const Aws::String & GetNamespace() const
Definition: UpdateIAMPolicyAssignmentRequest.h:131
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::AddIdentities
UpdateIAMPolicyAssignmentRequest & AddIdentities(Aws::String &&key, const Aws::Vector< Aws::String > &value)
Definition: UpdateIAMPolicyAssignmentRequest.h:325
AWSVector.h
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::WithPolicyArn
UpdateIAMPolicyAssignmentRequest & WithPolicyArn(const char *value)
Definition: UpdateIAMPolicyAssignmentRequest.h:276
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::WithAssignmentStatus
UpdateIAMPolicyAssignmentRequest & WithAssignmentStatus(AssignmentStatus &&value)
Definition: UpdateIAMPolicyAssignmentRequest.h:227
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::AddIdentities
UpdateIAMPolicyAssignmentRequest & AddIdentities(Aws::String &&key, Aws::Vector< Aws::String > &&value)
Definition: UpdateIAMPolicyAssignmentRequest.h:337
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::SetAwsAccountId
void SetAwsAccountId(const Aws::String &value)
Definition: UpdateIAMPolicyAssignmentRequest.h:51
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::AddIdentities
UpdateIAMPolicyAssignmentRequest & AddIdentities(const Aws::String &key, Aws::Vector< Aws::String > &&value)
Definition: UpdateIAMPolicyAssignmentRequest.h:331
QuickSightRequest.h
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::GetIdentities
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetIdentities() const
Definition: UpdateIAMPolicyAssignmentRequest.h:283
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::GetPolicyArn
const Aws::String & GetPolicyArn() const
Definition: UpdateIAMPolicyAssignmentRequest.h:234
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::AssignmentNameHasBeenSet
bool AssignmentNameHasBeenSet() const
Definition: UpdateIAMPolicyAssignmentRequest.h:89
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::SetAssignmentStatus
void SetAssignmentStatus(AssignmentStatus &&value)
Definition: UpdateIAMPolicyAssignmentRequest.h:207
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::WithAssignmentStatus
UpdateIAMPolicyAssignmentRequest & WithAssignmentStatus(const AssignmentStatus &value)
Definition: UpdateIAMPolicyAssignmentRequest.h:217
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::SetAssignmentName
void SetAssignmentName(const char *value)
Definition: UpdateIAMPolicyAssignmentRequest.h:107
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::WithIdentities
UpdateIAMPolicyAssignmentRequest & WithIdentities(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: UpdateIAMPolicyAssignmentRequest.h:313
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::AssignmentStatusHasBeenSet
bool AssignmentStatusHasBeenSet() const
Definition: UpdateIAMPolicyAssignmentRequest.h:187
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::NamespaceHasBeenSet
bool NamespaceHasBeenSet() const
Definition: UpdateIAMPolicyAssignmentRequest.h:136
AWSString.h
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::WithAwsAccountId
UpdateIAMPolicyAssignmentRequest & WithAwsAccountId(Aws::String &&value)
Definition: UpdateIAMPolicyAssignmentRequest.h:71
AssignmentStatus.h
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::SetPolicyArn
void SetPolicyArn(const char *value)
Definition: UpdateIAMPolicyAssignmentRequest.h:258
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::PolicyArnHasBeenSet
bool PolicyArnHasBeenSet() const
Definition: UpdateIAMPolicyAssignmentRequest.h:240
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::SetAssignmentStatus
void SetAssignmentStatus(const AssignmentStatus &value)
Definition: UpdateIAMPolicyAssignmentRequest.h:197
Aws::QuickSight::Model::AssignmentStatus
AssignmentStatus
Definition: AssignmentStatus.h:17
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::WithAssignmentName
UpdateIAMPolicyAssignmentRequest & WithAssignmentName(Aws::String &&value)
Definition: UpdateIAMPolicyAssignmentRequest.h:119
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::SetIdentities
void SetIdentities(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: UpdateIAMPolicyAssignmentRequest.h:301
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::IdentitiesHasBeenSet
bool IdentitiesHasBeenSet() const
Definition: UpdateIAMPolicyAssignmentRequest.h:289
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::SetAwsAccountId
void SetAwsAccountId(Aws::String &&value)
Definition: UpdateIAMPolicyAssignmentRequest.h:56
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::WithAssignmentName
UpdateIAMPolicyAssignmentRequest & WithAssignmentName(const Aws::String &value)
Definition: UpdateIAMPolicyAssignmentRequest.h:113
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::SetNamespace
void SetNamespace(const Aws::String &value)
Definition: UpdateIAMPolicyAssignmentRequest.h:141
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::SetIdentities
void SetIdentities(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: UpdateIAMPolicyAssignmentRequest.h:295
AWS_QUICKSIGHT_API
#define AWS_QUICKSIGHT_API
Definition: QuickSight_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::WithIdentities
UpdateIAMPolicyAssignmentRequest & WithIdentities(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: UpdateIAMPolicyAssignmentRequest.h:307
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::AddIdentities
UpdateIAMPolicyAssignmentRequest & AddIdentities(const Aws::String &key, const Aws::Vector< Aws::String > &value)
Definition: UpdateIAMPolicyAssignmentRequest.h:319
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::GetAwsAccountId
const Aws::String & GetAwsAccountId() const
Definition: UpdateIAMPolicyAssignmentRequest.h:41
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::UpdateIAMPolicyAssignmentRequest
UpdateIAMPolicyAssignmentRequest()
AWSMap.h
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::AddIdentities
UpdateIAMPolicyAssignmentRequest & AddIdentities(const char *key, const Aws::Vector< Aws::String > &value)
Definition: UpdateIAMPolicyAssignmentRequest.h:349
Aws::QuickSight::QuickSightRequest
Definition: QuickSightRequest.h:17
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::AwsAccountIdHasBeenSet
bool AwsAccountIdHasBeenSet() const
Definition: UpdateIAMPolicyAssignmentRequest.h:46
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::QuickSight::Model::UpdateIAMPolicyAssignmentRequest::WithAwsAccountId
UpdateIAMPolicyAssignmentRequest & WithAwsAccountId(const char *value)
Definition: UpdateIAMPolicyAssignmentRequest.h:76