AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
UpdateIndexRequest.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/opensearchserverless/OpenSearchServerlessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Document.h>
11#include <utility>
12
13namespace Aws
14{
15namespace OpenSearchServerless
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_OPENSEARCHSERVERLESS_API UpdateIndexRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateIndex"; }
32
33 AWS_OPENSEARCHSERVERLESS_API Aws::String SerializePayload() const override;
34
35 AWS_OPENSEARCHSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template<typename IdT = Aws::String>
45 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
46 template<typename IdT = Aws::String>
47 UpdateIndexRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetIndexName() const { return m_indexName; }
55 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
56 template<typename IndexNameT = Aws::String>
57 void SetIndexName(IndexNameT&& value) { m_indexNameHasBeenSet = true; m_indexName = std::forward<IndexNameT>(value); }
58 template<typename IndexNameT = Aws::String>
59 UpdateIndexRequest& WithIndexName(IndexNameT&& value) { SetIndexName(std::forward<IndexNameT>(value)); return *this;}
61
63
67 inline Aws::Utils::DocumentView GetIndexSchema() const { return m_indexSchema; }
68 inline bool IndexSchemaHasBeenSet() const { return m_indexSchemaHasBeenSet; }
69 template<typename IndexSchemaT = Aws::Utils::Document>
70 void SetIndexSchema(IndexSchemaT&& value) { m_indexSchemaHasBeenSet = true; m_indexSchema = std::forward<IndexSchemaT>(value); }
71 template<typename IndexSchemaT = Aws::Utils::Document>
72 UpdateIndexRequest& WithIndexSchema(IndexSchemaT&& value) { SetIndexSchema(std::forward<IndexSchemaT>(value)); return *this;}
74 private:
75
76 Aws::String m_id;
77 bool m_idHasBeenSet = false;
78
79 Aws::String m_indexName;
80 bool m_indexNameHasBeenSet = false;
81
82 Aws::Utils::Document m_indexSchema;
83 bool m_indexSchemaHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace OpenSearchServerless
88} // 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