AWS SDK for C++  1.9.126
AWS SDK for C++
PutPrincipalMappingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace kendra
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "PutPrincipalMapping"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetIndexId() const{ return m_indexId; }
42 
46  inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
47 
51  inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; }
52 
56  inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); }
57 
61  inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); }
62 
66  inline PutPrincipalMappingRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;}
67 
71  inline PutPrincipalMappingRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;}
72 
76  inline PutPrincipalMappingRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;}
77 
78 
88  inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; }
89 
99  inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
100 
110  inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; }
111 
121  inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); }
122 
132  inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); }
133 
143  inline PutPrincipalMappingRequest& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;}
144 
154  inline PutPrincipalMappingRequest& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;}
155 
165  inline PutPrincipalMappingRequest& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;}
166 
167 
171  inline const Aws::String& GetGroupId() const{ return m_groupId; }
172 
176  inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
177 
181  inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
182 
186  inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
187 
191  inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
192 
196  inline PutPrincipalMappingRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
197 
201  inline PutPrincipalMappingRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
202 
206  inline PutPrincipalMappingRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
207 
208 
218  inline const GroupMembers& GetGroupMembers() const{ return m_groupMembers; }
219 
229  inline bool GroupMembersHasBeenSet() const { return m_groupMembersHasBeenSet; }
230 
240  inline void SetGroupMembers(const GroupMembers& value) { m_groupMembersHasBeenSet = true; m_groupMembers = value; }
241 
251  inline void SetGroupMembers(GroupMembers&& value) { m_groupMembersHasBeenSet = true; m_groupMembers = std::move(value); }
252 
262  inline PutPrincipalMappingRequest& WithGroupMembers(const GroupMembers& value) { SetGroupMembers(value); return *this;}
263 
273  inline PutPrincipalMappingRequest& WithGroupMembers(GroupMembers&& value) { SetGroupMembers(std::move(value)); return *this;}
274 
275 
290  inline long long GetOrderingId() const{ return m_orderingId; }
291 
306  inline bool OrderingIdHasBeenSet() const { return m_orderingIdHasBeenSet; }
307 
322  inline void SetOrderingId(long long value) { m_orderingIdHasBeenSet = true; m_orderingId = value; }
323 
338  inline PutPrincipalMappingRequest& WithOrderingId(long long value) { SetOrderingId(value); return *this;}
339 
340 
348  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
349 
357  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
358 
366  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
367 
375  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
376 
384  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
385 
393  inline PutPrincipalMappingRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
394 
402  inline PutPrincipalMappingRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
403 
411  inline PutPrincipalMappingRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
412 
413  private:
414 
415  Aws::String m_indexId;
416  bool m_indexIdHasBeenSet;
417 
418  Aws::String m_dataSourceId;
419  bool m_dataSourceIdHasBeenSet;
420 
421  Aws::String m_groupId;
422  bool m_groupIdHasBeenSet;
423 
424  GroupMembers m_groupMembers;
425  bool m_groupMembersHasBeenSet;
426 
427  long long m_orderingId;
428  bool m_orderingIdHasBeenSet;
429 
430  Aws::String m_roleArn;
431  bool m_roleArnHasBeenSet;
432  };
433 
434 } // namespace Model
435 } // namespace kendra
436 } // namespace Aws
Aws::kendra::KendraRequest
Definition: KendraRequest.h:17
Aws::kendra::Model::PutPrincipalMappingRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: PutPrincipalMappingRequest.h:348
Aws::kendra::Model::PutPrincipalMappingRequest::GetIndexId
const Aws::String & GetIndexId() const
Definition: PutPrincipalMappingRequest.h:41
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::kendra::Model::PutPrincipalMappingRequest::WithIndexId
PutPrincipalMappingRequest & WithIndexId(const char *value)
Definition: PutPrincipalMappingRequest.h:76
Aws::kendra::Model::PutPrincipalMappingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutPrincipalMappingRequest.h:31
Aws::kendra::Model::PutPrincipalMappingRequest::GroupMembersHasBeenSet
bool GroupMembersHasBeenSet() const
Definition: PutPrincipalMappingRequest.h:229
Aws::kendra::Model::PutPrincipalMappingRequest::GroupIdHasBeenSet
bool GroupIdHasBeenSet() const
Definition: PutPrincipalMappingRequest.h:176
Aws::kendra::Model::PutPrincipalMappingRequest::WithOrderingId
PutPrincipalMappingRequest & WithOrderingId(long long value)
Definition: PutPrincipalMappingRequest.h:338
Aws::kendra::Model::PutPrincipalMappingRequest::WithIndexId
PutPrincipalMappingRequest & WithIndexId(Aws::String &&value)
Definition: PutPrincipalMappingRequest.h:71
KendraRequest.h
Aws::kendra::Model::PutPrincipalMappingRequest::WithGroupId
PutPrincipalMappingRequest & WithGroupId(Aws::String &&value)
Definition: PutPrincipalMappingRequest.h:201
GroupMembers.h
Aws::kendra::Model::PutPrincipalMappingRequest::WithGroupMembers
PutPrincipalMappingRequest & WithGroupMembers(GroupMembers &&value)
Definition: PutPrincipalMappingRequest.h:273
Aws::kendra::Model::PutPrincipalMappingRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: PutPrincipalMappingRequest.h:357
Aws::kendra::Model::PutPrincipalMappingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::kendra::Model::PutPrincipalMappingRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: PutPrincipalMappingRequest.h:384
Aws::kendra::Model::PutPrincipalMappingRequest::GetGroupId
const Aws::String & GetGroupId() const
Definition: PutPrincipalMappingRequest.h:171
Kendra_EXPORTS.h
Aws::kendra::Model::PutPrincipalMappingRequest::WithRoleArn
PutPrincipalMappingRequest & WithRoleArn(const Aws::String &value)
Definition: PutPrincipalMappingRequest.h:393
Aws::kendra::Model::PutPrincipalMappingRequest::IndexIdHasBeenSet
bool IndexIdHasBeenSet() const
Definition: PutPrincipalMappingRequest.h:46
Aws::kendra::Model::PutPrincipalMappingRequest::WithDataSourceId
PutPrincipalMappingRequest & WithDataSourceId(Aws::String &&value)
Definition: PutPrincipalMappingRequest.h:154
Aws::kendra::Model::PutPrincipalMappingRequest::SetIndexId
void SetIndexId(const char *value)
Definition: PutPrincipalMappingRequest.h:61
Aws::kendra::Model::PutPrincipalMappingRequest::SetGroupId
void SetGroupId(const char *value)
Definition: PutPrincipalMappingRequest.h:191
Aws::kendra::Model::PutPrincipalMappingRequest::GetOrderingId
long long GetOrderingId() const
Definition: PutPrincipalMappingRequest.h:290
Aws::kendra::Model::PutPrincipalMappingRequest::PutPrincipalMappingRequest
PutPrincipalMappingRequest()
Aws::kendra::Model::PutPrincipalMappingRequest::SetIndexId
void SetIndexId(Aws::String &&value)
Definition: PutPrincipalMappingRequest.h:56
Aws::kendra::Model::PutPrincipalMappingRequest::OrderingIdHasBeenSet
bool OrderingIdHasBeenSet() const
Definition: PutPrincipalMappingRequest.h:306
Aws::kendra::Model::PutPrincipalMappingRequest::GetGroupMembers
const GroupMembers & GetGroupMembers() const
Definition: PutPrincipalMappingRequest.h:218
Aws::kendra::Model::PutPrincipalMappingRequest::WithDataSourceId
PutPrincipalMappingRequest & WithDataSourceId(const char *value)
Definition: PutPrincipalMappingRequest.h:165
Aws::kendra::Model::PutPrincipalMappingRequest::WithIndexId
PutPrincipalMappingRequest & WithIndexId(const Aws::String &value)
Definition: PutPrincipalMappingRequest.h:66
Aws::kendra::Model::PutPrincipalMappingRequest::SetDataSourceId
void SetDataSourceId(const char *value)
Definition: PutPrincipalMappingRequest.h:132
AWSString.h
Aws::kendra::Model::PutPrincipalMappingRequest
Definition: PutPrincipalMappingRequest.h:23
Aws::kendra::Model::PutPrincipalMappingRequest::SetGroupMembers
void SetGroupMembers(GroupMembers &&value)
Definition: PutPrincipalMappingRequest.h:251
Aws::kendra::Model::PutPrincipalMappingRequest::SetDataSourceId
void SetDataSourceId(const Aws::String &value)
Definition: PutPrincipalMappingRequest.h:110
Aws::kendra::Model::PutPrincipalMappingRequest::SetGroupId
void SetGroupId(const Aws::String &value)
Definition: PutPrincipalMappingRequest.h:181
Aws::kendra::Model::PutPrincipalMappingRequest::WithRoleArn
PutPrincipalMappingRequest & WithRoleArn(const char *value)
Definition: PutPrincipalMappingRequest.h:411
Aws::kendra::Model::PutPrincipalMappingRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: PutPrincipalMappingRequest.h:375
Aws::kendra::Model::PutPrincipalMappingRequest::WithGroupId
PutPrincipalMappingRequest & WithGroupId(const char *value)
Definition: PutPrincipalMappingRequest.h:206
Aws::kendra::Model::PutPrincipalMappingRequest::SetGroupMembers
void SetGroupMembers(const GroupMembers &value)
Definition: PutPrincipalMappingRequest.h:240
Aws
Definition: AccessManagementClient.h:15
Aws::kendra::Model::PutPrincipalMappingRequest::SetGroupId
void SetGroupId(Aws::String &&value)
Definition: PutPrincipalMappingRequest.h:186
Aws::kendra::Model::GroupMembers
Definition: GroupMembers.h:37
Aws::kendra::Model::PutPrincipalMappingRequest::SetDataSourceId
void SetDataSourceId(Aws::String &&value)
Definition: PutPrincipalMappingRequest.h:121
Aws::kendra::Model::PutPrincipalMappingRequest::DataSourceIdHasBeenSet
bool DataSourceIdHasBeenSet() const
Definition: PutPrincipalMappingRequest.h:99
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::kendra::Model::PutPrincipalMappingRequest::GetDataSourceId
const Aws::String & GetDataSourceId() const
Definition: PutPrincipalMappingRequest.h:88
AWS_KENDRA_API
#define AWS_KENDRA_API
Definition: Kendra_EXPORTS.h:28
Aws::kendra::Model::PutPrincipalMappingRequest::WithGroupId
PutPrincipalMappingRequest & WithGroupId(const Aws::String &value)
Definition: PutPrincipalMappingRequest.h:196
Aws::kendra::Model::PutPrincipalMappingRequest::WithRoleArn
PutPrincipalMappingRequest & WithRoleArn(Aws::String &&value)
Definition: PutPrincipalMappingRequest.h:402
Aws::kendra::Model::PutPrincipalMappingRequest::SetOrderingId
void SetOrderingId(long long value)
Definition: PutPrincipalMappingRequest.h:322
Aws::kendra::Model::PutPrincipalMappingRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::kendra::Model::PutPrincipalMappingRequest::WithDataSourceId
PutPrincipalMappingRequest & WithDataSourceId(const Aws::String &value)
Definition: PutPrincipalMappingRequest.h:143
Aws::kendra::Model::PutPrincipalMappingRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: PutPrincipalMappingRequest.h:366
Aws::kendra::Model::PutPrincipalMappingRequest::SetIndexId
void SetIndexId(const Aws::String &value)
Definition: PutPrincipalMappingRequest.h:51
Aws::kendra::Model::PutPrincipalMappingRequest::WithGroupMembers
PutPrincipalMappingRequest & WithGroupMembers(const GroupMembers &value)
Definition: PutPrincipalMappingRequest.h:262