AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudSearch
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_CLOUDSEARCH_API TextOptions() = default;
37 AWS_CLOUDSEARCH_API TextOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDSEARCH_API TextOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
49 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
50 template<typename DefaultValueT = Aws::String>
51 void SetDefaultValue(DefaultValueT&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::forward<DefaultValueT>(value); }
52 template<typename DefaultValueT = Aws::String>
53 TextOptions& WithDefaultValue(DefaultValueT&& value) { SetDefaultValue(std::forward<DefaultValueT>(value)); return *this;}
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) { m_sourceFieldHasBeenSet = true; m_sourceField = std::forward<SourceFieldT>(value); }
62 template<typename SourceFieldT = Aws::String>
63 TextOptions& WithSourceField(SourceFieldT&& value) { SetSourceField(std::forward<SourceFieldT>(value)); return *this;}
65
67
70 inline bool GetReturnEnabled() const { return m_returnEnabled; }
71 inline bool ReturnEnabledHasBeenSet() const { return m_returnEnabledHasBeenSet; }
72 inline void SetReturnEnabled(bool value) { m_returnEnabledHasBeenSet = true; m_returnEnabled = value; }
73 inline TextOptions& WithReturnEnabled(bool value) { SetReturnEnabled(value); return *this;}
75
77
80 inline bool GetSortEnabled() const { return m_sortEnabled; }
81 inline bool SortEnabledHasBeenSet() const { return m_sortEnabledHasBeenSet; }
82 inline void SetSortEnabled(bool value) { m_sortEnabledHasBeenSet = true; m_sortEnabled = value; }
83 inline TextOptions& WithSortEnabled(bool value) { SetSortEnabled(value); return *this;}
85
87
90 inline bool GetHighlightEnabled() const { return m_highlightEnabled; }
91 inline bool HighlightEnabledHasBeenSet() const { return m_highlightEnabledHasBeenSet; }
92 inline void SetHighlightEnabled(bool value) { m_highlightEnabledHasBeenSet = true; m_highlightEnabled = value; }
93 inline TextOptions& WithHighlightEnabled(bool value) { SetHighlightEnabled(value); return *this;}
95
97
100 inline const Aws::String& GetAnalysisScheme() const { return m_analysisScheme; }
101 inline bool AnalysisSchemeHasBeenSet() const { return m_analysisSchemeHasBeenSet; }
102 template<typename AnalysisSchemeT = Aws::String>
103 void SetAnalysisScheme(AnalysisSchemeT&& value) { m_analysisSchemeHasBeenSet = true; m_analysisScheme = std::forward<AnalysisSchemeT>(value); }
104 template<typename AnalysisSchemeT = Aws::String>
105 TextOptions& WithAnalysisScheme(AnalysisSchemeT&& value) { SetAnalysisScheme(std::forward<AnalysisSchemeT>(value)); return *this;}
107 private:
108
109 Aws::String m_defaultValue;
110 bool m_defaultValueHasBeenSet = false;
111
112 Aws::String m_sourceField;
113 bool m_sourceFieldHasBeenSet = false;
114
115 bool m_returnEnabled{false};
116 bool m_returnEnabledHasBeenSet = false;
117
118 bool m_sortEnabled{false};
119 bool m_sortEnabledHasBeenSet = false;
120
121 bool m_highlightEnabled{false};
122 bool m_highlightEnabledHasBeenSet = false;
123
124 Aws::String m_analysisScheme;
125 bool m_analysisSchemeHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace CloudSearch
130} // namespace Aws
AWS_CLOUDSEARCH_API TextOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
TextOptions & WithSourceField(SourceFieldT &&value)
Definition TextOptions.h:63
const Aws::String & GetDefaultValue() const
Definition TextOptions.h:48
TextOptions & WithSortEnabled(bool value)
Definition TextOptions.h:83
AWS_CLOUDSEARCH_API TextOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDefaultValue(DefaultValueT &&value)
Definition TextOptions.h:51
const Aws::String & GetAnalysisScheme() const
TextOptions & WithDefaultValue(DefaultValueT &&value)
Definition TextOptions.h:53
TextOptions & WithAnalysisScheme(AnalysisSchemeT &&value)
const Aws::String & GetSourceField() const
Definition TextOptions.h:58
TextOptions & WithHighlightEnabled(bool value)
Definition TextOptions.h:93
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:73
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream