AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
UpdateCollectionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearchserverless/OpenSearchServerlessRequest.h>
10#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
11#include <aws/opensearchserverless/model/DeletionProtection.h>
12#include <aws/opensearchserverless/model/EncryptionConfig.h>
13#include <aws/opensearchserverless/model/VectorOptions.h>
14
15#include <utility>
16
17namespace Aws {
18namespace OpenSearchServerless {
19namespace Model {
20
24 public:
25 AWS_OPENSEARCHSERVERLESS_API UpdateCollectionRequest() = 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 "UpdateCollection"; }
32
33 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
34
35 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
77 inline const VectorOptions& GetVectorOptions() const { return m_vectorOptions; }
78 inline bool VectorOptionsHasBeenSet() const { return m_vectorOptionsHasBeenSet; }
79 template <typename VectorOptionsT = VectorOptions>
80 void SetVectorOptions(VectorOptionsT&& value) {
81 m_vectorOptionsHasBeenSet = true;
82 m_vectorOptions = std::forward<VectorOptionsT>(value);
83 }
84 template <typename VectorOptionsT = VectorOptions>
85 UpdateCollectionRequest& WithVectorOptions(VectorOptionsT&& value) {
86 SetVectorOptions(std::forward<VectorOptionsT>(value));
87 return *this;
88 }
90
92
97 inline DeletionProtection GetDeletionProtection() const { return m_deletionProtection; }
98 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
100 m_deletionProtectionHasBeenSet = true;
101 m_deletionProtection = value;
102 }
108
110
111 inline const EncryptionConfig& GetEncryptionConfig() const { return m_encryptionConfig; }
112 inline bool EncryptionConfigHasBeenSet() const { return m_encryptionConfigHasBeenSet; }
113 template <typename EncryptionConfigT = EncryptionConfig>
114 void SetEncryptionConfig(EncryptionConfigT&& value) {
115 m_encryptionConfigHasBeenSet = true;
116 m_encryptionConfig = std::forward<EncryptionConfigT>(value);
117 }
118 template <typename EncryptionConfigT = EncryptionConfig>
119 UpdateCollectionRequest& WithEncryptionConfig(EncryptionConfigT&& value) {
120 SetEncryptionConfig(std::forward<EncryptionConfigT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetClientToken() const { return m_clientToken; }
130 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
131 template <typename ClientTokenT = Aws::String>
132 void SetClientToken(ClientTokenT&& value) {
133 m_clientTokenHasBeenSet = true;
134 m_clientToken = std::forward<ClientTokenT>(value);
135 }
136 template <typename ClientTokenT = Aws::String>
138 SetClientToken(std::forward<ClientTokenT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_id;
144
145 Aws::String m_description;
146
147 VectorOptions m_vectorOptions;
148
150
151 EncryptionConfig m_encryptionConfig;
152
154 bool m_idHasBeenSet = false;
155 bool m_descriptionHasBeenSet = false;
156 bool m_vectorOptionsHasBeenSet = false;
157 bool m_deletionProtectionHasBeenSet = false;
158 bool m_encryptionConfigHasBeenSet = false;
159 bool m_clientTokenHasBeenSet = true;
160};
161
162} // namespace Model
163} // namespace OpenSearchServerless
164} // namespace Aws
UpdateCollectionRequest & WithDeletionProtection(DeletionProtection value)
UpdateCollectionRequest & WithEncryptionConfig(EncryptionConfigT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
UpdateCollectionRequest & WithClientToken(ClientTokenT &&value)
AWS_OPENSEARCHSERVERLESS_API UpdateCollectionRequest()=default
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateCollectionRequest & WithDescription(DescriptionT &&value)
UpdateCollectionRequest & WithVectorOptions(VectorOptionsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String