AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#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
35 {
36 public:
37 AWS_CLOUDSEARCH_API LatLonOptions() = default;
38 AWS_CLOUDSEARCH_API LatLonOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_CLOUDSEARCH_API LatLonOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
49 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
50 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
51 template<typename DefaultValueT = Aws::String>
52 void SetDefaultValue(DefaultValueT&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::forward<DefaultValueT>(value); }
53 template<typename DefaultValueT = Aws::String>
54 LatLonOptions& WithDefaultValue(DefaultValueT&& value) { SetDefaultValue(std::forward<DefaultValueT>(value)); return *this;}
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) { m_sourceFieldHasBeenSet = true; m_sourceField = std::forward<SourceFieldT>(value); }
63 template<typename SourceFieldT = Aws::String>
64 LatLonOptions& WithSourceField(SourceFieldT&& value) { SetSourceField(std::forward<SourceFieldT>(value)); return *this;}
66
68
71 inline bool GetFacetEnabled() const { return m_facetEnabled; }
72 inline bool FacetEnabledHasBeenSet() const { return m_facetEnabledHasBeenSet; }
73 inline void SetFacetEnabled(bool value) { m_facetEnabledHasBeenSet = true; m_facetEnabled = value; }
74 inline LatLonOptions& WithFacetEnabled(bool value) { SetFacetEnabled(value); return *this;}
76
78
81 inline bool GetSearchEnabled() const { return m_searchEnabled; }
82 inline bool SearchEnabledHasBeenSet() const { return m_searchEnabledHasBeenSet; }
83 inline void SetSearchEnabled(bool value) { m_searchEnabledHasBeenSet = true; m_searchEnabled = value; }
84 inline LatLonOptions& WithSearchEnabled(bool value) { SetSearchEnabled(value); return *this;}
86
88
91 inline bool GetReturnEnabled() const { return m_returnEnabled; }
92 inline bool ReturnEnabledHasBeenSet() const { return m_returnEnabledHasBeenSet; }
93 inline void SetReturnEnabled(bool value) { m_returnEnabledHasBeenSet = true; m_returnEnabled = value; }
94 inline LatLonOptions& WithReturnEnabled(bool value) { SetReturnEnabled(value); return *this;}
96
98
101 inline bool GetSortEnabled() const { return m_sortEnabled; }
102 inline bool SortEnabledHasBeenSet() const { return m_sortEnabledHasBeenSet; }
103 inline void SetSortEnabled(bool value) { m_sortEnabledHasBeenSet = true; m_sortEnabled = value; }
104 inline LatLonOptions& WithSortEnabled(bool value) { SetSortEnabled(value); return *this;}
106 private:
107
108 Aws::String m_defaultValue;
109 bool m_defaultValueHasBeenSet = false;
110
111 Aws::String m_sourceField;
112 bool m_sourceFieldHasBeenSet = false;
113
114 bool m_facetEnabled{false};
115 bool m_facetEnabledHasBeenSet = false;
116
117 bool m_searchEnabled{false};
118 bool m_searchEnabledHasBeenSet = false;
119
120 bool m_returnEnabled{false};
121 bool m_returnEnabledHasBeenSet = false;
122
123 bool m_sortEnabled{false};
124 bool m_sortEnabledHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace CloudSearch
129} // 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