AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#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
35 {
36 public:
37 AWS_CLOUDSEARCH_API TextArrayOptions() = default;
38 AWS_CLOUDSEARCH_API TextArrayOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_CLOUDSEARCH_API TextArrayOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
50 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
51 template<typename DefaultValueT = Aws::String>
52 void SetDefaultValue(DefaultValueT&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::forward<DefaultValueT>(value); }
53 template<typename DefaultValueT = Aws::String>
54 TextArrayOptions& WithDefaultValue(DefaultValueT&& value) { SetDefaultValue(std::forward<DefaultValueT>(value)); return *this;}
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) { m_sourceFieldsHasBeenSet = true; m_sourceFields = std::forward<SourceFieldsT>(value); }
65 template<typename SourceFieldsT = Aws::String>
66 TextArrayOptions& WithSourceFields(SourceFieldsT&& value) { SetSourceFields(std::forward<SourceFieldsT>(value)); return *this;}
68
70
73 inline bool GetReturnEnabled() const { return m_returnEnabled; }
74 inline bool ReturnEnabledHasBeenSet() const { return m_returnEnabledHasBeenSet; }
75 inline void SetReturnEnabled(bool value) { m_returnEnabledHasBeenSet = true; m_returnEnabled = value; }
76 inline TextArrayOptions& WithReturnEnabled(bool value) { SetReturnEnabled(value); return *this;}
78
80
83 inline bool GetHighlightEnabled() const { return m_highlightEnabled; }
84 inline bool HighlightEnabledHasBeenSet() const { return m_highlightEnabledHasBeenSet; }
85 inline void SetHighlightEnabled(bool value) { m_highlightEnabledHasBeenSet = true; m_highlightEnabled = value; }
86 inline TextArrayOptions& WithHighlightEnabled(bool value) { SetHighlightEnabled(value); return *this;}
88
90
93 inline const Aws::String& GetAnalysisScheme() const { return m_analysisScheme; }
94 inline bool AnalysisSchemeHasBeenSet() const { return m_analysisSchemeHasBeenSet; }
95 template<typename AnalysisSchemeT = Aws::String>
96 void SetAnalysisScheme(AnalysisSchemeT&& value) { m_analysisSchemeHasBeenSet = true; m_analysisScheme = std::forward<AnalysisSchemeT>(value); }
97 template<typename AnalysisSchemeT = Aws::String>
98 TextArrayOptions& WithAnalysisScheme(AnalysisSchemeT&& value) { SetAnalysisScheme(std::forward<AnalysisSchemeT>(value)); return *this;}
100 private:
101
102 Aws::String m_defaultValue;
103 bool m_defaultValueHasBeenSet = false;
104
105 Aws::String m_sourceFields;
106 bool m_sourceFieldsHasBeenSet = false;
107
108 bool m_returnEnabled{false};
109 bool m_returnEnabledHasBeenSet = false;
110
111 bool m_highlightEnabled{false};
112 bool m_highlightEnabledHasBeenSet = false;
113
114 Aws::String m_analysisScheme;
115 bool m_analysisSchemeHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace CloudSearch
120} // 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