AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutPrincipalMappingRequest.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/kendra/KendraRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kendra/model/GroupMembers.h>
11#include <utility>
12
13namespace Aws
14{
15namespace kendra
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_KENDRA_API PutPrincipalMappingRequest() = default;
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_KENDRA_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetIndexId() const { return m_indexId; }
43 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
44 template<typename IndexIdT = Aws::String>
45 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
46 template<typename IndexIdT = Aws::String>
47 PutPrincipalMappingRequest& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
49
51
60 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
61 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
62 template<typename DataSourceIdT = Aws::String>
63 void SetDataSourceId(DataSourceIdT&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::forward<DataSourceIdT>(value); }
64 template<typename DataSourceIdT = Aws::String>
65 PutPrincipalMappingRequest& WithDataSourceId(DataSourceIdT&& value) { SetDataSourceId(std::forward<DataSourceIdT>(value)); return *this;}
67
69
72 inline const Aws::String& GetGroupId() const { return m_groupId; }
73 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
74 template<typename GroupIdT = Aws::String>
75 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
76 template<typename GroupIdT = Aws::String>
77 PutPrincipalMappingRequest& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
79
81
91 inline const GroupMembers& GetGroupMembers() const { return m_groupMembers; }
92 inline bool GroupMembersHasBeenSet() const { return m_groupMembersHasBeenSet; }
93 template<typename GroupMembersT = GroupMembers>
94 void SetGroupMembers(GroupMembersT&& value) { m_groupMembersHasBeenSet = true; m_groupMembers = std::forward<GroupMembersT>(value); }
95 template<typename GroupMembersT = GroupMembers>
96 PutPrincipalMappingRequest& WithGroupMembers(GroupMembersT&& value) { SetGroupMembers(std::forward<GroupMembersT>(value)); return *this;}
98
100
114 inline long long GetOrderingId() const { return m_orderingId; }
115 inline bool OrderingIdHasBeenSet() const { return m_orderingIdHasBeenSet; }
116 inline void SetOrderingId(long long value) { m_orderingIdHasBeenSet = true; m_orderingId = value; }
117 inline PutPrincipalMappingRequest& WithOrderingId(long long value) { SetOrderingId(value); return *this;}
119
121
128 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
129 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
130 template<typename RoleArnT = Aws::String>
131 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
132 template<typename RoleArnT = Aws::String>
133 PutPrincipalMappingRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
135 private:
136
137 Aws::String m_indexId;
138 bool m_indexIdHasBeenSet = false;
139
140 Aws::String m_dataSourceId;
141 bool m_dataSourceIdHasBeenSet = false;
142
143 Aws::String m_groupId;
144 bool m_groupIdHasBeenSet = false;
145
146 GroupMembers m_groupMembers;
147 bool m_groupMembersHasBeenSet = false;
148
149 long long m_orderingId{0};
150 bool m_orderingIdHasBeenSet = false;
151
152 Aws::String m_roleArn;
153 bool m_roleArnHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace kendra
158} // namespace Aws
PutPrincipalMappingRequest & WithGroupId(GroupIdT &&value)
PutPrincipalMappingRequest & WithGroupMembers(GroupMembersT &&value)
PutPrincipalMappingRequest & WithOrderingId(long long value)
AWS_KENDRA_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_KENDRA_API PutPrincipalMappingRequest()=default
PutPrincipalMappingRequest & WithIndexId(IndexIdT &&value)
AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutPrincipalMappingRequest & WithDataSourceId(DataSourceIdT &&value)
PutPrincipalMappingRequest & WithRoleArn(RoleArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String