AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutVectorsRequest.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 <aws/s3vectors/model/PutInputVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace S3Vectors
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_S3VECTORS_API PutVectorsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutVectors"; }
33
34 AWS_S3VECTORS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetVectorBucketName() const { return m_vectorBucketName; }
42 inline bool VectorBucketNameHasBeenSet() const { return m_vectorBucketNameHasBeenSet; }
43 template<typename VectorBucketNameT = Aws::String>
44 void SetVectorBucketName(VectorBucketNameT&& value) { m_vectorBucketNameHasBeenSet = true; m_vectorBucketName = std::forward<VectorBucketNameT>(value); }
45 template<typename VectorBucketNameT = Aws::String>
46 PutVectorsRequest& WithVectorBucketName(VectorBucketNameT&& value) { SetVectorBucketName(std::forward<VectorBucketNameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetIndexName() const { return m_indexName; }
54 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
55 template<typename IndexNameT = Aws::String>
56 void SetIndexName(IndexNameT&& value) { m_indexNameHasBeenSet = true; m_indexName = std::forward<IndexNameT>(value); }
57 template<typename IndexNameT = Aws::String>
58 PutVectorsRequest& WithIndexName(IndexNameT&& value) { SetIndexName(std::forward<IndexNameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetIndexArn() const { return m_indexArn; }
66 inline bool IndexArnHasBeenSet() const { return m_indexArnHasBeenSet; }
67 template<typename IndexArnT = Aws::String>
68 void SetIndexArn(IndexArnT&& value) { m_indexArnHasBeenSet = true; m_indexArn = std::forward<IndexArnT>(value); }
69 template<typename IndexArnT = Aws::String>
70 PutVectorsRequest& WithIndexArn(IndexArnT&& value) { SetIndexArn(std::forward<IndexArnT>(value)); return *this;}
72
74
80 inline const Aws::Vector<PutInputVector>& GetVectors() const { return m_vectors; }
81 inline bool VectorsHasBeenSet() const { return m_vectorsHasBeenSet; }
82 template<typename VectorsT = Aws::Vector<PutInputVector>>
83 void SetVectors(VectorsT&& value) { m_vectorsHasBeenSet = true; m_vectors = std::forward<VectorsT>(value); }
84 template<typename VectorsT = Aws::Vector<PutInputVector>>
85 PutVectorsRequest& WithVectors(VectorsT&& value) { SetVectors(std::forward<VectorsT>(value)); return *this;}
86 template<typename VectorsT = PutInputVector>
87 PutVectorsRequest& AddVectors(VectorsT&& value) { m_vectorsHasBeenSet = true; m_vectors.emplace_back(std::forward<VectorsT>(value)); return *this; }
89 private:
90
91 Aws::String m_vectorBucketName;
92 bool m_vectorBucketNameHasBeenSet = false;
93
94 Aws::String m_indexName;
95 bool m_indexNameHasBeenSet = false;
96
97 Aws::String m_indexArn;
98 bool m_indexArnHasBeenSet = false;
99
101 bool m_vectorsHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace S3Vectors
106} // namespace Aws
const Aws::String & GetIndexArn() const
const Aws::String & GetIndexName() const
AWS_S3VECTORS_API Aws::String SerializePayload() const override
PutVectorsRequest & WithIndexName(IndexNameT &&value)
PutVectorsRequest & WithIndexArn(IndexArnT &&value)
PutVectorsRequest & AddVectors(VectorsT &&value)
PutVectorsRequest & WithVectorBucketName(VectorBucketNameT &&value)
PutVectorsRequest & WithVectors(VectorsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< PutInputVector > & GetVectors() const
AWS_S3VECTORS_API PutVectorsRequest()=default
void SetVectorBucketName(VectorBucketNameT &&value)
const Aws::String & GetVectorBucketName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector