AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
LatLonOptions.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
31 public:
32 AWS_CLOUDSEARCH_API LatLonOptions() = default;
33 AWS_CLOUDSEARCH_API LatLonOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_CLOUDSEARCH_API LatLonOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
44 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
45 template <typename DefaultValueT = Aws::String>
46 void SetDefaultValue(DefaultValueT&& value) {
47 m_defaultValueHasBeenSet = true;
48 m_defaultValue = std::forward<DefaultValueT>(value);
49 }
50 template <typename DefaultValueT = Aws::String>
51 LatLonOptions& WithDefaultValue(DefaultValueT&& value) {
52 SetDefaultValue(std::forward<DefaultValueT>(value));
53 return *this;
54 }
56
58
59 inline const Aws::String& GetSourceField() const { return m_sourceField; }
60 inline bool SourceFieldHasBeenSet() const { return m_sourceFieldHasBeenSet; }
61 template <typename SourceFieldT = Aws::String>
62 void SetSourceField(SourceFieldT&& value) {
63 m_sourceFieldHasBeenSet = true;
64 m_sourceField = std::forward<SourceFieldT>(value);
65 }
66 template <typename SourceFieldT = Aws::String>
67 LatLonOptions& WithSourceField(SourceFieldT&& value) {
68 SetSourceField(std::forward<SourceFieldT>(value));
69 return *this;
70 }
72
74
77 inline bool GetFacetEnabled() const { return m_facetEnabled; }
78 inline bool FacetEnabledHasBeenSet() const { return m_facetEnabledHasBeenSet; }
79 inline void SetFacetEnabled(bool value) {
80 m_facetEnabledHasBeenSet = true;
81 m_facetEnabled = value;
82 }
83 inline LatLonOptions& WithFacetEnabled(bool value) {
84 SetFacetEnabled(value);
85 return *this;
86 }
88
90
93 inline bool GetSearchEnabled() const { return m_searchEnabled; }
94 inline bool SearchEnabledHasBeenSet() const { return m_searchEnabledHasBeenSet; }
95 inline void SetSearchEnabled(bool value) {
96 m_searchEnabledHasBeenSet = true;
97 m_searchEnabled = value;
98 }
99 inline LatLonOptions& WithSearchEnabled(bool value) {
100 SetSearchEnabled(value);
101 return *this;
102 }
104
106
109 inline bool GetReturnEnabled() const { return m_returnEnabled; }
110 inline bool ReturnEnabledHasBeenSet() const { return m_returnEnabledHasBeenSet; }
111 inline void SetReturnEnabled(bool value) {
112 m_returnEnabledHasBeenSet = true;
113 m_returnEnabled = value;
114 }
115 inline LatLonOptions& WithReturnEnabled(bool value) {
116 SetReturnEnabled(value);
117 return *this;
118 }
120
122
125 inline bool GetSortEnabled() const { return m_sortEnabled; }
126 inline bool SortEnabledHasBeenSet() const { return m_sortEnabledHasBeenSet; }
127 inline void SetSortEnabled(bool value) {
128 m_sortEnabledHasBeenSet = true;
129 m_sortEnabled = value;
130 }
131 inline LatLonOptions& WithSortEnabled(bool value) {
132 SetSortEnabled(value);
133 return *this;
134 }
136 private:
137 Aws::String m_defaultValue;
138
139 Aws::String m_sourceField;
140
141 bool m_facetEnabled{false};
142
143 bool m_searchEnabled{false};
144
145 bool m_returnEnabled{false};
146
147 bool m_sortEnabled{false};
148 bool m_defaultValueHasBeenSet = false;
149 bool m_sourceFieldHasBeenSet = false;
150 bool m_facetEnabledHasBeenSet = false;
151 bool m_searchEnabledHasBeenSet = false;
152 bool m_returnEnabledHasBeenSet = false;
153 bool m_sortEnabledHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace CloudSearch
158} // namespace Aws
LatLonOptions & WithReturnEnabled(bool value)
const Aws::String & GetSourceField() const
AWS_CLOUDSEARCH_API LatLonOptions()=default
LatLonOptions & WithSearchEnabled(bool value)
const Aws::String & GetDefaultValue() const
LatLonOptions & WithDefaultValue(DefaultValueT &&value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDSEARCH_API LatLonOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSourceField(SourceFieldT &&value)
LatLonOptions & WithSourceField(SourceFieldT &&value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LatLonOptions & WithFacetEnabled(bool value)
LatLonOptions & WithSortEnabled(bool value)
AWS_CLOUDSEARCH_API LatLonOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetDefaultValue(DefaultValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream