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/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 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_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 UpdateIndexRequest& WithDomainName(DomainNameT&& value) {
43 SetDomainName(std::forward<DomainNameT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetIndexName() const { return m_indexName; }
53 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
54 template <typename IndexNameT = Aws::String>
55 void SetIndexName(IndexNameT&& value) {
56 m_indexNameHasBeenSet = true;
57 m_indexName = std::forward<IndexNameT>(value);
58 }
59 template <typename IndexNameT = Aws::String>
60 UpdateIndexRequest& WithIndexName(IndexNameT&& value) {
61 SetIndexName(std::forward<IndexNameT>(value));
62 return *this;
63 }
65
67
71 inline Aws::Utils::DocumentView GetIndexSchema() const { return m_indexSchema; }
72 inline bool IndexSchemaHasBeenSet() const { return m_indexSchemaHasBeenSet; }
73 template <typename IndexSchemaT = Aws::Utils::Document>
74 void SetIndexSchema(IndexSchemaT&& value) {
75 m_indexSchemaHasBeenSet = true;
76 m_indexSchema = std::forward<IndexSchemaT>(value);
77 }
78 template <typename IndexSchemaT = Aws::Utils::Document>
79 UpdateIndexRequest& WithIndexSchema(IndexSchemaT&& value) {
80 SetIndexSchema(std::forward<IndexSchemaT>(value));
81 return *this;
82 }
84 private:
85 Aws::String m_domainName;
86
87 Aws::String m_indexName;
88
89 Aws::Utils::Document m_indexSchema;
90 bool m_domainNameHasBeenSet = false;
91 bool m_indexNameHasBeenSet = false;
92 bool m_indexSchemaHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace OpenSearchService
97} // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdateIndexRequest & WithIndexSchema(IndexSchemaT &&value)
UpdateIndexRequest & WithDomainName(DomainNameT &&value)
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
AWS_OPENSEARCHSERVICE_API UpdateIndexRequest()=default
UpdateIndexRequest & WithIndexName(IndexNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String