AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
DeleteVectorsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/s3vectors/S3VectorsRequest.h>
10#include <aws/s3vectors/S3Vectors_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace S3Vectors {
16namespace Model {
17
21 public:
22 AWS_S3VECTORS_API DeleteVectorsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DeleteVectors"; }
29
30 AWS_S3VECTORS_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetVectorBucketName() const { return m_vectorBucketName; }
37 inline bool VectorBucketNameHasBeenSet() const { return m_vectorBucketNameHasBeenSet; }
38 template <typename VectorBucketNameT = Aws::String>
39 void SetVectorBucketName(VectorBucketNameT&& value) {
40 m_vectorBucketNameHasBeenSet = true;
41 m_vectorBucketName = std::forward<VectorBucketNameT>(value);
42 }
43 template <typename VectorBucketNameT = Aws::String>
44 DeleteVectorsRequest& WithVectorBucketName(VectorBucketNameT&& value) {
45 SetVectorBucketName(std::forward<VectorBucketNameT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetIndexName() const { return m_indexName; }
55 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
56 template <typename IndexNameT = Aws::String>
57 void SetIndexName(IndexNameT&& value) {
58 m_indexNameHasBeenSet = true;
59 m_indexName = std::forward<IndexNameT>(value);
60 }
61 template <typename IndexNameT = Aws::String>
62 DeleteVectorsRequest& WithIndexName(IndexNameT&& value) {
63 SetIndexName(std::forward<IndexNameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetIndexArn() const { return m_indexArn; }
73 inline bool IndexArnHasBeenSet() const { return m_indexArnHasBeenSet; }
74 template <typename IndexArnT = Aws::String>
75 void SetIndexArn(IndexArnT&& value) {
76 m_indexArnHasBeenSet = true;
77 m_indexArn = std::forward<IndexArnT>(value);
78 }
79 template <typename IndexArnT = Aws::String>
80 DeleteVectorsRequest& WithIndexArn(IndexArnT&& value) {
81 SetIndexArn(std::forward<IndexArnT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Vector<Aws::String>& GetKeys() const { return m_keys; }
91 inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
92 template <typename KeysT = Aws::Vector<Aws::String>>
93 void SetKeys(KeysT&& value) {
94 m_keysHasBeenSet = true;
95 m_keys = std::forward<KeysT>(value);
96 }
97 template <typename KeysT = Aws::Vector<Aws::String>>
99 SetKeys(std::forward<KeysT>(value));
100 return *this;
101 }
102 template <typename KeysT = Aws::String>
104 m_keysHasBeenSet = true;
105 m_keys.emplace_back(std::forward<KeysT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_vectorBucketName;
111
112 Aws::String m_indexName;
113
114 Aws::String m_indexArn;
115
117 bool m_vectorBucketNameHasBeenSet = false;
118 bool m_indexNameHasBeenSet = false;
119 bool m_indexArnHasBeenSet = false;
120 bool m_keysHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace S3Vectors
125} // namespace Aws
DeleteVectorsRequest & WithIndexArn(IndexArnT &&value)
DeleteVectorsRequest & WithVectorBucketName(VectorBucketNameT &&value)
DeleteVectorsRequest & WithKeys(KeysT &&value)
DeleteVectorsRequest & AddKeys(KeysT &&value)
AWS_S3VECTORS_API DeleteVectorsRequest()=default
DeleteVectorsRequest & WithIndexName(IndexNameT &&value)
void SetVectorBucketName(VectorBucketNameT &&value)
AWS_S3VECTORS_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetKeys() const
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector