AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetVectorsRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace S3Vectors
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_S3VECTORS_API GetVectorsRequest() = 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 "GetVectors"; }
32
33 AWS_S3VECTORS_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetVectorBucketName() const { return m_vectorBucketName; }
41 inline bool VectorBucketNameHasBeenSet() const { return m_vectorBucketNameHasBeenSet; }
42 template<typename VectorBucketNameT = Aws::String>
43 void SetVectorBucketName(VectorBucketNameT&& value) { m_vectorBucketNameHasBeenSet = true; m_vectorBucketName = std::forward<VectorBucketNameT>(value); }
44 template<typename VectorBucketNameT = Aws::String>
45 GetVectorsRequest& WithVectorBucketName(VectorBucketNameT&& value) { SetVectorBucketName(std::forward<VectorBucketNameT>(value)); return *this;}
47
49
52 inline const Aws::String& GetIndexName() const { return m_indexName; }
53 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
54 template<typename IndexNameT = Aws::String>
55 void SetIndexName(IndexNameT&& value) { m_indexNameHasBeenSet = true; m_indexName = std::forward<IndexNameT>(value); }
56 template<typename IndexNameT = Aws::String>
57 GetVectorsRequest& WithIndexName(IndexNameT&& value) { SetIndexName(std::forward<IndexNameT>(value)); return *this;}
59
61
64 inline const Aws::String& GetIndexArn() const { return m_indexArn; }
65 inline bool IndexArnHasBeenSet() const { return m_indexArnHasBeenSet; }
66 template<typename IndexArnT = Aws::String>
67 void SetIndexArn(IndexArnT&& value) { m_indexArnHasBeenSet = true; m_indexArn = std::forward<IndexArnT>(value); }
68 template<typename IndexArnT = Aws::String>
69 GetVectorsRequest& WithIndexArn(IndexArnT&& value) { SetIndexArn(std::forward<IndexArnT>(value)); return *this;}
71
73
76 inline const Aws::Vector<Aws::String>& GetKeys() const { return m_keys; }
77 inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
78 template<typename KeysT = Aws::Vector<Aws::String>>
79 void SetKeys(KeysT&& value) { m_keysHasBeenSet = true; m_keys = std::forward<KeysT>(value); }
80 template<typename KeysT = Aws::Vector<Aws::String>>
81 GetVectorsRequest& WithKeys(KeysT&& value) { SetKeys(std::forward<KeysT>(value)); return *this;}
82 template<typename KeysT = Aws::String>
83 GetVectorsRequest& AddKeys(KeysT&& value) { m_keysHasBeenSet = true; m_keys.emplace_back(std::forward<KeysT>(value)); return *this; }
85
87
91 inline bool GetReturnData() const { return m_returnData; }
92 inline bool ReturnDataHasBeenSet() const { return m_returnDataHasBeenSet; }
93 inline void SetReturnData(bool value) { m_returnDataHasBeenSet = true; m_returnData = value; }
94 inline GetVectorsRequest& WithReturnData(bool value) { SetReturnData(value); return *this;}
96
98
102 inline bool GetReturnMetadata() const { return m_returnMetadata; }
103 inline bool ReturnMetadataHasBeenSet() const { return m_returnMetadataHasBeenSet; }
104 inline void SetReturnMetadata(bool value) { m_returnMetadataHasBeenSet = true; m_returnMetadata = value; }
105 inline GetVectorsRequest& WithReturnMetadata(bool value) { SetReturnMetadata(value); return *this;}
107 private:
108
109 Aws::String m_vectorBucketName;
110 bool m_vectorBucketNameHasBeenSet = false;
111
112 Aws::String m_indexName;
113 bool m_indexNameHasBeenSet = false;
114
115 Aws::String m_indexArn;
116 bool m_indexArnHasBeenSet = false;
117
119 bool m_keysHasBeenSet = false;
120
121 bool m_returnData{false};
122 bool m_returnDataHasBeenSet = false;
123
124 bool m_returnMetadata{false};
125 bool m_returnMetadataHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace S3Vectors
130} // namespace Aws
AWS_S3VECTORS_API Aws::String SerializePayload() const override
void SetVectorBucketName(VectorBucketNameT &&value)
GetVectorsRequest & AddKeys(KeysT &&value)
const Aws::String & GetVectorBucketName() const
virtual const char * GetServiceRequestName() const override
AWS_S3VECTORS_API GetVectorsRequest()=default
GetVectorsRequest & WithVectorBucketName(VectorBucketNameT &&value)
const Aws::String & GetIndexName() const
GetVectorsRequest & WithIndexArn(IndexArnT &&value)
const Aws::Vector< Aws::String > & GetKeys() const
GetVectorsRequest & WithIndexName(IndexNameT &&value)
const Aws::String & GetIndexArn() const
GetVectorsRequest & WithKeys(KeysT &&value)
GetVectorsRequest & WithReturnData(bool value)
GetVectorsRequest & WithReturnMetadata(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector