AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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/VectorOptions.h>
12
13#include <utility>
14
15namespace Aws {
16namespace OpenSearchServerless {
17namespace Model {
18
22 public:
23 AWS_OPENSEARCHSERVERLESS_API UpdateCollectionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateCollection"; }
30
31 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
32
33 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const VectorOptions& GetVectorOptions() const { return m_vectorOptions; }
76 inline bool VectorOptionsHasBeenSet() const { return m_vectorOptionsHasBeenSet; }
77 template <typename VectorOptionsT = VectorOptions>
78 void SetVectorOptions(VectorOptionsT&& value) {
79 m_vectorOptionsHasBeenSet = true;
80 m_vectorOptions = std::forward<VectorOptionsT>(value);
81 }
82 template <typename VectorOptionsT = VectorOptions>
83 UpdateCollectionRequest& WithVectorOptions(VectorOptionsT&& value) {
84 SetVectorOptions(std::forward<VectorOptionsT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetClientToken() const { return m_clientToken; }
94 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
95 template <typename ClientTokenT = Aws::String>
96 void SetClientToken(ClientTokenT&& value) {
97 m_clientTokenHasBeenSet = true;
98 m_clientToken = std::forward<ClientTokenT>(value);
99 }
100 template <typename ClientTokenT = Aws::String>
102 SetClientToken(std::forward<ClientTokenT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_id;
108
109 Aws::String m_description;
110
111 VectorOptions m_vectorOptions;
112
114 bool m_idHasBeenSet = false;
115 bool m_descriptionHasBeenSet = false;
116 bool m_vectorOptionsHasBeenSet = false;
117 bool m_clientTokenHasBeenSet = true;
118};
119
120} // namespace Model
121} // namespace OpenSearchServerless
122} // namespace Aws
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