AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DocumentSuggesterOptions.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/SuggesterFuzzyMatching.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
33 {
34 public:
35 AWS_CLOUDSEARCH_API DocumentSuggesterOptions();
36 AWS_CLOUDSEARCH_API DocumentSuggesterOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDSEARCH_API DocumentSuggesterOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetSourceField() const{ return m_sourceField; }
48 inline bool SourceFieldHasBeenSet() const { return m_sourceFieldHasBeenSet; }
49 inline void SetSourceField(const Aws::String& value) { m_sourceFieldHasBeenSet = true; m_sourceField = value; }
50 inline void SetSourceField(Aws::String&& value) { m_sourceFieldHasBeenSet = true; m_sourceField = std::move(value); }
51 inline void SetSourceField(const char* value) { m_sourceFieldHasBeenSet = true; m_sourceField.assign(value); }
52 inline DocumentSuggesterOptions& WithSourceField(const Aws::String& value) { SetSourceField(value); return *this;}
53 inline DocumentSuggesterOptions& WithSourceField(Aws::String&& value) { SetSourceField(std::move(value)); return *this;}
54 inline DocumentSuggesterOptions& WithSourceField(const char* value) { SetSourceField(value); return *this;}
56
58
65 inline const SuggesterFuzzyMatching& GetFuzzyMatching() const{ return m_fuzzyMatching; }
66 inline bool FuzzyMatchingHasBeenSet() const { return m_fuzzyMatchingHasBeenSet; }
67 inline void SetFuzzyMatching(const SuggesterFuzzyMatching& value) { m_fuzzyMatchingHasBeenSet = true; m_fuzzyMatching = value; }
68 inline void SetFuzzyMatching(SuggesterFuzzyMatching&& value) { m_fuzzyMatchingHasBeenSet = true; m_fuzzyMatching = std::move(value); }
70 inline DocumentSuggesterOptions& WithFuzzyMatching(SuggesterFuzzyMatching&& value) { SetFuzzyMatching(std::move(value)); return *this;}
72
74
83 inline const Aws::String& GetSortExpression() const{ return m_sortExpression; }
84 inline bool SortExpressionHasBeenSet() const { return m_sortExpressionHasBeenSet; }
85 inline void SetSortExpression(const Aws::String& value) { m_sortExpressionHasBeenSet = true; m_sortExpression = value; }
86 inline void SetSortExpression(Aws::String&& value) { m_sortExpressionHasBeenSet = true; m_sortExpression = std::move(value); }
87 inline void SetSortExpression(const char* value) { m_sortExpressionHasBeenSet = true; m_sortExpression.assign(value); }
88 inline DocumentSuggesterOptions& WithSortExpression(const Aws::String& value) { SetSortExpression(value); return *this;}
89 inline DocumentSuggesterOptions& WithSortExpression(Aws::String&& value) { SetSortExpression(std::move(value)); return *this;}
90 inline DocumentSuggesterOptions& WithSortExpression(const char* value) { SetSortExpression(value); return *this;}
92 private:
93
94 Aws::String m_sourceField;
95 bool m_sourceFieldHasBeenSet = false;
96
97 SuggesterFuzzyMatching m_fuzzyMatching;
98 bool m_fuzzyMatchingHasBeenSet = false;
99
100 Aws::String m_sortExpression;
101 bool m_sortExpressionHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace CloudSearch
106} // namespace Aws
AWS_CLOUDSEARCH_API DocumentSuggesterOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetFuzzyMatching(const SuggesterFuzzyMatching &value)
DocumentSuggesterOptions & WithSourceField(const char *value)
DocumentSuggesterOptions & WithSortExpression(const Aws::String &value)
DocumentSuggesterOptions & WithFuzzyMatching(const SuggesterFuzzyMatching &value)
DocumentSuggesterOptions & WithSourceField(Aws::String &&value)
const SuggesterFuzzyMatching & GetFuzzyMatching() const
DocumentSuggesterOptions & WithFuzzyMatching(SuggesterFuzzyMatching &&value)
DocumentSuggesterOptions & WithSortExpression(const char *value)
AWS_CLOUDSEARCH_API DocumentSuggesterOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DocumentSuggesterOptions & WithSortExpression(Aws::String &&value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DocumentSuggesterOptions & WithSourceField(const Aws::String &value)
void SetFuzzyMatching(SuggesterFuzzyMatching &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream