AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
OpensearchConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
10#include <aws/lexv2-models/model/ExactResponseFields.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexModelsV2 {
22namespace Model {
23
32 public:
33 AWS_LEXMODELSV2_API OpensearchConfiguration() = default;
36 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetDomainEndpoint() const { return m_domainEndpoint; }
43 inline bool DomainEndpointHasBeenSet() const { return m_domainEndpointHasBeenSet; }
44 template <typename DomainEndpointT = Aws::String>
45 void SetDomainEndpoint(DomainEndpointT&& value) {
46 m_domainEndpointHasBeenSet = true;
47 m_domainEndpoint = std::forward<DomainEndpointT>(value);
48 }
49 template <typename DomainEndpointT = Aws::String>
50 OpensearchConfiguration& WithDomainEndpoint(DomainEndpointT&& value) {
51 SetDomainEndpoint(std::forward<DomainEndpointT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetIndexName() const { return m_indexName; }
61 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
62 template <typename IndexNameT = Aws::String>
63 void SetIndexName(IndexNameT&& value) {
64 m_indexNameHasBeenSet = true;
65 m_indexName = std::forward<IndexNameT>(value);
66 }
67 template <typename IndexNameT = Aws::String>
69 SetIndexName(std::forward<IndexNameT>(value));
70 return *this;
71 }
73
75
79 inline bool GetExactResponse() const { return m_exactResponse; }
80 inline bool ExactResponseHasBeenSet() const { return m_exactResponseHasBeenSet; }
81 inline void SetExactResponse(bool value) {
82 m_exactResponseHasBeenSet = true;
83 m_exactResponse = value;
84 }
86 SetExactResponse(value);
87 return *this;
88 }
90
92
95 inline const ExactResponseFields& GetExactResponseFields() const { return m_exactResponseFields; }
96 inline bool ExactResponseFieldsHasBeenSet() const { return m_exactResponseFieldsHasBeenSet; }
97 template <typename ExactResponseFieldsT = ExactResponseFields>
98 void SetExactResponseFields(ExactResponseFieldsT&& value) {
99 m_exactResponseFieldsHasBeenSet = true;
100 m_exactResponseFields = std::forward<ExactResponseFieldsT>(value);
101 }
102 template <typename ExactResponseFieldsT = ExactResponseFields>
103 OpensearchConfiguration& WithExactResponseFields(ExactResponseFieldsT&& value) {
104 SetExactResponseFields(std::forward<ExactResponseFieldsT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::Vector<Aws::String>& GetIncludeFields() const { return m_includeFields; }
115 inline bool IncludeFieldsHasBeenSet() const { return m_includeFieldsHasBeenSet; }
116 template <typename IncludeFieldsT = Aws::Vector<Aws::String>>
117 void SetIncludeFields(IncludeFieldsT&& value) {
118 m_includeFieldsHasBeenSet = true;
119 m_includeFields = std::forward<IncludeFieldsT>(value);
120 }
121 template <typename IncludeFieldsT = Aws::Vector<Aws::String>>
123 SetIncludeFields(std::forward<IncludeFieldsT>(value));
124 return *this;
125 }
126 template <typename IncludeFieldsT = Aws::String>
127 OpensearchConfiguration& AddIncludeFields(IncludeFieldsT&& value) {
128 m_includeFieldsHasBeenSet = true;
129 m_includeFields.emplace_back(std::forward<IncludeFieldsT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_domainEndpoint;
135
136 Aws::String m_indexName;
137
138 bool m_exactResponse{false};
139
140 ExactResponseFields m_exactResponseFields;
141
142 Aws::Vector<Aws::String> m_includeFields;
143 bool m_domainEndpointHasBeenSet = false;
144 bool m_indexNameHasBeenSet = false;
145 bool m_exactResponseHasBeenSet = false;
146 bool m_exactResponseFieldsHasBeenSet = false;
147 bool m_includeFieldsHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace LexModelsV2
152} // namespace Aws
const ExactResponseFields & GetExactResponseFields() const
AWS_LEXMODELSV2_API OpensearchConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API OpensearchConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
OpensearchConfiguration & AddIncludeFields(IncludeFieldsT &&value)
void SetExactResponseFields(ExactResponseFieldsT &&value)
OpensearchConfiguration & WithIndexName(IndexNameT &&value)
OpensearchConfiguration & WithExactResponseFields(ExactResponseFieldsT &&value)
const Aws::Vector< Aws::String > & GetIncludeFields() const
OpensearchConfiguration & WithExactResponse(bool value)
AWS_LEXMODELSV2_API OpensearchConfiguration()=default
OpensearchConfiguration & WithDomainEndpoint(DomainEndpointT &&value)
OpensearchConfiguration & WithIncludeFields(IncludeFieldsT &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue