AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
TextOptions.h
1
6#pragma once
7#include <aws/cloudsearch/CloudSearch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace CloudSearch {
20namespace Model {
21
30 public:
31 AWS_CLOUDSEARCH_API TextOptions() = default;
32 AWS_CLOUDSEARCH_API TextOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_CLOUDSEARCH_API TextOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
43 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
44 template <typename DefaultValueT = Aws::String>
45 void SetDefaultValue(DefaultValueT&& value) {
46 m_defaultValueHasBeenSet = true;
47 m_defaultValue = std::forward<DefaultValueT>(value);
48 }
49 template <typename DefaultValueT = Aws::String>
50 TextOptions& WithDefaultValue(DefaultValueT&& value) {
51 SetDefaultValue(std::forward<DefaultValueT>(value));
52 return *this;
53 }
55
57
58 inline const Aws::String& GetSourceField() const { return m_sourceField; }
59 inline bool SourceFieldHasBeenSet() const { return m_sourceFieldHasBeenSet; }
60 template <typename SourceFieldT = Aws::String>
61 void SetSourceField(SourceFieldT&& value) {
62 m_sourceFieldHasBeenSet = true;
63 m_sourceField = std::forward<SourceFieldT>(value);
64 }
65 template <typename SourceFieldT = Aws::String>
66 TextOptions& WithSourceField(SourceFieldT&& value) {
67 SetSourceField(std::forward<SourceFieldT>(value));
68 return *this;
69 }
71
73
76 inline bool GetReturnEnabled() const { return m_returnEnabled; }
77 inline bool ReturnEnabledHasBeenSet() const { return m_returnEnabledHasBeenSet; }
78 inline void SetReturnEnabled(bool value) {
79 m_returnEnabledHasBeenSet = true;
80 m_returnEnabled = value;
81 }
82 inline TextOptions& WithReturnEnabled(bool value) {
83 SetReturnEnabled(value);
84 return *this;
85 }
87
89
92 inline bool GetSortEnabled() const { return m_sortEnabled; }
93 inline bool SortEnabledHasBeenSet() const { return m_sortEnabledHasBeenSet; }
94 inline void SetSortEnabled(bool value) {
95 m_sortEnabledHasBeenSet = true;
96 m_sortEnabled = value;
97 }
98 inline TextOptions& WithSortEnabled(bool value) {
99 SetSortEnabled(value);
100 return *this;
101 }
103
105
108 inline bool GetHighlightEnabled() const { return m_highlightEnabled; }
109 inline bool HighlightEnabledHasBeenSet() const { return m_highlightEnabledHasBeenSet; }
110 inline void SetHighlightEnabled(bool value) {
111 m_highlightEnabledHasBeenSet = true;
112 m_highlightEnabled = value;
113 }
114 inline TextOptions& WithHighlightEnabled(bool value) {
115 SetHighlightEnabled(value);
116 return *this;
117 }
119
121
124 inline const Aws::String& GetAnalysisScheme() const { return m_analysisScheme; }
125 inline bool AnalysisSchemeHasBeenSet() const { return m_analysisSchemeHasBeenSet; }
126 template <typename AnalysisSchemeT = Aws::String>
127 void SetAnalysisScheme(AnalysisSchemeT&& value) {
128 m_analysisSchemeHasBeenSet = true;
129 m_analysisScheme = std::forward<AnalysisSchemeT>(value);
130 }
131 template <typename AnalysisSchemeT = Aws::String>
132 TextOptions& WithAnalysisScheme(AnalysisSchemeT&& value) {
133 SetAnalysisScheme(std::forward<AnalysisSchemeT>(value));
134 return *this;
135 }
137 private:
138 Aws::String m_defaultValue;
139
140 Aws::String m_sourceField;
141
142 bool m_returnEnabled{false};
143
144 bool m_sortEnabled{false};
145
146 bool m_highlightEnabled{false};
147
148 Aws::String m_analysisScheme;
149 bool m_defaultValueHasBeenSet = false;
150 bool m_sourceFieldHasBeenSet = false;
151 bool m_returnEnabledHasBeenSet = false;
152 bool m_sortEnabledHasBeenSet = false;
153 bool m_highlightEnabledHasBeenSet = false;
154 bool m_analysisSchemeHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace CloudSearch
159} // namespace Aws
AWS_CLOUDSEARCH_API TextOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
TextOptions & WithSourceField(SourceFieldT &&value)
Definition TextOptions.h:66
const Aws::String & GetDefaultValue() const
Definition TextOptions.h:42
TextOptions & WithSortEnabled(bool value)
Definition TextOptions.h:98
AWS_CLOUDSEARCH_API TextOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDefaultValue(DefaultValueT &&value)
Definition TextOptions.h:45
const Aws::String & GetAnalysisScheme() const
TextOptions & WithDefaultValue(DefaultValueT &&value)
Definition TextOptions.h:50
TextOptions & WithAnalysisScheme(AnalysisSchemeT &&value)
const Aws::String & GetSourceField() const
Definition TextOptions.h:58
TextOptions & WithHighlightEnabled(bool value)
void SetSourceField(SourceFieldT &&value)
Definition TextOptions.h:61
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAnalysisScheme(AnalysisSchemeT &&value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDSEARCH_API TextOptions()=default
TextOptions & WithReturnEnabled(bool value)
Definition TextOptions.h:82
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream