AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
51 inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
52 inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
53 inline TextOptions& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
54 inline TextOptions& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
55 inline TextOptions& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
57
59
60 inline const Aws::String& GetSourceField() const{ return m_sourceField; }
61 inline bool SourceFieldHasBeenSet() const { return m_sourceFieldHasBeenSet; }
62 inline void SetSourceField(const Aws::String& value) { m_sourceFieldHasBeenSet = true; m_sourceField = value; }
63 inline void SetSourceField(Aws::String&& value) { m_sourceFieldHasBeenSet = true; m_sourceField = std::move(value); }
64 inline void SetSourceField(const char* value) { m_sourceFieldHasBeenSet = true; m_sourceField.assign(value); }
65 inline TextOptions& WithSourceField(const Aws::String& value) { SetSourceField(value); return *this;}
66 inline TextOptions& WithSourceField(Aws::String&& value) { SetSourceField(std::move(value)); return *this;}
67 inline TextOptions& WithSourceField(const char* value) { SetSourceField(value); return *this;}
69
71
74 inline bool GetReturnEnabled() const{ return m_returnEnabled; }
75 inline bool ReturnEnabledHasBeenSet() const { return m_returnEnabledHasBeenSet; }
76 inline void SetReturnEnabled(bool value) { m_returnEnabledHasBeenSet = true; m_returnEnabled = value; }
77 inline TextOptions& WithReturnEnabled(bool value) { SetReturnEnabled(value); return *this;}
79
81
84 inline bool GetSortEnabled() const{ return m_sortEnabled; }
85 inline bool SortEnabledHasBeenSet() const { return m_sortEnabledHasBeenSet; }
86 inline void SetSortEnabled(bool value) { m_sortEnabledHasBeenSet = true; m_sortEnabled = value; }
87 inline TextOptions& WithSortEnabled(bool value) { SetSortEnabled(value); return *this;}
89
91
94 inline bool GetHighlightEnabled() const{ return m_highlightEnabled; }
95 inline bool HighlightEnabledHasBeenSet() const { return m_highlightEnabledHasBeenSet; }
96 inline void SetHighlightEnabled(bool value) { m_highlightEnabledHasBeenSet = true; m_highlightEnabled = value; }
97 inline TextOptions& WithHighlightEnabled(bool value) { SetHighlightEnabled(value); return *this;}
99
101
104 inline const Aws::String& GetAnalysisScheme() const{ return m_analysisScheme; }
105 inline bool AnalysisSchemeHasBeenSet() const { return m_analysisSchemeHasBeenSet; }
106 inline void SetAnalysisScheme(const Aws::String& value) { m_analysisSchemeHasBeenSet = true; m_analysisScheme = value; }
107 inline void SetAnalysisScheme(Aws::String&& value) { m_analysisSchemeHasBeenSet = true; m_analysisScheme = std::move(value); }
108 inline void SetAnalysisScheme(const char* value) { m_analysisSchemeHasBeenSet = true; m_analysisScheme.assign(value); }
109 inline TextOptions& WithAnalysisScheme(const Aws::String& value) { SetAnalysisScheme(value); return *this;}
110 inline TextOptions& WithAnalysisScheme(Aws::String&& value) { SetAnalysisScheme(std::move(value)); return *this;}
111 inline TextOptions& WithAnalysisScheme(const char* value) { SetAnalysisScheme(value); return *this;}
113 private:
114
115 Aws::String m_defaultValue;
116 bool m_defaultValueHasBeenSet = false;
117
118 Aws::String m_sourceField;
119 bool m_sourceFieldHasBeenSet = false;
120
121 bool m_returnEnabled;
122 bool m_returnEnabledHasBeenSet = false;
123
124 bool m_sortEnabled;
125 bool m_sortEnabledHasBeenSet = false;
126
127 bool m_highlightEnabled;
128 bool m_highlightEnabledHasBeenSet = false;
129
130 Aws::String m_analysisScheme;
131 bool m_analysisSchemeHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace CloudSearch
136} // namespace Aws
void SetSourceField(const char *value)
Definition TextOptions.h:64
AWS_CLOUDSEARCH_API TextOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
TextOptions & WithSourceField(const char *value)
Definition TextOptions.h:67
const Aws::String & GetDefaultValue() const
Definition TextOptions.h:48
TextOptions & WithDefaultValue(Aws::String &&value)
Definition TextOptions.h:54
TextOptions & WithSortEnabled(bool value)
Definition TextOptions.h:87
TextOptions & WithAnalysisScheme(Aws::String &&value)
void SetDefaultValue(Aws::String &&value)
Definition TextOptions.h:51
TextOptions & WithDefaultValue(const char *value)
Definition TextOptions.h:55
AWS_CLOUDSEARCH_API TextOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetAnalysisScheme(const char *value)
void SetDefaultValue(const char *value)
Definition TextOptions.h:52
const Aws::String & GetAnalysisScheme() const
TextOptions & WithDefaultValue(const Aws::String &value)
Definition TextOptions.h:53
void SetAnalysisScheme(const Aws::String &value)
void SetSourceField(const Aws::String &value)
Definition TextOptions.h:62
const Aws::String & GetSourceField() const
Definition TextOptions.h:60
TextOptions & WithAnalysisScheme(const Aws::String &value)
TextOptions & WithHighlightEnabled(bool value)
Definition TextOptions.h:97
TextOptions & WithAnalysisScheme(const char *value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDSEARCH_API TextOptions()
void SetSourceField(Aws::String &&value)
Definition TextOptions.h:63
void SetAnalysisScheme(Aws::String &&value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TextOptions & WithSourceField(const Aws::String &value)
Definition TextOptions.h:65
TextOptions & WithSourceField(Aws::String &&value)
Definition TextOptions.h:66
void SetDefaultValue(const Aws::String &value)
Definition TextOptions.h:50
TextOptions & WithReturnEnabled(bool value)
Definition TextOptions.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream