AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
AnalysisOptions.h
1
6#pragma once
7#include <aws/cloudsearch/CloudSearch_EXPORTS.h>
8#include <aws/cloudsearch/model/AlgorithmicStemming.h>
9#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudSearch {
21namespace Model {
22
30 public:
31 AWS_CLOUDSEARCH_API AnalysisOptions() = default;
32 AWS_CLOUDSEARCH_API AnalysisOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_CLOUDSEARCH_API AnalysisOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
51 inline const Aws::String& GetSynonyms() const { return m_synonyms; }
52 inline bool SynonymsHasBeenSet() const { return m_synonymsHasBeenSet; }
53 template <typename SynonymsT = Aws::String>
54 void SetSynonyms(SynonymsT&& value) {
55 m_synonymsHasBeenSet = true;
56 m_synonyms = std::forward<SynonymsT>(value);
57 }
58 template <typename SynonymsT = Aws::String>
59 AnalysisOptions& WithSynonyms(SynonymsT&& value) {
60 SetSynonyms(std::forward<SynonymsT>(value));
61 return *this;
62 }
64
66
72 inline const Aws::String& GetStopwords() const { return m_stopwords; }
73 inline bool StopwordsHasBeenSet() const { return m_stopwordsHasBeenSet; }
74 template <typename StopwordsT = Aws::String>
75 void SetStopwords(StopwordsT&& value) {
76 m_stopwordsHasBeenSet = true;
77 m_stopwords = std::forward<StopwordsT>(value);
78 }
79 template <typename StopwordsT = Aws::String>
80 AnalysisOptions& WithStopwords(StopwordsT&& value) {
81 SetStopwords(std::forward<StopwordsT>(value));
82 return *this;
83 }
85
87
95 inline const Aws::String& GetStemmingDictionary() const { return m_stemmingDictionary; }
96 inline bool StemmingDictionaryHasBeenSet() const { return m_stemmingDictionaryHasBeenSet; }
97 template <typename StemmingDictionaryT = Aws::String>
98 void SetStemmingDictionary(StemmingDictionaryT&& value) {
99 m_stemmingDictionaryHasBeenSet = true;
100 m_stemmingDictionary = std::forward<StemmingDictionaryT>(value);
101 }
102 template <typename StemmingDictionaryT = Aws::String>
103 AnalysisOptions& WithStemmingDictionary(StemmingDictionaryT&& value) {
104 SetStemmingDictionary(std::forward<StemmingDictionaryT>(value));
105 return *this;
106 }
108
110
116 inline const Aws::String& GetJapaneseTokenizationDictionary() const { return m_japaneseTokenizationDictionary; }
117 inline bool JapaneseTokenizationDictionaryHasBeenSet() const { return m_japaneseTokenizationDictionaryHasBeenSet; }
118 template <typename JapaneseTokenizationDictionaryT = Aws::String>
119 void SetJapaneseTokenizationDictionary(JapaneseTokenizationDictionaryT&& value) {
120 m_japaneseTokenizationDictionaryHasBeenSet = true;
121 m_japaneseTokenizationDictionary = std::forward<JapaneseTokenizationDictionaryT>(value);
122 }
123 template <typename JapaneseTokenizationDictionaryT = Aws::String>
124 AnalysisOptions& WithJapaneseTokenizationDictionary(JapaneseTokenizationDictionaryT&& value) {
125 SetJapaneseTokenizationDictionary(std::forward<JapaneseTokenizationDictionaryT>(value));
126 return *this;
127 }
129
131
139 inline AlgorithmicStemming GetAlgorithmicStemming() const { return m_algorithmicStemming; }
140 inline bool AlgorithmicStemmingHasBeenSet() const { return m_algorithmicStemmingHasBeenSet; }
142 m_algorithmicStemmingHasBeenSet = true;
143 m_algorithmicStemming = value;
144 }
147 return *this;
148 }
150 private:
151 Aws::String m_synonyms;
152
153 Aws::String m_stopwords;
154
155 Aws::String m_stemmingDictionary;
156
157 Aws::String m_japaneseTokenizationDictionary;
158
160 bool m_synonymsHasBeenSet = false;
161 bool m_stopwordsHasBeenSet = false;
162 bool m_stemmingDictionaryHasBeenSet = false;
163 bool m_japaneseTokenizationDictionaryHasBeenSet = false;
164 bool m_algorithmicStemmingHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace CloudSearch
169} // namespace Aws
AWS_CLOUDSEARCH_API AnalysisOptions()=default
const Aws::String & GetStemmingDictionary() const
AWS_CLOUDSEARCH_API AnalysisOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AnalysisOptions & WithJapaneseTokenizationDictionary(JapaneseTokenizationDictionaryT &&value)
AnalysisOptions & WithAlgorithmicStemming(AlgorithmicStemming value)
AnalysisOptions & WithSynonyms(SynonymsT &&value)
AnalysisOptions & WithStemmingDictionary(StemmingDictionaryT &&value)
AnalysisOptions & WithStopwords(StopwordsT &&value)
void SetAlgorithmicStemming(AlgorithmicStemming value)
AlgorithmicStemming GetAlgorithmicStemming() const
void SetStemmingDictionary(StemmingDictionaryT &&value)
const Aws::String & GetStopwords() const
void SetJapaneseTokenizationDictionary(JapaneseTokenizationDictionaryT &&value)
AWS_CLOUDSEARCH_API AnalysisOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetJapaneseTokenizationDictionary() const
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetSynonyms() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream