AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateIndexRequest.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearchserverless/OpenSearchServerlessRequest.h>
10#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace OpenSearchServerless {
16namespace Model {
17
21 public:
22 AWS_OPENSEARCHSERVERLESS_API UpdateIndexRequest() = 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 "UpdateIndex"; }
29
30 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
31
32 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetId() const { return m_id; }
39 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
40 template <typename IdT = Aws::String>
41 void SetId(IdT&& value) {
42 m_idHasBeenSet = true;
43 m_id = std::forward<IdT>(value);
44 }
45 template <typename IdT = Aws::String>
46 UpdateIndexRequest& WithId(IdT&& value) {
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetIndexName() const { return m_indexName; }
57 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
58 template <typename IndexNameT = Aws::String>
59 void SetIndexName(IndexNameT&& value) {
60 m_indexNameHasBeenSet = true;
61 m_indexName = std::forward<IndexNameT>(value);
62 }
63 template <typename IndexNameT = Aws::String>
64 UpdateIndexRequest& WithIndexName(IndexNameT&& value) {
65 SetIndexName(std::forward<IndexNameT>(value));
66 return *this;
67 }
69
71
75 inline Aws::Utils::DocumentView GetIndexSchema() const { return m_indexSchema; }
76 inline bool IndexSchemaHasBeenSet() const { return m_indexSchemaHasBeenSet; }
77 template <typename IndexSchemaT = Aws::Utils::Document>
78 void SetIndexSchema(IndexSchemaT&& value) {
79 m_indexSchemaHasBeenSet = true;
80 m_indexSchema = std::forward<IndexSchemaT>(value);
81 }
82 template <typename IndexSchemaT = Aws::Utils::Document>
83 UpdateIndexRequest& WithIndexSchema(IndexSchemaT&& value) {
84 SetIndexSchema(std::forward<IndexSchemaT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_id;
90
91 Aws::String m_indexName;
92
93 Aws::Utils::Document m_indexSchema;
94 bool m_idHasBeenSet = false;
95 bool m_indexNameHasBeenSet = false;
96 bool m_indexSchemaHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace OpenSearchServerless
101} // namespace Aws
UpdateIndexRequest & WithIndexSchema(IndexSchemaT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
UpdateIndexRequest & WithIndexName(IndexNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_OPENSEARCHSERVERLESS_API UpdateIndexRequest()=default
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String