AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
TextArrayOptions.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
31 public:
32 AWS_CLOUDSEARCH_API TextArrayOptions() = default;
33 AWS_CLOUDSEARCH_API TextArrayOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_CLOUDSEARCH_API TextArrayOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
44 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
45 template <typename DefaultValueT = Aws::String>
46 void SetDefaultValue(DefaultValueT&& value) {
47 m_defaultValueHasBeenSet = true;
48 m_defaultValue = std::forward<DefaultValueT>(value);
49 }
50 template <typename DefaultValueT = Aws::String>
51 TextArrayOptions& WithDefaultValue(DefaultValueT&& value) {
52 SetDefaultValue(std::forward<DefaultValueT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetSourceFields() const { return m_sourceFields; }
62 inline bool SourceFieldsHasBeenSet() const { return m_sourceFieldsHasBeenSet; }
63 template <typename SourceFieldsT = Aws::String>
64 void SetSourceFields(SourceFieldsT&& value) {
65 m_sourceFieldsHasBeenSet = true;
66 m_sourceFields = std::forward<SourceFieldsT>(value);
67 }
68 template <typename SourceFieldsT = Aws::String>
69 TextArrayOptions& WithSourceFields(SourceFieldsT&& value) {
70 SetSourceFields(std::forward<SourceFieldsT>(value));
71 return *this;
72 }
74
76
79 inline bool GetReturnEnabled() const { return m_returnEnabled; }
80 inline bool ReturnEnabledHasBeenSet() const { return m_returnEnabledHasBeenSet; }
81 inline void SetReturnEnabled(bool value) {
82 m_returnEnabledHasBeenSet = true;
83 m_returnEnabled = value;
84 }
85 inline TextArrayOptions& WithReturnEnabled(bool value) {
86 SetReturnEnabled(value);
87 return *this;
88 }
90
92
95 inline bool GetHighlightEnabled() const { return m_highlightEnabled; }
96 inline bool HighlightEnabledHasBeenSet() const { return m_highlightEnabledHasBeenSet; }
97 inline void SetHighlightEnabled(bool value) {
98 m_highlightEnabledHasBeenSet = true;
99 m_highlightEnabled = value;
100 }
102 SetHighlightEnabled(value);
103 return *this;
104 }
106
108
111 inline const Aws::String& GetAnalysisScheme() const { return m_analysisScheme; }
112 inline bool AnalysisSchemeHasBeenSet() const { return m_analysisSchemeHasBeenSet; }
113 template <typename AnalysisSchemeT = Aws::String>
114 void SetAnalysisScheme(AnalysisSchemeT&& value) {
115 m_analysisSchemeHasBeenSet = true;
116 m_analysisScheme = std::forward<AnalysisSchemeT>(value);
117 }
118 template <typename AnalysisSchemeT = Aws::String>
119 TextArrayOptions& WithAnalysisScheme(AnalysisSchemeT&& value) {
120 SetAnalysisScheme(std::forward<AnalysisSchemeT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_defaultValue;
126
127 Aws::String m_sourceFields;
128
129 bool m_returnEnabled{false};
130
131 bool m_highlightEnabled{false};
132
133 Aws::String m_analysisScheme;
134 bool m_defaultValueHasBeenSet = false;
135 bool m_sourceFieldsHasBeenSet = false;
136 bool m_returnEnabledHasBeenSet = false;
137 bool m_highlightEnabledHasBeenSet = false;
138 bool m_analysisSchemeHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace CloudSearch
143} // namespace Aws
TextArrayOptions & WithReturnEnabled(bool value)
void SetDefaultValue(DefaultValueT &&value)
AWS_CLOUDSEARCH_API TextArrayOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSourceFields(SourceFieldsT &&value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TextArrayOptions & WithDefaultValue(DefaultValueT &&value)
TextArrayOptions & WithAnalysisScheme(AnalysisSchemeT &&value)
const Aws::String & GetSourceFields() const
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetDefaultValue() const
AWS_CLOUDSEARCH_API TextArrayOptions()=default
TextArrayOptions & WithHighlightEnabled(bool value)
void SetAnalysisScheme(AnalysisSchemeT &&value)
TextArrayOptions & WithSourceFields(SourceFieldsT &&value)
const Aws::String & GetAnalysisScheme() const
AWS_CLOUDSEARCH_API TextArrayOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream