AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateIndexRequest.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 CreateIndexRequest() = 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 "CreateIndex"; }
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 CreateIndexRequest& WithId(IdT&& value) {
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetIndexName() const { return m_indexName; }
58 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
59 template <typename IndexNameT = Aws::String>
60 void SetIndexName(IndexNameT&& value) {
61 m_indexNameHasBeenSet = true;
62 m_indexName = std::forward<IndexNameT>(value);
63 }
64 template <typename IndexNameT = Aws::String>
65 CreateIndexRequest& WithIndexName(IndexNameT&& value) {
66 SetIndexName(std::forward<IndexNameT>(value));
67 return *this;
68 }
70
72
76 inline Aws::Utils::DocumentView GetIndexSchema() const { return m_indexSchema; }
77 inline bool IndexSchemaHasBeenSet() const { return m_indexSchemaHasBeenSet; }
78 template <typename IndexSchemaT = Aws::Utils::Document>
79 void SetIndexSchema(IndexSchemaT&& value) {
80 m_indexSchemaHasBeenSet = true;
81 m_indexSchema = std::forward<IndexSchemaT>(value);
82 }
83 template <typename IndexSchemaT = Aws::Utils::Document>
84 CreateIndexRequest& WithIndexSchema(IndexSchemaT&& value) {
85 SetIndexSchema(std::forward<IndexSchemaT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_id;
91
92 Aws::String m_indexName;
93
94 Aws::Utils::Document m_indexSchema;
95 bool m_idHasBeenSet = false;
96 bool m_indexNameHasBeenSet = false;
97 bool m_indexSchemaHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace OpenSearchServerless
102} // namespace Aws
CreateIndexRequest & WithIndexSchema(IndexSchemaT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AWS_OPENSEARCHSERVERLESS_API CreateIndexRequest()=default
AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateIndexRequest & WithIndexName(IndexNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String