AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
IntOptions.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace CloudSearch {
20namespace Model {
21
30 public:
31 AWS_CLOUDSEARCH_API IntOptions() = default;
32 AWS_CLOUDSEARCH_API IntOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_CLOUDSEARCH_API IntOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
44 inline long long GetDefaultValue() const { return m_defaultValue; }
45 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
46 inline void SetDefaultValue(long long value) {
47 m_defaultValueHasBeenSet = true;
48 m_defaultValue = value;
49 }
50 inline IntOptions& WithDefaultValue(long long value) {
51 SetDefaultValue(value);
52 return *this;
53 }
55
57
60 inline const Aws::String& GetSourceField() const { return m_sourceField; }
61 inline bool SourceFieldHasBeenSet() const { return m_sourceFieldHasBeenSet; }
62 template <typename SourceFieldT = Aws::String>
63 void SetSourceField(SourceFieldT&& value) {
64 m_sourceFieldHasBeenSet = true;
65 m_sourceField = std::forward<SourceFieldT>(value);
66 }
67 template <typename SourceFieldT = Aws::String>
68 IntOptions& WithSourceField(SourceFieldT&& value) {
69 SetSourceField(std::forward<SourceFieldT>(value));
70 return *this;
71 }
73
75
78 inline bool GetFacetEnabled() const { return m_facetEnabled; }
79 inline bool FacetEnabledHasBeenSet() const { return m_facetEnabledHasBeenSet; }
80 inline void SetFacetEnabled(bool value) {
81 m_facetEnabledHasBeenSet = true;
82 m_facetEnabled = value;
83 }
84 inline IntOptions& WithFacetEnabled(bool value) {
85 SetFacetEnabled(value);
86 return *this;
87 }
89
91
94 inline bool GetSearchEnabled() const { return m_searchEnabled; }
95 inline bool SearchEnabledHasBeenSet() const { return m_searchEnabledHasBeenSet; }
96 inline void SetSearchEnabled(bool value) {
97 m_searchEnabledHasBeenSet = true;
98 m_searchEnabled = value;
99 }
100 inline IntOptions& WithSearchEnabled(bool value) {
101 SetSearchEnabled(value);
102 return *this;
103 }
105
107
110 inline bool GetReturnEnabled() const { return m_returnEnabled; }
111 inline bool ReturnEnabledHasBeenSet() const { return m_returnEnabledHasBeenSet; }
112 inline void SetReturnEnabled(bool value) {
113 m_returnEnabledHasBeenSet = true;
114 m_returnEnabled = value;
115 }
116 inline IntOptions& WithReturnEnabled(bool value) {
117 SetReturnEnabled(value);
118 return *this;
119 }
121
123
126 inline bool GetSortEnabled() const { return m_sortEnabled; }
127 inline bool SortEnabledHasBeenSet() const { return m_sortEnabledHasBeenSet; }
128 inline void SetSortEnabled(bool value) {
129 m_sortEnabledHasBeenSet = true;
130 m_sortEnabled = value;
131 }
132 inline IntOptions& WithSortEnabled(bool value) {
133 SetSortEnabled(value);
134 return *this;
135 }
137 private:
138 long long m_defaultValue{0};
139
140 Aws::String m_sourceField;
141
142 bool m_facetEnabled{false};
143
144 bool m_searchEnabled{false};
145
146 bool m_returnEnabled{false};
147
148 bool m_sortEnabled{false};
149 bool m_defaultValueHasBeenSet = false;
150 bool m_sourceFieldHasBeenSet = false;
151 bool m_facetEnabledHasBeenSet = false;
152 bool m_searchEnabledHasBeenSet = false;
153 bool m_returnEnabledHasBeenSet = false;
154 bool m_sortEnabledHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace CloudSearch
159} // namespace Aws
AWS_CLOUDSEARCH_API IntOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
IntOptions & WithSourceField(SourceFieldT &&value)
Definition IntOptions.h:68
IntOptions & WithReturnEnabled(bool value)
Definition IntOptions.h:116
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetDefaultValue(long long value)
Definition IntOptions.h:46
void SetSourceField(SourceFieldT &&value)
Definition IntOptions.h:63
IntOptions & WithSortEnabled(bool value)
Definition IntOptions.h:132
IntOptions & WithDefaultValue(long long value)
Definition IntOptions.h:50
const Aws::String & GetSourceField() const
Definition IntOptions.h:60
IntOptions & WithSearchEnabled(bool value)
Definition IntOptions.h:100
AWS_CLOUDSEARCH_API IntOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDSEARCH_API IntOptions()=default
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
IntOptions & WithFacetEnabled(bool value)
Definition IntOptions.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream