AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
LiteralOptions.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudSearch
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_CLOUDSEARCH_API LiteralOptions() = default;
37 AWS_CLOUDSEARCH_API LiteralOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDSEARCH_API LiteralOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
49 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
50 template<typename DefaultValueT = Aws::String>
51 void SetDefaultValue(DefaultValueT&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::forward<DefaultValueT>(value); }
52 template<typename DefaultValueT = Aws::String>
53 LiteralOptions& WithDefaultValue(DefaultValueT&& value) { SetDefaultValue(std::forward<DefaultValueT>(value)); return *this;}
55
57
58 inline const Aws::String& GetSourceField() const { return m_sourceField; }
59 inline bool SourceFieldHasBeenSet() const { return m_sourceFieldHasBeenSet; }
60 template<typename SourceFieldT = Aws::String>
61 void SetSourceField(SourceFieldT&& value) { m_sourceFieldHasBeenSet = true; m_sourceField = std::forward<SourceFieldT>(value); }
62 template<typename SourceFieldT = Aws::String>
63 LiteralOptions& WithSourceField(SourceFieldT&& value) { SetSourceField(std::forward<SourceFieldT>(value)); return *this;}
65
67
70 inline bool GetFacetEnabled() const { return m_facetEnabled; }
71 inline bool FacetEnabledHasBeenSet() const { return m_facetEnabledHasBeenSet; }
72 inline void SetFacetEnabled(bool value) { m_facetEnabledHasBeenSet = true; m_facetEnabled = value; }
73 inline LiteralOptions& WithFacetEnabled(bool value) { SetFacetEnabled(value); return *this;}
75
77
80 inline bool GetSearchEnabled() const { return m_searchEnabled; }
81 inline bool SearchEnabledHasBeenSet() const { return m_searchEnabledHasBeenSet; }
82 inline void SetSearchEnabled(bool value) { m_searchEnabledHasBeenSet = true; m_searchEnabled = value; }
83 inline LiteralOptions& WithSearchEnabled(bool value) { SetSearchEnabled(value); return *this;}
85
87
90 inline bool GetReturnEnabled() const { return m_returnEnabled; }
91 inline bool ReturnEnabledHasBeenSet() const { return m_returnEnabledHasBeenSet; }
92 inline void SetReturnEnabled(bool value) { m_returnEnabledHasBeenSet = true; m_returnEnabled = value; }
93 inline LiteralOptions& WithReturnEnabled(bool value) { SetReturnEnabled(value); return *this;}
95
97
100 inline bool GetSortEnabled() const { return m_sortEnabled; }
101 inline bool SortEnabledHasBeenSet() const { return m_sortEnabledHasBeenSet; }
102 inline void SetSortEnabled(bool value) { m_sortEnabledHasBeenSet = true; m_sortEnabled = value; }
103 inline LiteralOptions& WithSortEnabled(bool value) { SetSortEnabled(value); return *this;}
105 private:
106
107 Aws::String m_defaultValue;
108 bool m_defaultValueHasBeenSet = false;
109
110 Aws::String m_sourceField;
111 bool m_sourceFieldHasBeenSet = false;
112
113 bool m_facetEnabled{false};
114 bool m_facetEnabledHasBeenSet = false;
115
116 bool m_searchEnabled{false};
117 bool m_searchEnabledHasBeenSet = false;
118
119 bool m_returnEnabled{false};
120 bool m_returnEnabledHasBeenSet = false;
121
122 bool m_sortEnabled{false};
123 bool m_sortEnabledHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace CloudSearch
128} // namespace Aws
LiteralOptions & WithSortEnabled(bool value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetDefaultValue(DefaultValueT &&value)
LiteralOptions & WithReturnEnabled(bool value)
LiteralOptions & WithSourceField(SourceFieldT &&value)
LiteralOptions & WithFacetEnabled(bool value)
LiteralOptions & WithSearchEnabled(bool value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDSEARCH_API LiteralOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
LiteralOptions & WithDefaultValue(DefaultValueT &&value)
void SetSourceField(SourceFieldT &&value)
AWS_CLOUDSEARCH_API LiteralOptions()=default
const Aws::String & GetSourceField() const
AWS_CLOUDSEARCH_API LiteralOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetDefaultValue() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream