AWS SDK for C++

AWS SDK for C++ Version 1.11.827

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/VectorOptions.h>
13
14#include <utility>
15
16namespace Aws {
17namespace OpenSearchServerless {
18namespace Model {
19
23 public:
24 AWS_OPENSEARCHSERVERLESS_API UpdateCollectionRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateCollection"; }
31
32 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
33
34 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
76 inline const VectorOptions& GetVectorOptions() const { return m_vectorOptions; }
77 inline bool VectorOptionsHasBeenSet() const { return m_vectorOptionsHasBeenSet; }
78 template <typename VectorOptionsT = VectorOptions>
79 void SetVectorOptions(VectorOptionsT&& value) {
80 m_vectorOptionsHasBeenSet = true;
81 m_vectorOptions = std::forward<VectorOptionsT>(value);
82 }
83 template <typename VectorOptionsT = VectorOptions>
84 UpdateCollectionRequest& WithVectorOptions(VectorOptionsT&& value) {
85 SetVectorOptions(std::forward<VectorOptionsT>(value));
86 return *this;
87 }
89
91
96 inline DeletionProtection GetDeletionProtection() const { return m_deletionProtection; }
97 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
99 m_deletionProtectionHasBeenSet = true;
100 m_deletionProtection = value;
101 }
104 return *this;
105 }
107
109
112 inline const Aws::String& GetClientToken() const { return m_clientToken; }
113 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
114 template <typename ClientTokenT = Aws::String>
115 void SetClientToken(ClientTokenT&& value) {
116 m_clientTokenHasBeenSet = true;
117 m_clientToken = std::forward<ClientTokenT>(value);
118 }
119 template <typename ClientTokenT = Aws::String>
121 SetClientToken(std::forward<ClientTokenT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_id;
127
128 Aws::String m_description;
129
130 VectorOptions m_vectorOptions;
131
133
135 bool m_idHasBeenSet = false;
136 bool m_descriptionHasBeenSet = false;
137 bool m_vectorOptionsHasBeenSet = false;
138 bool m_deletionProtectionHasBeenSet = false;
139 bool m_clientTokenHasBeenSet = true;
140};
141
142} // namespace Model
143} // namespace OpenSearchServerless
144} // namespace Aws
UpdateCollectionRequest & WithDeletionProtection(DeletionProtection 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