AWS SDK for C++  0.14.3
AWS SDK for C++
AnalysisOptions.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace CloudSearch
31 {
32 namespace Model
33 {
34 
40  {
41  public:
44  AnalysisOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
61  inline const Aws::String& GetSynonyms() const{ return m_synonyms; }
62 
75  inline void SetSynonyms(const Aws::String& value) { m_synonymsHasBeenSet = true; m_synonyms = value; }
76 
89  inline void SetSynonyms(Aws::String&& value) { m_synonymsHasBeenSet = true; m_synonyms = value; }
90 
103  inline void SetSynonyms(const char* value) { m_synonymsHasBeenSet = true; m_synonyms.assign(value); }
104 
117  inline AnalysisOptions& WithSynonyms(const Aws::String& value) { SetSynonyms(value); return *this;}
118 
131  inline AnalysisOptions& WithSynonyms(Aws::String&& value) { SetSynonyms(value); return *this;}
132 
145  inline AnalysisOptions& WithSynonyms(const char* value) { SetSynonyms(value); return *this;}
146 
153  inline const Aws::String& GetStopwords() const{ return m_stopwords; }
154 
161  inline void SetStopwords(const Aws::String& value) { m_stopwordsHasBeenSet = true; m_stopwords = value; }
162 
169  inline void SetStopwords(Aws::String&& value) { m_stopwordsHasBeenSet = true; m_stopwords = value; }
170 
177  inline void SetStopwords(const char* value) { m_stopwordsHasBeenSet = true; m_stopwords.assign(value); }
178 
185  inline AnalysisOptions& WithStopwords(const Aws::String& value) { SetStopwords(value); return *this;}
186 
193  inline AnalysisOptions& WithStopwords(Aws::String&& value) { SetStopwords(value); return *this;}
194 
201  inline AnalysisOptions& WithStopwords(const char* value) { SetStopwords(value); return *this;}
202 
211  inline const Aws::String& GetStemmingDictionary() const{ return m_stemmingDictionary; }
212 
221  inline void SetStemmingDictionary(const Aws::String& value) { m_stemmingDictionaryHasBeenSet = true; m_stemmingDictionary = value; }
222 
231  inline void SetStemmingDictionary(Aws::String&& value) { m_stemmingDictionaryHasBeenSet = true; m_stemmingDictionary = value; }
232 
241  inline void SetStemmingDictionary(const char* value) { m_stemmingDictionaryHasBeenSet = true; m_stemmingDictionary.assign(value); }
242 
251  inline AnalysisOptions& WithStemmingDictionary(const Aws::String& value) { SetStemmingDictionary(value); return *this;}
252 
261  inline AnalysisOptions& WithStemmingDictionary(Aws::String&& value) { SetStemmingDictionary(value); return *this;}
262 
271  inline AnalysisOptions& WithStemmingDictionary(const char* value) { SetStemmingDictionary(value); return *this;}
272 
279  inline const Aws::String& GetJapaneseTokenizationDictionary() const{ return m_japaneseTokenizationDictionary; }
280 
287  inline void SetJapaneseTokenizationDictionary(const Aws::String& value) { m_japaneseTokenizationDictionaryHasBeenSet = true; m_japaneseTokenizationDictionary = value; }
288 
295  inline void SetJapaneseTokenizationDictionary(Aws::String&& value) { m_japaneseTokenizationDictionaryHasBeenSet = true; m_japaneseTokenizationDictionary = value; }
296 
303  inline void SetJapaneseTokenizationDictionary(const char* value) { m_japaneseTokenizationDictionaryHasBeenSet = true; m_japaneseTokenizationDictionary.assign(value); }
304 
311  inline AnalysisOptions& WithJapaneseTokenizationDictionary(const Aws::String& value) { SetJapaneseTokenizationDictionary(value); return *this;}
312 
319  inline AnalysisOptions& WithJapaneseTokenizationDictionary(Aws::String&& value) { SetJapaneseTokenizationDictionary(value); return *this;}
320 
327  inline AnalysisOptions& WithJapaneseTokenizationDictionary(const char* value) { SetJapaneseTokenizationDictionary(value); return *this;}
328 
337  inline const AlgorithmicStemming& GetAlgorithmicStemming() const{ return m_algorithmicStemming; }
338 
347  inline void SetAlgorithmicStemming(const AlgorithmicStemming& value) { m_algorithmicStemmingHasBeenSet = true; m_algorithmicStemming = value; }
348 
357  inline void SetAlgorithmicStemming(AlgorithmicStemming&& value) { m_algorithmicStemmingHasBeenSet = true; m_algorithmicStemming = value; }
358 
367  inline AnalysisOptions& WithAlgorithmicStemming(const AlgorithmicStemming& value) { SetAlgorithmicStemming(value); return *this;}
368 
377  inline AnalysisOptions& WithAlgorithmicStemming(AlgorithmicStemming&& value) { SetAlgorithmicStemming(value); return *this;}
378 
379  private:
380  Aws::String m_synonyms;
381  bool m_synonymsHasBeenSet;
382  Aws::String m_stopwords;
383  bool m_stopwordsHasBeenSet;
384  Aws::String m_stemmingDictionary;
385  bool m_stemmingDictionaryHasBeenSet;
386  Aws::String m_japaneseTokenizationDictionary;
387  bool m_japaneseTokenizationDictionaryHasBeenSet;
388  AlgorithmicStemming m_algorithmicStemming;
389  bool m_algorithmicStemmingHasBeenSet;
390  };
391 
392 } // namespace Model
393 } // namespace CloudSearch
394 } // namespace Aws
void SetAlgorithmicStemming(AlgorithmicStemming &&value)
AnalysisOptions & WithStemmingDictionary(const Aws::String &value)
AnalysisOptions & WithStopwords(const char *value)
AnalysisOptions & WithJapaneseTokenizationDictionary(const char *value)
void SetStopwords(Aws::String &&value)
AnalysisOptions & WithJapaneseTokenizationDictionary(Aws::String &&value)
AnalysisOptions & WithSynonyms(const Aws::String &value)
const AlgorithmicStemming & GetAlgorithmicStemming() const
void SetStemmingDictionary(const char *value)
void SetJapaneseTokenizationDictionary(const Aws::String &value)
AnalysisOptions & WithStemmingDictionary(const char *value)
AnalysisOptions & WithStemmingDictionary(Aws::String &&value)
void SetAlgorithmicStemming(const AlgorithmicStemming &value)
AnalysisOptions & WithSynonyms(Aws::String &&value)
AnalysisOptions & WithStopwords(const Aws::String &value)
void SetJapaneseTokenizationDictionary(const char *value)
const Aws::String & GetJapaneseTokenizationDictionary() const
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetSynonyms(Aws::String &&value)
void SetStopwords(const Aws::String &value)
const Aws::String & GetStopwords() const
void SetJapaneseTokenizationDictionary(Aws::String &&value)
const Aws::String & GetStemmingDictionary() const
#define AWS_CLOUDSEARCH_API
AnalysisOptions & WithJapaneseTokenizationDictionary(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AnalysisOptions & WithAlgorithmicStemming(const AlgorithmicStemming &value)
const Aws::String & GetSynonyms() const
AnalysisOptions & WithStopwords(Aws::String &&value)
void SetSynonyms(const Aws::String &value)
void SetStemmingDictionary(const Aws::String &value)
void SetStemmingDictionary(Aws::String &&value)
AnalysisOptions & WithSynonyms(const char *value)
AnalysisOptions & WithAlgorithmicStemming(AlgorithmicStemming &&value)
JSON (JavaScript Object Notation).