AWS SDK for C++  1.9.129
AWS SDK for C++
DescribePrincipalMappingRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace kendra
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "DescribePrincipalMapping"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
42  inline const Aws::String& GetIndexId() const{ return m_indexId; }
43 
49  inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
50 
56  inline void SetIndexId(const Aws::String& value) { m_indexIdHasBeenSet = true; m_indexId = value; }
57 
63  inline void SetIndexId(Aws::String&& value) { m_indexIdHasBeenSet = true; m_indexId = std::move(value); }
64 
70  inline void SetIndexId(const char* value) { m_indexIdHasBeenSet = true; m_indexId.assign(value); }
71 
77  inline DescribePrincipalMappingRequest& WithIndexId(const Aws::String& value) { SetIndexId(value); return *this;}
78 
84  inline DescribePrincipalMappingRequest& WithIndexId(Aws::String&& value) { SetIndexId(std::move(value)); return *this;}
85 
91  inline DescribePrincipalMappingRequest& WithIndexId(const char* value) { SetIndexId(value); return *this;}
92 
93 
98  inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; }
99 
104  inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
105 
110  inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; }
111 
116  inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); }
117 
122  inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); }
123 
128  inline DescribePrincipalMappingRequest& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;}
129 
134  inline DescribePrincipalMappingRequest& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;}
135 
140  inline DescribePrincipalMappingRequest& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;}
141 
142 
148  inline const Aws::String& GetGroupId() const{ return m_groupId; }
149 
155  inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
156 
162  inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
163 
169  inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
170 
176  inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
177 
183  inline DescribePrincipalMappingRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
184 
190  inline DescribePrincipalMappingRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
191 
197  inline DescribePrincipalMappingRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
198 
199  private:
200 
201  Aws::String m_indexId;
202  bool m_indexIdHasBeenSet;
203 
204  Aws::String m_dataSourceId;
205  bool m_dataSourceIdHasBeenSet;
206 
207  Aws::String m_groupId;
208  bool m_groupIdHasBeenSet;
209  };
210 
211 } // namespace Model
212 } // namespace kendra
213 } // namespace Aws
Aws::kendra::Model::DescribePrincipalMappingRequest::GetIndexId
const Aws::String & GetIndexId() const
Definition: DescribePrincipalMappingRequest.h:42
Aws::kendra::Model::DescribePrincipalMappingRequest::WithDataSourceId
DescribePrincipalMappingRequest & WithDataSourceId(const char *value)
Definition: DescribePrincipalMappingRequest.h:140
Aws::kendra::Model::DescribePrincipalMappingRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::kendra::KendraRequest
Definition: KendraRequest.h:17
Aws::kendra::Model::DescribePrincipalMappingRequest
Definition: DescribePrincipalMappingRequest.h:22
Aws::kendra::Model::DescribePrincipalMappingRequest::SetGroupId
void SetGroupId(const Aws::String &value)
Definition: DescribePrincipalMappingRequest.h:162
Aws::kendra::Model::DescribePrincipalMappingRequest::WithDataSourceId
DescribePrincipalMappingRequest & WithDataSourceId(const Aws::String &value)
Definition: DescribePrincipalMappingRequest.h:128
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::kendra::Model::DescribePrincipalMappingRequest::SetGroupId
void SetGroupId(const char *value)
Definition: DescribePrincipalMappingRequest.h:176
Aws::kendra::Model::DescribePrincipalMappingRequest::WithGroupId
DescribePrincipalMappingRequest & WithGroupId(const Aws::String &value)
Definition: DescribePrincipalMappingRequest.h:183
Aws::kendra::Model::DescribePrincipalMappingRequest::SetIndexId
void SetIndexId(const Aws::String &value)
Definition: DescribePrincipalMappingRequest.h:56
Aws::kendra::Model::DescribePrincipalMappingRequest::WithIndexId
DescribePrincipalMappingRequest & WithIndexId(Aws::String &&value)
Definition: DescribePrincipalMappingRequest.h:84
Aws::kendra::Model::DescribePrincipalMappingRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::kendra::Model::DescribePrincipalMappingRequest::WithGroupId
DescribePrincipalMappingRequest & WithGroupId(const char *value)
Definition: DescribePrincipalMappingRequest.h:197
KendraRequest.h
Aws::kendra::Model::DescribePrincipalMappingRequest::SetIndexId
void SetIndexId(Aws::String &&value)
Definition: DescribePrincipalMappingRequest.h:63
Aws::kendra::Model::DescribePrincipalMappingRequest::SetDataSourceId
void SetDataSourceId(const Aws::String &value)
Definition: DescribePrincipalMappingRequest.h:110
Aws::kendra::Model::DescribePrincipalMappingRequest::WithIndexId
DescribePrincipalMappingRequest & WithIndexId(const char *value)
Definition: DescribePrincipalMappingRequest.h:91
Aws::kendra::Model::DescribePrincipalMappingRequest::SetDataSourceId
void SetDataSourceId(Aws::String &&value)
Definition: DescribePrincipalMappingRequest.h:116
Aws::kendra::Model::DescribePrincipalMappingRequest::WithIndexId
DescribePrincipalMappingRequest & WithIndexId(const Aws::String &value)
Definition: DescribePrincipalMappingRequest.h:77
Aws::kendra::Model::DescribePrincipalMappingRequest::WithDataSourceId
DescribePrincipalMappingRequest & WithDataSourceId(Aws::String &&value)
Definition: DescribePrincipalMappingRequest.h:134
Aws::kendra::Model::DescribePrincipalMappingRequest::GroupIdHasBeenSet
bool GroupIdHasBeenSet() const
Definition: DescribePrincipalMappingRequest.h:155
Kendra_EXPORTS.h
Aws::kendra::Model::DescribePrincipalMappingRequest::GetDataSourceId
const Aws::String & GetDataSourceId() const
Definition: DescribePrincipalMappingRequest.h:98
Aws::kendra::Model::DescribePrincipalMappingRequest::SetGroupId
void SetGroupId(Aws::String &&value)
Definition: DescribePrincipalMappingRequest.h:169
Aws::kendra::Model::DescribePrincipalMappingRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribePrincipalMappingRequest.h:30
Aws::kendra::Model::DescribePrincipalMappingRequest::WithGroupId
DescribePrincipalMappingRequest & WithGroupId(Aws::String &&value)
Definition: DescribePrincipalMappingRequest.h:190
AWSString.h
Aws::kendra::Model::DescribePrincipalMappingRequest::SetDataSourceId
void SetDataSourceId(const char *value)
Definition: DescribePrincipalMappingRequest.h:122
Aws::kendra::Model::DescribePrincipalMappingRequest::IndexIdHasBeenSet
bool IndexIdHasBeenSet() const
Definition: DescribePrincipalMappingRequest.h:49
Aws::kendra::Model::DescribePrincipalMappingRequest::DescribePrincipalMappingRequest
DescribePrincipalMappingRequest()
Aws::kendra::Model::DescribePrincipalMappingRequest::DataSourceIdHasBeenSet
bool DataSourceIdHasBeenSet() const
Definition: DescribePrincipalMappingRequest.h:104
Aws
Definition: AccessManagementClient.h:15
Aws::kendra::Model::DescribePrincipalMappingRequest::GetGroupId
const Aws::String & GetGroupId() const
Definition: DescribePrincipalMappingRequest.h:148
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_KENDRA_API
#define AWS_KENDRA_API
Definition: Kendra_EXPORTS.h:28
Aws::kendra::Model::DescribePrincipalMappingRequest::SetIndexId
void SetIndexId(const char *value)
Definition: DescribePrincipalMappingRequest.h:70