AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
52 inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
53 inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
54 inline TextArrayOptions& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
55 inline TextArrayOptions& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
56 inline TextArrayOptions& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
58
60
63 inline const Aws::String& GetSourceFields() const{ return m_sourceFields; }
64 inline bool SourceFieldsHasBeenSet() const { return m_sourceFieldsHasBeenSet; }
65 inline void SetSourceFields(const Aws::String& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = value; }
66 inline void SetSourceFields(Aws::String&& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = std::move(value); }
67 inline void SetSourceFields(const char* value) { m_sourceFieldsHasBeenSet = true; m_sourceFields.assign(value); }
68 inline TextArrayOptions& WithSourceFields(const Aws::String& value) { SetSourceFields(value); return *this;}
69 inline TextArrayOptions& WithSourceFields(Aws::String&& value) { SetSourceFields(std::move(value)); return *this;}
70 inline TextArrayOptions& WithSourceFields(const char* value) { SetSourceFields(value); return *this;}
72
74
77 inline bool GetReturnEnabled() const{ return m_returnEnabled; }
78 inline bool ReturnEnabledHasBeenSet() const { return m_returnEnabledHasBeenSet; }
79 inline void SetReturnEnabled(bool value) { m_returnEnabledHasBeenSet = true; m_returnEnabled = value; }
80 inline TextArrayOptions& WithReturnEnabled(bool value) { SetReturnEnabled(value); return *this;}
82
84
87 inline bool GetHighlightEnabled() const{ return m_highlightEnabled; }
88 inline bool HighlightEnabledHasBeenSet() const { return m_highlightEnabledHasBeenSet; }
89 inline void SetHighlightEnabled(bool value) { m_highlightEnabledHasBeenSet = true; m_highlightEnabled = value; }
90 inline TextArrayOptions& WithHighlightEnabled(bool value) { SetHighlightEnabled(value); return *this;}
92
94
97 inline const Aws::String& GetAnalysisScheme() const{ return m_analysisScheme; }
98 inline bool AnalysisSchemeHasBeenSet() const { return m_analysisSchemeHasBeenSet; }
99 inline void SetAnalysisScheme(const Aws::String& value) { m_analysisSchemeHasBeenSet = true; m_analysisScheme = value; }
100 inline void SetAnalysisScheme(Aws::String&& value) { m_analysisSchemeHasBeenSet = true; m_analysisScheme = std::move(value); }
101 inline void SetAnalysisScheme(const char* value) { m_analysisSchemeHasBeenSet = true; m_analysisScheme.assign(value); }
102 inline TextArrayOptions& WithAnalysisScheme(const Aws::String& value) { SetAnalysisScheme(value); return *this;}
103 inline TextArrayOptions& WithAnalysisScheme(Aws::String&& value) { SetAnalysisScheme(std::move(value)); return *this;}
104 inline TextArrayOptions& WithAnalysisScheme(const char* value) { SetAnalysisScheme(value); return *this;}
106 private:
107
108 Aws::String m_defaultValue;
109 bool m_defaultValueHasBeenSet = false;
110
111 Aws::String m_sourceFields;
112 bool m_sourceFieldsHasBeenSet = false;
113
114 bool m_returnEnabled;
115 bool m_returnEnabledHasBeenSet = false;
116
117 bool m_highlightEnabled;
118 bool m_highlightEnabledHasBeenSet = false;
119
120 Aws::String m_analysisScheme;
121 bool m_analysisSchemeHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace CloudSearch
126} // namespace Aws
void SetAnalysisScheme(const Aws::String &value)
TextArrayOptions & WithSourceFields(Aws::String &&value)
TextArrayOptions & WithReturnEnabled(bool value)
TextArrayOptions & WithDefaultValue(Aws::String &&value)
AWS_CLOUDSEARCH_API TextArrayOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
TextArrayOptions & WithSourceFields(const Aws::String &value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSourceFields(const Aws::String &value)
void SetDefaultValue(const Aws::String &value)
const Aws::String & GetSourceFields() const
TextArrayOptions & WithAnalysisScheme(const Aws::String &value)
TextArrayOptions & WithSourceFields(const char *value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetDefaultValue() const
TextArrayOptions & WithDefaultValue(const Aws::String &value)
TextArrayOptions & WithHighlightEnabled(bool value)
TextArrayOptions & WithAnalysisScheme(const char *value)
TextArrayOptions & WithAnalysisScheme(Aws::String &&value)
const Aws::String & GetAnalysisScheme() const
TextArrayOptions & WithDefaultValue(const char *value)
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