AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Suggester.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/DocumentSuggesterOptions.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
36 {
37 public:
38 AWS_CLOUDSEARCH_API Suggester();
39 AWS_CLOUDSEARCH_API Suggester(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_CLOUDSEARCH_API Suggester& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
48 inline const Aws::String& GetSuggesterName() const{ return m_suggesterName; }
49 inline bool SuggesterNameHasBeenSet() const { return m_suggesterNameHasBeenSet; }
50 inline void SetSuggesterName(const Aws::String& value) { m_suggesterNameHasBeenSet = true; m_suggesterName = value; }
51 inline void SetSuggesterName(Aws::String&& value) { m_suggesterNameHasBeenSet = true; m_suggesterName = std::move(value); }
52 inline void SetSuggesterName(const char* value) { m_suggesterNameHasBeenSet = true; m_suggesterName.assign(value); }
53 inline Suggester& WithSuggesterName(const Aws::String& value) { SetSuggesterName(value); return *this;}
54 inline Suggester& WithSuggesterName(Aws::String&& value) { SetSuggesterName(std::move(value)); return *this;}
55 inline Suggester& WithSuggesterName(const char* value) { SetSuggesterName(value); return *this;}
57
59
60 inline const DocumentSuggesterOptions& GetDocumentSuggesterOptions() const{ return m_documentSuggesterOptions; }
61 inline bool DocumentSuggesterOptionsHasBeenSet() const { return m_documentSuggesterOptionsHasBeenSet; }
62 inline void SetDocumentSuggesterOptions(const DocumentSuggesterOptions& value) { m_documentSuggesterOptionsHasBeenSet = true; m_documentSuggesterOptions = value; }
63 inline void SetDocumentSuggesterOptions(DocumentSuggesterOptions&& value) { m_documentSuggesterOptionsHasBeenSet = true; m_documentSuggesterOptions = std::move(value); }
67 private:
68
69 Aws::String m_suggesterName;
70 bool m_suggesterNameHasBeenSet = false;
71
72 DocumentSuggesterOptions m_documentSuggesterOptions;
73 bool m_documentSuggesterOptionsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CloudSearch
78} // namespace Aws
void SetSuggesterName(Aws::String &&value)
Definition Suggester.h:51
const DocumentSuggesterOptions & GetDocumentSuggesterOptions() const
Definition Suggester.h:60
AWS_CLOUDSEARCH_API Suggester()
void SetDocumentSuggesterOptions(const DocumentSuggesterOptions &value)
Definition Suggester.h:62
void SetDocumentSuggesterOptions(DocumentSuggesterOptions &&value)
Definition Suggester.h:63
Suggester & WithSuggesterName(const Aws::String &value)
Definition Suggester.h:53
Suggester & WithDocumentSuggesterOptions(DocumentSuggesterOptions &&value)
Definition Suggester.h:65
void SetSuggesterName(const char *value)
Definition Suggester.h:52
bool DocumentSuggesterOptionsHasBeenSet() const
Definition Suggester.h:61
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSuggesterName(const Aws::String &value)
Definition Suggester.h:50
const Aws::String & GetSuggesterName() const
Definition Suggester.h:48
Suggester & WithSuggesterName(const char *value)
Definition Suggester.h:55
AWS_CLOUDSEARCH_API Suggester & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDSEARCH_API Suggester(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Suggester & WithDocumentSuggesterOptions(const DocumentSuggesterOptions &value)
Definition Suggester.h:64
Suggester & WithSuggesterName(Aws::String &&value)
Definition Suggester.h:54
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream