AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
DocumentSuggesterOptions.h
1
6#pragma once
7#include <aws/cloudsearch/CloudSearch_EXPORTS.h>
8#include <aws/cloudsearch/model/SuggesterFuzzyMatching.h>
9#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudSearch {
21namespace Model {
22
29 public:
30 AWS_CLOUDSEARCH_API DocumentSuggesterOptions() = default;
31 AWS_CLOUDSEARCH_API DocumentSuggesterOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_CLOUDSEARCH_API DocumentSuggesterOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetSourceField() const { return m_sourceField; }
42 inline bool SourceFieldHasBeenSet() const { return m_sourceFieldHasBeenSet; }
43 template <typename SourceFieldT = Aws::String>
44 void SetSourceField(SourceFieldT&& value) {
45 m_sourceFieldHasBeenSet = true;
46 m_sourceField = std::forward<SourceFieldT>(value);
47 }
48 template <typename SourceFieldT = Aws::String>
50 SetSourceField(std::forward<SourceFieldT>(value));
51 return *this;
52 }
54
56
63 inline SuggesterFuzzyMatching GetFuzzyMatching() const { return m_fuzzyMatching; }
64 inline bool FuzzyMatchingHasBeenSet() const { return m_fuzzyMatchingHasBeenSet; }
66 m_fuzzyMatchingHasBeenSet = true;
67 m_fuzzyMatching = value;
68 }
70 SetFuzzyMatching(value);
71 return *this;
72 }
74
76
85 inline const Aws::String& GetSortExpression() const { return m_sortExpression; }
86 inline bool SortExpressionHasBeenSet() const { return m_sortExpressionHasBeenSet; }
87 template <typename SortExpressionT = Aws::String>
88 void SetSortExpression(SortExpressionT&& value) {
89 m_sortExpressionHasBeenSet = true;
90 m_sortExpression = std::forward<SortExpressionT>(value);
91 }
92 template <typename SortExpressionT = Aws::String>
93 DocumentSuggesterOptions& WithSortExpression(SortExpressionT&& value) {
94 SetSortExpression(std::forward<SortExpressionT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_sourceField;
100
102
103 Aws::String m_sortExpression;
104 bool m_sourceFieldHasBeenSet = false;
105 bool m_fuzzyMatchingHasBeenSet = false;
106 bool m_sortExpressionHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace CloudSearch
111} // namespace Aws
AWS_CLOUDSEARCH_API DocumentSuggesterOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDSEARCH_API DocumentSuggesterOptions()=default
DocumentSuggesterOptions & WithSortExpression(SortExpressionT &&value)
AWS_CLOUDSEARCH_API DocumentSuggesterOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
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(SourceFieldT &&value)
DocumentSuggesterOptions & WithFuzzyMatching(SuggesterFuzzyMatching value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream