AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename SourceFieldT = Aws::String>
50 void SetSourceField(SourceFieldT&& value) { m_sourceFieldHasBeenSet = true; m_sourceField = std::forward<SourceFieldT>(value); }
51 template<typename SourceFieldT = Aws::String>
52 DocumentSuggesterOptions& WithSourceField(SourceFieldT&& value) { SetSourceField(std::forward<SourceFieldT>(value)); return *this;}
54
56
63 inline SuggesterFuzzyMatching GetFuzzyMatching() const { return m_fuzzyMatching; }
64 inline bool FuzzyMatchingHasBeenSet() const { return m_fuzzyMatchingHasBeenSet; }
65 inline void SetFuzzyMatching(SuggesterFuzzyMatching value) { m_fuzzyMatchingHasBeenSet = true; m_fuzzyMatching = value; }
68
70
79 inline const Aws::String& GetSortExpression() const { return m_sortExpression; }
80 inline bool SortExpressionHasBeenSet() const { return m_sortExpressionHasBeenSet; }
81 template<typename SortExpressionT = Aws::String>
82 void SetSortExpression(SortExpressionT&& value) { m_sortExpressionHasBeenSet = true; m_sortExpression = std::forward<SortExpressionT>(value); }
83 template<typename SortExpressionT = Aws::String>
84 DocumentSuggesterOptions& WithSortExpression(SortExpressionT&& value) { SetSortExpression(std::forward<SortExpressionT>(value)); return *this;}
86 private:
87
88 Aws::String m_sourceField;
89 bool m_sourceFieldHasBeenSet = false;
90
92 bool m_fuzzyMatchingHasBeenSet = false;
93
94 Aws::String m_sortExpression;
95 bool m_sortExpressionHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace CloudSearch
100} // 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