AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OpensearchConfiguration.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lexv2-models/model/ExactResponseFields.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LexModelsV2
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_LEXMODELSV2_API OpensearchConfiguration();
41 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetDomainEndpoint() const{ return m_domainEndpoint; }
49 inline bool DomainEndpointHasBeenSet() const { return m_domainEndpointHasBeenSet; }
50 inline void SetDomainEndpoint(const Aws::String& value) { m_domainEndpointHasBeenSet = true; m_domainEndpoint = value; }
51 inline void SetDomainEndpoint(Aws::String&& value) { m_domainEndpointHasBeenSet = true; m_domainEndpoint = std::move(value); }
52 inline void SetDomainEndpoint(const char* value) { m_domainEndpointHasBeenSet = true; m_domainEndpoint.assign(value); }
53 inline OpensearchConfiguration& WithDomainEndpoint(const Aws::String& value) { SetDomainEndpoint(value); return *this;}
54 inline OpensearchConfiguration& WithDomainEndpoint(Aws::String&& value) { SetDomainEndpoint(std::move(value)); return *this;}
55 inline OpensearchConfiguration& WithDomainEndpoint(const char* value) { SetDomainEndpoint(value); return *this;}
57
59
62 inline const Aws::String& GetIndexName() const{ return m_indexName; }
63 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
64 inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
65 inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = std::move(value); }
66 inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
67 inline OpensearchConfiguration& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
68 inline OpensearchConfiguration& WithIndexName(Aws::String&& value) { SetIndexName(std::move(value)); return *this;}
69 inline OpensearchConfiguration& WithIndexName(const char* value) { SetIndexName(value); return *this;}
71
73
77 inline bool GetExactResponse() const{ return m_exactResponse; }
78 inline bool ExactResponseHasBeenSet() const { return m_exactResponseHasBeenSet; }
79 inline void SetExactResponse(bool value) { m_exactResponseHasBeenSet = true; m_exactResponse = value; }
80 inline OpensearchConfiguration& WithExactResponse(bool value) { SetExactResponse(value); return *this;}
82
84
87 inline const ExactResponseFields& GetExactResponseFields() const{ return m_exactResponseFields; }
88 inline bool ExactResponseFieldsHasBeenSet() const { return m_exactResponseFieldsHasBeenSet; }
89 inline void SetExactResponseFields(const ExactResponseFields& value) { m_exactResponseFieldsHasBeenSet = true; m_exactResponseFields = value; }
90 inline void SetExactResponseFields(ExactResponseFields&& value) { m_exactResponseFieldsHasBeenSet = true; m_exactResponseFields = std::move(value); }
94
96
100 inline const Aws::Vector<Aws::String>& GetIncludeFields() const{ return m_includeFields; }
101 inline bool IncludeFieldsHasBeenSet() const { return m_includeFieldsHasBeenSet; }
102 inline void SetIncludeFields(const Aws::Vector<Aws::String>& value) { m_includeFieldsHasBeenSet = true; m_includeFields = value; }
103 inline void SetIncludeFields(Aws::Vector<Aws::String>&& value) { m_includeFieldsHasBeenSet = true; m_includeFields = std::move(value); }
105 inline OpensearchConfiguration& WithIncludeFields(Aws::Vector<Aws::String>&& value) { SetIncludeFields(std::move(value)); return *this;}
106 inline OpensearchConfiguration& AddIncludeFields(const Aws::String& value) { m_includeFieldsHasBeenSet = true; m_includeFields.push_back(value); return *this; }
107 inline OpensearchConfiguration& AddIncludeFields(Aws::String&& value) { m_includeFieldsHasBeenSet = true; m_includeFields.push_back(std::move(value)); return *this; }
108 inline OpensearchConfiguration& AddIncludeFields(const char* value) { m_includeFieldsHasBeenSet = true; m_includeFields.push_back(value); return *this; }
110 private:
111
112 Aws::String m_domainEndpoint;
113 bool m_domainEndpointHasBeenSet = false;
114
115 Aws::String m_indexName;
116 bool m_indexNameHasBeenSet = false;
117
118 bool m_exactResponse;
119 bool m_exactResponseHasBeenSet = false;
120
121 ExactResponseFields m_exactResponseFields;
122 bool m_exactResponseFieldsHasBeenSet = false;
123
124 Aws::Vector<Aws::String> m_includeFields;
125 bool m_includeFieldsHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace LexModelsV2
130} // namespace Aws
OpensearchConfiguration & WithDomainEndpoint(const char *value)
OpensearchConfiguration & WithIncludeFields(const Aws::Vector< Aws::String > &value)
OpensearchConfiguration & AddIncludeFields(const Aws::String &value)
const ExactResponseFields & GetExactResponseFields() const
OpensearchConfiguration & WithIndexName(const Aws::String &value)
AWS_LEXMODELSV2_API OpensearchConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API OpensearchConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
OpensearchConfiguration & WithDomainEndpoint(const Aws::String &value)
void SetExactResponseFields(ExactResponseFields &&value)
const Aws::Vector< Aws::String > & GetIncludeFields() const
OpensearchConfiguration & WithIndexName(Aws::String &&value)
OpensearchConfiguration & WithExactResponse(bool value)
OpensearchConfiguration & AddIncludeFields(Aws::String &&value)
OpensearchConfiguration & WithExactResponseFields(const ExactResponseFields &value)
OpensearchConfiguration & WithExactResponseFields(ExactResponseFields &&value)
OpensearchConfiguration & WithIncludeFields(Aws::Vector< Aws::String > &&value)
void SetIncludeFields(Aws::Vector< Aws::String > &&value)
OpensearchConfiguration & WithIndexName(const char *value)
void SetIncludeFields(const Aws::Vector< Aws::String > &value)
OpensearchConfiguration & WithDomainEndpoint(Aws::String &&value)
OpensearchConfiguration & AddIncludeFields(const char *value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetExactResponseFields(const ExactResponseFields &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue