AWS SDK for C++  1.9.154
AWS SDK for C++
IAMPolicyAssignment.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace QuickSight
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
48 
52  inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
53 
57  inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
58 
62  inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
63 
67  inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
68 
72  inline IAMPolicyAssignment& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
73 
77  inline IAMPolicyAssignment& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
78 
82  inline IAMPolicyAssignment& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
83 
84 
88  inline const Aws::String& GetAssignmentId() const{ return m_assignmentId; }
89 
93  inline bool AssignmentIdHasBeenSet() const { return m_assignmentIdHasBeenSet; }
94 
98  inline void SetAssignmentId(const Aws::String& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = value; }
99 
103  inline void SetAssignmentId(Aws::String&& value) { m_assignmentIdHasBeenSet = true; m_assignmentId = std::move(value); }
104 
108  inline void SetAssignmentId(const char* value) { m_assignmentIdHasBeenSet = true; m_assignmentId.assign(value); }
109 
113  inline IAMPolicyAssignment& WithAssignmentId(const Aws::String& value) { SetAssignmentId(value); return *this;}
114 
118  inline IAMPolicyAssignment& WithAssignmentId(Aws::String&& value) { SetAssignmentId(std::move(value)); return *this;}
119 
123  inline IAMPolicyAssignment& WithAssignmentId(const char* value) { SetAssignmentId(value); return *this;}
124 
125 
129  inline const Aws::String& GetAssignmentName() const{ return m_assignmentName; }
130 
134  inline bool AssignmentNameHasBeenSet() const { return m_assignmentNameHasBeenSet; }
135 
139  inline void SetAssignmentName(const Aws::String& value) { m_assignmentNameHasBeenSet = true; m_assignmentName = value; }
140 
144  inline void SetAssignmentName(Aws::String&& value) { m_assignmentNameHasBeenSet = true; m_assignmentName = std::move(value); }
145 
149  inline void SetAssignmentName(const char* value) { m_assignmentNameHasBeenSet = true; m_assignmentName.assign(value); }
150 
154  inline IAMPolicyAssignment& WithAssignmentName(const Aws::String& value) { SetAssignmentName(value); return *this;}
155 
159  inline IAMPolicyAssignment& WithAssignmentName(Aws::String&& value) { SetAssignmentName(std::move(value)); return *this;}
160 
164  inline IAMPolicyAssignment& WithAssignmentName(const char* value) { SetAssignmentName(value); return *this;}
165 
166 
170  inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
171 
175  inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
176 
180  inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
181 
185  inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
186 
190  inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
191 
195  inline IAMPolicyAssignment& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
196 
200  inline IAMPolicyAssignment& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
201 
205  inline IAMPolicyAssignment& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
206 
207 
211  inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetIdentities() const{ return m_identities; }
212 
216  inline bool IdentitiesHasBeenSet() const { return m_identitiesHasBeenSet; }
217 
221  inline void SetIdentities(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_identitiesHasBeenSet = true; m_identities = value; }
222 
226  inline void SetIdentities(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_identitiesHasBeenSet = true; m_identities = std::move(value); }
227 
231  inline IAMPolicyAssignment& WithIdentities(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { SetIdentities(value); return *this;}
232 
236  inline IAMPolicyAssignment& WithIdentities(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { SetIdentities(std::move(value)); return *this;}
237 
241  inline IAMPolicyAssignment& AddIdentities(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, value); return *this; }
242 
246  inline IAMPolicyAssignment& AddIdentities(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_identitiesHasBeenSet = true; m_identities.emplace(std::move(key), value); return *this; }
247 
251  inline IAMPolicyAssignment& AddIdentities(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, std::move(value)); return *this; }
252 
256  inline IAMPolicyAssignment& AddIdentities(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_identitiesHasBeenSet = true; m_identities.emplace(std::move(key), std::move(value)); return *this; }
257 
261  inline IAMPolicyAssignment& AddIdentities(const char* key, Aws::Vector<Aws::String>&& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, std::move(value)); return *this; }
262 
266  inline IAMPolicyAssignment& AddIdentities(const char* key, const Aws::Vector<Aws::String>& value) { m_identitiesHasBeenSet = true; m_identities.emplace(key, value); return *this; }
267 
268 
272  inline const AssignmentStatus& GetAssignmentStatus() const{ return m_assignmentStatus; }
273 
277  inline bool AssignmentStatusHasBeenSet() const { return m_assignmentStatusHasBeenSet; }
278 
282  inline void SetAssignmentStatus(const AssignmentStatus& value) { m_assignmentStatusHasBeenSet = true; m_assignmentStatus = value; }
283 
287  inline void SetAssignmentStatus(AssignmentStatus&& value) { m_assignmentStatusHasBeenSet = true; m_assignmentStatus = std::move(value); }
288 
292  inline IAMPolicyAssignment& WithAssignmentStatus(const AssignmentStatus& value) { SetAssignmentStatus(value); return *this;}
293 
297  inline IAMPolicyAssignment& WithAssignmentStatus(AssignmentStatus&& value) { SetAssignmentStatus(std::move(value)); return *this;}
298 
299  private:
300 
301  Aws::String m_awsAccountId;
302  bool m_awsAccountIdHasBeenSet;
303 
304  Aws::String m_assignmentId;
305  bool m_assignmentIdHasBeenSet;
306 
307  Aws::String m_assignmentName;
308  bool m_assignmentNameHasBeenSet;
309 
310  Aws::String m_policyArn;
311  bool m_policyArnHasBeenSet;
312 
314  bool m_identitiesHasBeenSet;
315 
316  AssignmentStatus m_assignmentStatus;
317  bool m_assignmentStatusHasBeenSet;
318  };
319 
320 } // namespace Model
321 } // namespace QuickSight
322 } // namespace Aws
Aws::QuickSight::Model::IAMPolicyAssignment::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::QuickSight::Model::IAMPolicyAssignment::AddIdentities
IAMPolicyAssignment & AddIdentities(const Aws::String &key, const Aws::Vector< Aws::String > &value)
Definition: IAMPolicyAssignment.h:241
Aws::QuickSight::Model::IAMPolicyAssignment::WithAssignmentName
IAMPolicyAssignment & WithAssignmentName(Aws::String &&value)
Definition: IAMPolicyAssignment.h:159
QuickSight_EXPORTS.h
Aws::QuickSight::Model::IAMPolicyAssignment::WithPolicyArn
IAMPolicyAssignment & WithPolicyArn(Aws::String &&value)
Definition: IAMPolicyAssignment.h:200
Aws::QuickSight::Model::IAMPolicyAssignment::WithPolicyArn
IAMPolicyAssignment & WithPolicyArn(const Aws::String &value)
Definition: IAMPolicyAssignment.h:195
Aws::QuickSight::Model::IAMPolicyAssignment::WithIdentities
IAMPolicyAssignment & WithIdentities(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: IAMPolicyAssignment.h:231
Aws::QuickSight::Model::IAMPolicyAssignment::SetPolicyArn
void SetPolicyArn(Aws::String &&value)
Definition: IAMPolicyAssignment.h:185
Aws::QuickSight::Model::IAMPolicyAssignment::WithAssignmentId
IAMPolicyAssignment & WithAssignmentId(const Aws::String &value)
Definition: IAMPolicyAssignment.h:113
Aws::QuickSight::Model::IAMPolicyAssignment::AddIdentities
IAMPolicyAssignment & AddIdentities(Aws::String &&key, const Aws::Vector< Aws::String > &value)
Definition: IAMPolicyAssignment.h:246
Aws::QuickSight::Model::IAMPolicyAssignment::AssignmentIdHasBeenSet
bool AssignmentIdHasBeenSet() const
Definition: IAMPolicyAssignment.h:93
Aws::QuickSight::Model::IAMPolicyAssignment::WithAssignmentName
IAMPolicyAssignment & WithAssignmentName(const Aws::String &value)
Definition: IAMPolicyAssignment.h:154
Aws::QuickSight::Model::IAMPolicyAssignment::IAMPolicyAssignment
IAMPolicyAssignment()
Aws::QuickSight::Model::IAMPolicyAssignment::PolicyArnHasBeenSet
bool PolicyArnHasBeenSet() const
Definition: IAMPolicyAssignment.h:175
Aws::QuickSight::Model::IAMPolicyAssignment::SetAssignmentName
void SetAssignmentName(Aws::String &&value)
Definition: IAMPolicyAssignment.h:144
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::QuickSight::Model::IAMPolicyAssignment::SetPolicyArn
void SetPolicyArn(const Aws::String &value)
Definition: IAMPolicyAssignment.h:180
Aws::QuickSight::Model::IAMPolicyAssignment::SetAssignmentId
void SetAssignmentId(Aws::String &&value)
Definition: IAMPolicyAssignment.h:103
AWSVector.h
Aws::QuickSight::Model::IAMPolicyAssignment::SetAssignmentId
void SetAssignmentId(const Aws::String &value)
Definition: IAMPolicyAssignment.h:98
Aws::QuickSight::Model::IAMPolicyAssignment::AwsAccountIdHasBeenSet
bool AwsAccountIdHasBeenSet() const
Definition: IAMPolicyAssignment.h:52
Aws::QuickSight::Model::IAMPolicyAssignment::GetAwsAccountId
const Aws::String & GetAwsAccountId() const
Definition: IAMPolicyAssignment.h:47
Aws::QuickSight::Model::IAMPolicyAssignment::AddIdentities
IAMPolicyAssignment & AddIdentities(Aws::String &&key, Aws::Vector< Aws::String > &&value)
Definition: IAMPolicyAssignment.h:256
Aws::QuickSight::Model::IAMPolicyAssignment::GetAssignmentName
const Aws::String & GetAssignmentName() const
Definition: IAMPolicyAssignment.h:129
Aws::QuickSight::Model::IAMPolicyAssignment::SetAwsAccountId
void SetAwsAccountId(Aws::String &&value)
Definition: IAMPolicyAssignment.h:62
Aws::QuickSight::Model::IAMPolicyAssignment::SetIdentities
void SetIdentities(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: IAMPolicyAssignment.h:226
Aws::QuickSight::Model::IAMPolicyAssignment::WithAwsAccountId
IAMPolicyAssignment & WithAwsAccountId(Aws::String &&value)
Definition: IAMPolicyAssignment.h:77
Aws::QuickSight::Model::IAMPolicyAssignment::SetAssignmentName
void SetAssignmentName(const char *value)
Definition: IAMPolicyAssignment.h:149
Aws::QuickSight::Model::IAMPolicyAssignment::WithAssignmentStatus
IAMPolicyAssignment & WithAssignmentStatus(const AssignmentStatus &value)
Definition: IAMPolicyAssignment.h:292
Aws::QuickSight::Model::IAMPolicyAssignment::AddIdentities
IAMPolicyAssignment & AddIdentities(const Aws::String &key, Aws::Vector< Aws::String > &&value)
Definition: IAMPolicyAssignment.h:251
Aws::QuickSight::Model::IAMPolicyAssignment::WithAssignmentId
IAMPolicyAssignment & WithAssignmentId(Aws::String &&value)
Definition: IAMPolicyAssignment.h:118
Aws::QuickSight::Model::IAMPolicyAssignment::operator=
IAMPolicyAssignment & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::QuickSight::Model::IAMPolicyAssignment::WithIdentities
IAMPolicyAssignment & WithIdentities(Aws::Map< Aws::String, Aws::Vector< Aws::String >> &&value)
Definition: IAMPolicyAssignment.h:236
AssignmentStatus.h
Aws::QuickSight::Model::IAMPolicyAssignment::SetPolicyArn
void SetPolicyArn(const char *value)
Definition: IAMPolicyAssignment.h:190
Aws::QuickSight::Model::IAMPolicyAssignment::GetAssignmentId
const Aws::String & GetAssignmentId() const
Definition: IAMPolicyAssignment.h:88
Aws::QuickSight::Model::IAMPolicyAssignment::WithAssignmentId
IAMPolicyAssignment & WithAssignmentId(const char *value)
Definition: IAMPolicyAssignment.h:123
Aws::QuickSight::Model::IAMPolicyAssignment::SetAwsAccountId
void SetAwsAccountId(const Aws::String &value)
Definition: IAMPolicyAssignment.h:57
Aws::QuickSight::Model::AssignmentStatus
AssignmentStatus
Definition: AssignmentStatus.h:17
Aws::QuickSight::Model::IAMPolicyAssignment::SetAssignmentStatus
void SetAssignmentStatus(const AssignmentStatus &value)
Definition: IAMPolicyAssignment.h:282
Aws::QuickSight::Model::IAMPolicyAssignment::AssignmentStatusHasBeenSet
bool AssignmentStatusHasBeenSet() const
Definition: IAMPolicyAssignment.h:277
Aws::QuickSight::Model::IAMPolicyAssignment::WithPolicyArn
IAMPolicyAssignment & WithPolicyArn(const char *value)
Definition: IAMPolicyAssignment.h:205
Aws::QuickSight::Model::IAMPolicyAssignment::GetIdentities
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetIdentities() const
Definition: IAMPolicyAssignment.h:211
Aws::QuickSight::Model::IAMPolicyAssignment::IAMPolicyAssignment
IAMPolicyAssignment(Aws::Utils::Json::JsonView jsonValue)
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
AWS_QUICKSIGHT_API
#define AWS_QUICKSIGHT_API
Definition: QuickSight_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::QuickSight::Model::IAMPolicyAssignment::WithAssignmentName
IAMPolicyAssignment & WithAssignmentName(const char *value)
Definition: IAMPolicyAssignment.h:164
Aws::QuickSight::Model::IAMPolicyAssignment::GetAssignmentStatus
const AssignmentStatus & GetAssignmentStatus() const
Definition: IAMPolicyAssignment.h:272
Aws::QuickSight::Model::IAMPolicyAssignment::SetAwsAccountId
void SetAwsAccountId(const char *value)
Definition: IAMPolicyAssignment.h:67
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::QuickSight::Model::IAMPolicyAssignment::AddIdentities
IAMPolicyAssignment & AddIdentities(const char *key, const Aws::Vector< Aws::String > &value)
Definition: IAMPolicyAssignment.h:266
Aws::QuickSight::Model::IAMPolicyAssignment::SetAssignmentStatus
void SetAssignmentStatus(AssignmentStatus &&value)
Definition: IAMPolicyAssignment.h:287
Aws::QuickSight::Model::IAMPolicyAssignment::SetAssignmentName
void SetAssignmentName(const Aws::String &value)
Definition: IAMPolicyAssignment.h:139
Aws::QuickSight::Model::IAMPolicyAssignment::WithAwsAccountId
IAMPolicyAssignment & WithAwsAccountId(const char *value)
Definition: IAMPolicyAssignment.h:82
Aws::QuickSight::Model::IAMPolicyAssignment::AddIdentities
IAMPolicyAssignment & AddIdentities(const char *key, Aws::Vector< Aws::String > &&value)
Definition: IAMPolicyAssignment.h:261
Aws::QuickSight::Model::IAMPolicyAssignment::GetPolicyArn
const Aws::String & GetPolicyArn() const
Definition: IAMPolicyAssignment.h:170
AWSMap.h
Aws::QuickSight::Model::IAMPolicyAssignment
Definition: IAMPolicyAssignment.h:36
Aws::QuickSight::Model::IAMPolicyAssignment::AssignmentNameHasBeenSet
bool AssignmentNameHasBeenSet() const
Definition: IAMPolicyAssignment.h:134
Aws::QuickSight::Model::IAMPolicyAssignment::SetIdentities
void SetIdentities(const Aws::Map< Aws::String, Aws::Vector< Aws::String >> &value)
Definition: IAMPolicyAssignment.h:221
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::QuickSight::Model::IAMPolicyAssignment::IdentitiesHasBeenSet
bool IdentitiesHasBeenSet() const
Definition: IAMPolicyAssignment.h:216
Aws::QuickSight::Model::IAMPolicyAssignment::WithAwsAccountId
IAMPolicyAssignment & WithAwsAccountId(const Aws::String &value)
Definition: IAMPolicyAssignment.h:72
Aws::QuickSight::Model::IAMPolicyAssignment::WithAssignmentStatus
IAMPolicyAssignment & WithAssignmentStatus(AssignmentStatus &&value)
Definition: IAMPolicyAssignment.h:297
Aws::QuickSight::Model::IAMPolicyAssignment::SetAssignmentId
void SetAssignmentId(const char *value)
Definition: IAMPolicyAssignment.h:108