AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
UpdateIndexModeRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3vectors/S3VectorsRequest.h>
9#include <aws/s3vectors/S3Vectors_EXPORTS.h>
10#include <aws/s3vectors/model/IndexMode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace S3Vectors {
16namespace Model {
17
21 public:
22 AWS_S3VECTORS_API UpdateIndexModeRequest() = 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 "UpdateIndexMode"; }
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 UpdateIndexModeRequest& 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>
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>
81 SetIndexArn(std::forward<IndexArnT>(value));
82 return *this;
83 }
85
87
94 inline IndexMode GetIndexMode() const { return m_indexMode; }
95 inline bool IndexModeHasBeenSet() const { return m_indexModeHasBeenSet; }
96 inline void SetIndexMode(IndexMode value) {
97 m_indexModeHasBeenSet = true;
98 m_indexMode = value;
99 }
101 SetIndexMode(value);
102 return *this;
103 }
105 private:
106 Aws::String m_vectorBucketName;
107
108 Aws::String m_indexName;
109
110 Aws::String m_indexArn;
111
112 IndexMode m_indexMode{IndexMode::NOT_SET};
113 bool m_vectorBucketNameHasBeenSet = false;
114 bool m_indexNameHasBeenSet = false;
115 bool m_indexArnHasBeenSet = false;
116 bool m_indexModeHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace S3Vectors
121} // namespace Aws
UpdateIndexModeRequest & WithIndexArn(IndexArnT &&value)
AWS_S3VECTORS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_S3VECTORS_API UpdateIndexModeRequest()=default
UpdateIndexModeRequest & WithVectorBucketName(VectorBucketNameT &&value)
UpdateIndexModeRequest & WithIndexName(IndexNameT &&value)
void SetVectorBucketName(VectorBucketNameT &&value)
UpdateIndexModeRequest & WithIndexMode(IndexMode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String