AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetSynonyms(const Aws::String& value) { m_synonymsHasBeenSet = true; m_synonyms = value; }
60 inline void SetSynonyms(Aws::String&& value) { m_synonymsHasBeenSet = true; m_synonyms = std::move(value); }
61 inline void SetSynonyms(const char* value) { m_synonymsHasBeenSet = true; m_synonyms.assign(value); }
62 inline AnalysisOptions& WithSynonyms(const Aws::String& value) { SetSynonyms(value); return *this;}
63 inline AnalysisOptions& WithSynonyms(Aws::String&& value) { SetSynonyms(std::move(value)); return *this;}
64 inline AnalysisOptions& WithSynonyms(const char* value) { SetSynonyms(value); return *this;}
66
68
74 inline const Aws::String& GetStopwords() const{ return m_stopwords; }
75 inline bool StopwordsHasBeenSet() const { return m_stopwordsHasBeenSet; }
76 inline void SetStopwords(const Aws::String& value) { m_stopwordsHasBeenSet = true; m_stopwords = value; }
77 inline void SetStopwords(Aws::String&& value) { m_stopwordsHasBeenSet = true; m_stopwords = std::move(value); }
78 inline void SetStopwords(const char* value) { m_stopwordsHasBeenSet = true; m_stopwords.assign(value); }
79 inline AnalysisOptions& WithStopwords(const Aws::String& value) { SetStopwords(value); return *this;}
80 inline AnalysisOptions& WithStopwords(Aws::String&& value) { SetStopwords(std::move(value)); return *this;}
81 inline AnalysisOptions& WithStopwords(const char* value) { SetStopwords(value); return *this;}
83
85
93 inline const Aws::String& GetStemmingDictionary() const{ return m_stemmingDictionary; }
94 inline bool StemmingDictionaryHasBeenSet() const { return m_stemmingDictionaryHasBeenSet; }
95 inline void SetStemmingDictionary(const Aws::String& value) { m_stemmingDictionaryHasBeenSet = true; m_stemmingDictionary = value; }
96 inline void SetStemmingDictionary(Aws::String&& value) { m_stemmingDictionaryHasBeenSet = true; m_stemmingDictionary = std::move(value); }
97 inline void SetStemmingDictionary(const char* value) { m_stemmingDictionaryHasBeenSet = true; m_stemmingDictionary.assign(value); }
98 inline AnalysisOptions& WithStemmingDictionary(const Aws::String& value) { SetStemmingDictionary(value); return *this;}
99 inline AnalysisOptions& WithStemmingDictionary(Aws::String&& value) { SetStemmingDictionary(std::move(value)); return *this;}
100 inline AnalysisOptions& WithStemmingDictionary(const char* value) { SetStemmingDictionary(value); return *this;}
102
104
110 inline const Aws::String& GetJapaneseTokenizationDictionary() const{ return m_japaneseTokenizationDictionary; }
111 inline bool JapaneseTokenizationDictionaryHasBeenSet() const { return m_japaneseTokenizationDictionaryHasBeenSet; }
112 inline void SetJapaneseTokenizationDictionary(const Aws::String& value) { m_japaneseTokenizationDictionaryHasBeenSet = true; m_japaneseTokenizationDictionary = value; }
113 inline void SetJapaneseTokenizationDictionary(Aws::String&& value) { m_japaneseTokenizationDictionaryHasBeenSet = true; m_japaneseTokenizationDictionary = std::move(value); }
114 inline void SetJapaneseTokenizationDictionary(const char* value) { m_japaneseTokenizationDictionaryHasBeenSet = true; m_japaneseTokenizationDictionary.assign(value); }
119
121
129 inline const AlgorithmicStemming& GetAlgorithmicStemming() const{ return m_algorithmicStemming; }
130 inline bool AlgorithmicStemmingHasBeenSet() const { return m_algorithmicStemmingHasBeenSet; }
131 inline void SetAlgorithmicStemming(const AlgorithmicStemming& value) { m_algorithmicStemmingHasBeenSet = true; m_algorithmicStemming = value; }
132 inline void SetAlgorithmicStemming(AlgorithmicStemming&& value) { m_algorithmicStemmingHasBeenSet = true; m_algorithmicStemming = std::move(value); }
134 inline AnalysisOptions& WithAlgorithmicStemming(AlgorithmicStemming&& value) { SetAlgorithmicStemming(std::move(value)); return *this;}
136 private:
137
138 Aws::String m_synonyms;
139 bool m_synonymsHasBeenSet = false;
140
141 Aws::String m_stopwords;
142 bool m_stopwordsHasBeenSet = false;
143
144 Aws::String m_stemmingDictionary;
145 bool m_stemmingDictionaryHasBeenSet = false;
146
147 Aws::String m_japaneseTokenizationDictionary;
148 bool m_japaneseTokenizationDictionaryHasBeenSet = false;
149
150 AlgorithmicStemming m_algorithmicStemming;
151 bool m_algorithmicStemmingHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace CloudSearch
156} // namespace Aws
void SetJapaneseTokenizationDictionary(const Aws::String &value)
const Aws::String & GetStemmingDictionary() const
AnalysisOptions & WithAlgorithmicStemming(const AlgorithmicStemming &value)
AnalysisOptions & WithStemmingDictionary(const char *value)
AWS_CLOUDSEARCH_API AnalysisOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AnalysisOptions & WithJapaneseTokenizationDictionary(Aws::String &&value)
void SetAlgorithmicStemming(AlgorithmicStemming &&value)
AnalysisOptions & WithStopwords(Aws::String &&value)
AnalysisOptions & WithStopwords(const Aws::String &value)
void SetStemmingDictionary(const Aws::String &value)
AnalysisOptions & WithSynonyms(const Aws::String &value)
AnalysisOptions & WithJapaneseTokenizationDictionary(const char *value)
AnalysisOptions & WithSynonyms(const char *value)
void SetStemmingDictionary(const char *value)
const AlgorithmicStemming & GetAlgorithmicStemming() const
void SetStopwords(const Aws::String &value)
void SetJapaneseTokenizationDictionary(const char *value)
AnalysisOptions & WithJapaneseTokenizationDictionary(const Aws::String &value)
void SetJapaneseTokenizationDictionary(Aws::String &&value)
const Aws::String & GetStopwords() const
void SetAlgorithmicStemming(const AlgorithmicStemming &value)
AWS_CLOUDSEARCH_API AnalysisOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
AnalysisOptions & WithAlgorithmicStemming(AlgorithmicStemming &&value)
const Aws::String & GetJapaneseTokenizationDictionary() const
AnalysisOptions & WithStemmingDictionary(const Aws::String &value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AnalysisOptions & WithStemmingDictionary(Aws::String &&value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSynonyms(const Aws::String &value)
AnalysisOptions & WithStopwords(const char *value)
AnalysisOptions & WithSynonyms(Aws::String &&value)
const Aws::String & GetSynonyms() const
void SetStemmingDictionary(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream