AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AnalysisOptions.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 <aws/cloudsearch/model/AlgorithmicStemming.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudSearch
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLOUDSEARCH_API AnalysisOptions() = default;
37 AWS_CLOUDSEARCH_API AnalysisOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDSEARCH_API AnalysisOptions& 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
57 inline const Aws::String& GetSynonyms() const { return m_synonyms; }
58 inline bool SynonymsHasBeenSet() const { return m_synonymsHasBeenSet; }
59 template<typename SynonymsT = Aws::String>
60 void SetSynonyms(SynonymsT&& value) { m_synonymsHasBeenSet = true; m_synonyms = std::forward<SynonymsT>(value); }
61 template<typename SynonymsT = Aws::String>
62 AnalysisOptions& WithSynonyms(SynonymsT&& value) { SetSynonyms(std::forward<SynonymsT>(value)); return *this;}
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) { m_stopwordsHasBeenSet = true; m_stopwords = std::forward<StopwordsT>(value); }
76 template<typename StopwordsT = Aws::String>
77 AnalysisOptions& WithStopwords(StopwordsT&& value) { SetStopwords(std::forward<StopwordsT>(value)); return *this;}
79
81
89 inline const Aws::String& GetStemmingDictionary() const { return m_stemmingDictionary; }
90 inline bool StemmingDictionaryHasBeenSet() const { return m_stemmingDictionaryHasBeenSet; }
91 template<typename StemmingDictionaryT = Aws::String>
92 void SetStemmingDictionary(StemmingDictionaryT&& value) { m_stemmingDictionaryHasBeenSet = true; m_stemmingDictionary = std::forward<StemmingDictionaryT>(value); }
93 template<typename StemmingDictionaryT = Aws::String>
94 AnalysisOptions& WithStemmingDictionary(StemmingDictionaryT&& value) { SetStemmingDictionary(std::forward<StemmingDictionaryT>(value)); return *this;}
96
98
104 inline const Aws::String& GetJapaneseTokenizationDictionary() const { return m_japaneseTokenizationDictionary; }
105 inline bool JapaneseTokenizationDictionaryHasBeenSet() const { return m_japaneseTokenizationDictionaryHasBeenSet; }
106 template<typename JapaneseTokenizationDictionaryT = Aws::String>
107 void SetJapaneseTokenizationDictionary(JapaneseTokenizationDictionaryT&& value) { m_japaneseTokenizationDictionaryHasBeenSet = true; m_japaneseTokenizationDictionary = std::forward<JapaneseTokenizationDictionaryT>(value); }
108 template<typename JapaneseTokenizationDictionaryT = Aws::String>
109 AnalysisOptions& WithJapaneseTokenizationDictionary(JapaneseTokenizationDictionaryT&& value) { SetJapaneseTokenizationDictionary(std::forward<JapaneseTokenizationDictionaryT>(value)); return *this;}
111
113
121 inline AlgorithmicStemming GetAlgorithmicStemming() const { return m_algorithmicStemming; }
122 inline bool AlgorithmicStemmingHasBeenSet() const { return m_algorithmicStemmingHasBeenSet; }
123 inline void SetAlgorithmicStemming(AlgorithmicStemming value) { m_algorithmicStemmingHasBeenSet = true; m_algorithmicStemming = value; }
126 private:
127
128 Aws::String m_synonyms;
129 bool m_synonymsHasBeenSet = false;
130
131 Aws::String m_stopwords;
132 bool m_stopwordsHasBeenSet = false;
133
134 Aws::String m_stemmingDictionary;
135 bool m_stemmingDictionaryHasBeenSet = false;
136
137 Aws::String m_japaneseTokenizationDictionary;
138 bool m_japaneseTokenizationDictionaryHasBeenSet = false;
139
141 bool m_algorithmicStemmingHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace CloudSearch
146} // 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