AWS SDK for C++  0.12.9
AWS SDK for C++
DocumentSuggesterOptions.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 
39  {
40  public:
43  DocumentSuggesterOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::String& GetSourceField() const{ return m_sourceField; }
52 
56  inline void SetSourceField(const Aws::String& value) { m_sourceFieldHasBeenSet = true; m_sourceField = value; }
57 
61  inline void SetSourceField(Aws::String&& value) { m_sourceFieldHasBeenSet = true; m_sourceField = value; }
62 
66  inline void SetSourceField(const char* value) { m_sourceFieldHasBeenSet = true; m_sourceField.assign(value); }
67 
71  inline DocumentSuggesterOptions& WithSourceField(const Aws::String& value) { SetSourceField(value); return *this;}
72 
76  inline DocumentSuggesterOptions& WithSourceField(Aws::String&& value) { SetSourceField(value); return *this;}
77 
81  inline DocumentSuggesterOptions& WithSourceField(const char* value) { SetSourceField(value); return *this;}
82 
90  inline const SuggesterFuzzyMatching& GetFuzzyMatching() const{ return m_fuzzyMatching; }
91 
99  inline void SetFuzzyMatching(const SuggesterFuzzyMatching& value) { m_fuzzyMatchingHasBeenSet = true; m_fuzzyMatching = value; }
100 
108  inline void SetFuzzyMatching(SuggesterFuzzyMatching&& value) { m_fuzzyMatchingHasBeenSet = true; m_fuzzyMatching = value; }
109 
117  inline DocumentSuggesterOptions& WithFuzzyMatching(const SuggesterFuzzyMatching& value) { SetFuzzyMatching(value); return *this;}
118 
126  inline DocumentSuggesterOptions& WithFuzzyMatching(SuggesterFuzzyMatching&& value) { SetFuzzyMatching(value); return *this;}
127 
137  inline const Aws::String& GetSortExpression() const{ return m_sortExpression; }
138 
148  inline void SetSortExpression(const Aws::String& value) { m_sortExpressionHasBeenSet = true; m_sortExpression = value; }
149 
159  inline void SetSortExpression(Aws::String&& value) { m_sortExpressionHasBeenSet = true; m_sortExpression = value; }
160 
170  inline void SetSortExpression(const char* value) { m_sortExpressionHasBeenSet = true; m_sortExpression.assign(value); }
171 
181  inline DocumentSuggesterOptions& WithSortExpression(const Aws::String& value) { SetSortExpression(value); return *this;}
182 
192  inline DocumentSuggesterOptions& WithSortExpression(Aws::String&& value) { SetSortExpression(value); return *this;}
193 
203  inline DocumentSuggesterOptions& WithSortExpression(const char* value) { SetSortExpression(value); return *this;}
204 
205  private:
206  Aws::String m_sourceField;
207  bool m_sourceFieldHasBeenSet;
208  SuggesterFuzzyMatching m_fuzzyMatching;
209  bool m_fuzzyMatchingHasBeenSet;
210  Aws::String m_sortExpression;
211  bool m_sortExpressionHasBeenSet;
212  };
213 
214 } // namespace Model
215 } // namespace CloudSearch
216 } // namespace Aws
DocumentSuggesterOptions & WithSortExpression(const char *value)
const SuggesterFuzzyMatching & GetFuzzyMatching() const
void SetFuzzyMatching(const SuggesterFuzzyMatching &value)
void SetFuzzyMatching(SuggesterFuzzyMatching &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
DocumentSuggesterOptions & WithSortExpression(Aws::String &&value)
DocumentSuggesterOptions & WithSourceField(const Aws::String &value)
DocumentSuggesterOptions & WithSortExpression(const Aws::String &value)
#define AWS_CLOUDSEARCH_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DocumentSuggesterOptions & WithSourceField(Aws::String &&value)
DocumentSuggesterOptions & WithSourceField(const char *value)
DocumentSuggesterOptions & WithFuzzyMatching(SuggesterFuzzyMatching &&value)
DocumentSuggesterOptions & WithFuzzyMatching(const SuggesterFuzzyMatching &value)
JSON (JavaScript Object Notation).