AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/opensearch/OpenSearchServiceRequest.h>
10#include <aws/opensearch/OpenSearchService_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace OpenSearchService {
16namespace Model {
17
21 public:
22 AWS_OPENSEARCHSERVICE_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_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
31
33
34 inline const Aws::String& GetDomainName() const { return m_domainName; }
35 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
36 template <typename DomainNameT = Aws::String>
37 void SetDomainName(DomainNameT&& value) {
38 m_domainNameHasBeenSet = true;
39 m_domainName = std::forward<DomainNameT>(value);
40 }
41 template <typename DomainNameT = Aws::String>
42 CreateIndexRequest& WithDomainName(DomainNameT&& value) {
43 SetDomainName(std::forward<DomainNameT>(value));
44 return *this;
45 }
47
49
53 inline const Aws::String& GetIndexName() const { return m_indexName; }
54 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
55 template <typename IndexNameT = Aws::String>
56 void SetIndexName(IndexNameT&& value) {
57 m_indexNameHasBeenSet = true;
58 m_indexName = std::forward<IndexNameT>(value);
59 }
60 template <typename IndexNameT = Aws::String>
61 CreateIndexRequest& WithIndexName(IndexNameT&& value) {
62 SetIndexName(std::forward<IndexNameT>(value));
63 return *this;
64 }
66
68
74 inline Aws::Utils::DocumentView GetIndexSchema() const { return m_indexSchema; }
75 inline bool IndexSchemaHasBeenSet() const { return m_indexSchemaHasBeenSet; }
76 template <typename IndexSchemaT = Aws::Utils::Document>
77 void SetIndexSchema(IndexSchemaT&& value) {
78 m_indexSchemaHasBeenSet = true;
79 m_indexSchema = std::forward<IndexSchemaT>(value);
80 }
81 template <typename IndexSchemaT = Aws::Utils::Document>
82 CreateIndexRequest& WithIndexSchema(IndexSchemaT&& value) {
83 SetIndexSchema(std::forward<IndexSchemaT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_domainName;
89
90 Aws::String m_indexName;
91
92 Aws::Utils::Document m_indexSchema;
93 bool m_domainNameHasBeenSet = false;
94 bool m_indexNameHasBeenSet = false;
95 bool m_indexSchemaHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace OpenSearchService
100} // namespace Aws
AWS_OPENSEARCHSERVICE_API CreateIndexRequest()=default
CreateIndexRequest & WithDomainName(DomainNameT &&value)
CreateIndexRequest & WithIndexName(IndexNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
CreateIndexRequest & WithIndexSchema(IndexSchemaT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String