AWS SDK for C++  0.12.9
AWS SDK for C++
Suggester.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 
42  {
43  public:
44  Suggester();
45  Suggester(const Aws::Utils::Xml::XmlNode& xmlNode);
46  Suggester& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
47 
48  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
49  void OutputToStream(Aws::OStream& oStream, const char* location) const;
50 
51 
52  inline const Aws::String& GetSuggesterName() const{ return m_suggesterName; }
53 
54 
55  inline void SetSuggesterName(const Aws::String& value) { m_suggesterNameHasBeenSet = true; m_suggesterName = value; }
56 
57 
58  inline void SetSuggesterName(Aws::String&& value) { m_suggesterNameHasBeenSet = true; m_suggesterName = value; }
59 
60 
61  inline void SetSuggesterName(const char* value) { m_suggesterNameHasBeenSet = true; m_suggesterName.assign(value); }
62 
63 
64  inline Suggester& WithSuggesterName(const Aws::String& value) { SetSuggesterName(value); return *this;}
65 
66 
67  inline Suggester& WithSuggesterName(Aws::String&& value) { SetSuggesterName(value); return *this;}
68 
69 
70  inline Suggester& WithSuggesterName(const char* value) { SetSuggesterName(value); return *this;}
71 
72 
73  inline const DocumentSuggesterOptions& GetDocumentSuggesterOptions() const{ return m_documentSuggesterOptions; }
74 
75 
76  inline void SetDocumentSuggesterOptions(const DocumentSuggesterOptions& value) { m_documentSuggesterOptionsHasBeenSet = true; m_documentSuggesterOptions = value; }
77 
78 
79  inline void SetDocumentSuggesterOptions(DocumentSuggesterOptions&& value) { m_documentSuggesterOptionsHasBeenSet = true; m_documentSuggesterOptions = value; }
80 
81 
82  inline Suggester& WithDocumentSuggesterOptions(const DocumentSuggesterOptions& value) { SetDocumentSuggesterOptions(value); return *this;}
83 
84 
85  inline Suggester& WithDocumentSuggesterOptions(DocumentSuggesterOptions&& value) { SetDocumentSuggesterOptions(value); return *this;}
86 
87  private:
88  Aws::String m_suggesterName;
89  bool m_suggesterNameHasBeenSet;
90  DocumentSuggesterOptions m_documentSuggesterOptions;
91  bool m_documentSuggesterOptionsHasBeenSet;
92  };
93 
94 } // namespace Model
95 } // namespace CloudSearch
96 } // namespace Aws
void SetDocumentSuggesterOptions(const DocumentSuggesterOptions &value)
Definition: Suggester.h:76
Suggester & WithSuggesterName(const Aws::String &value)
Definition: Suggester.h:64
const DocumentSuggesterOptions & GetDocumentSuggesterOptions() const
Definition: Suggester.h:73
void SetSuggesterName(const Aws::String &value)
Definition: Suggester.h:55
Suggester & WithSuggesterName(const char *value)
Definition: Suggester.h:70
Suggester & WithDocumentSuggesterOptions(const DocumentSuggesterOptions &value)
Definition: Suggester.h:82
const Aws::String & GetSuggesterName() const
Definition: Suggester.h:52
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
Suggester & WithSuggesterName(Aws::String &&value)
Definition: Suggester.h:67
void SetSuggesterName(const char *value)
Definition: Suggester.h:61
void SetSuggesterName(Aws::String &&value)
Definition: Suggester.h:58
void SetDocumentSuggesterOptions(DocumentSuggesterOptions &&value)
Definition: Suggester.h:79
#define AWS_CLOUDSEARCH_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Suggester & WithDocumentSuggesterOptions(DocumentSuggesterOptions &&value)
Definition: Suggester.h:85
JSON (JavaScript Object Notation).