AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetIndexRequest.h
1
6#pragma once
7#include <aws/s3vectors/S3Vectors_EXPORTS.h>
8#include <aws/s3vectors/S3VectorsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace S3Vectors
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_S3VECTORS_API GetIndexRequest() = default;
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 "GetIndex"; }
31
32 AWS_S3VECTORS_API Aws::String SerializePayload() const override;
33
34
36
39 inline const Aws::String& GetVectorBucketName() const { return m_vectorBucketName; }
40 inline bool VectorBucketNameHasBeenSet() const { return m_vectorBucketNameHasBeenSet; }
41 template<typename VectorBucketNameT = Aws::String>
42 void SetVectorBucketName(VectorBucketNameT&& value) { m_vectorBucketNameHasBeenSet = true; m_vectorBucketName = std::forward<VectorBucketNameT>(value); }
43 template<typename VectorBucketNameT = Aws::String>
44 GetIndexRequest& WithVectorBucketName(VectorBucketNameT&& value) { SetVectorBucketName(std::forward<VectorBucketNameT>(value)); return *this;}
46
48
51 inline const Aws::String& GetIndexName() const { return m_indexName; }
52 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
53 template<typename IndexNameT = Aws::String>
54 void SetIndexName(IndexNameT&& value) { m_indexNameHasBeenSet = true; m_indexName = std::forward<IndexNameT>(value); }
55 template<typename IndexNameT = Aws::String>
56 GetIndexRequest& WithIndexName(IndexNameT&& value) { SetIndexName(std::forward<IndexNameT>(value)); return *this;}
58
60
63 inline const Aws::String& GetIndexArn() const { return m_indexArn; }
64 inline bool IndexArnHasBeenSet() const { return m_indexArnHasBeenSet; }
65 template<typename IndexArnT = Aws::String>
66 void SetIndexArn(IndexArnT&& value) { m_indexArnHasBeenSet = true; m_indexArn = std::forward<IndexArnT>(value); }
67 template<typename IndexArnT = Aws::String>
68 GetIndexRequest& WithIndexArn(IndexArnT&& value) { SetIndexArn(std::forward<IndexArnT>(value)); return *this;}
70 private:
71
72 Aws::String m_vectorBucketName;
73 bool m_vectorBucketNameHasBeenSet = false;
74
75 Aws::String m_indexName;
76 bool m_indexNameHasBeenSet = false;
77
78 Aws::String m_indexArn;
79 bool m_indexArnHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace S3Vectors
84} // namespace Aws
AWS_S3VECTORS_API Aws::String SerializePayload() const override
void SetIndexName(IndexNameT &&value)
GetIndexRequest & WithVectorBucketName(VectorBucketNameT &&value)
AWS_S3VECTORS_API GetIndexRequest()=default
const Aws::String & GetIndexName() const
GetIndexRequest & WithIndexName(IndexNameT &&value)
const Aws::String & GetIndexArn() const
GetIndexRequest & WithIndexArn(IndexArnT &&value)
void SetVectorBucketName(VectorBucketNameT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetVectorBucketName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String