AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
52 inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
53 inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
54 inline LatLonOptions& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
55 inline LatLonOptions& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
56 inline LatLonOptions& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
58
60
61 inline const Aws::String& GetSourceField() const{ return m_sourceField; }
62 inline bool SourceFieldHasBeenSet() const { return m_sourceFieldHasBeenSet; }
63 inline void SetSourceField(const Aws::String& value) { m_sourceFieldHasBeenSet = true; m_sourceField = value; }
64 inline void SetSourceField(Aws::String&& value) { m_sourceFieldHasBeenSet = true; m_sourceField = std::move(value); }
65 inline void SetSourceField(const char* value) { m_sourceFieldHasBeenSet = true; m_sourceField.assign(value); }
66 inline LatLonOptions& WithSourceField(const Aws::String& value) { SetSourceField(value); return *this;}
67 inline LatLonOptions& WithSourceField(Aws::String&& value) { SetSourceField(std::move(value)); return *this;}
68 inline LatLonOptions& WithSourceField(const char* value) { SetSourceField(value); return *this;}
70
72
75 inline bool GetFacetEnabled() const{ return m_facetEnabled; }
76 inline bool FacetEnabledHasBeenSet() const { return m_facetEnabledHasBeenSet; }
77 inline void SetFacetEnabled(bool value) { m_facetEnabledHasBeenSet = true; m_facetEnabled = value; }
78 inline LatLonOptions& WithFacetEnabled(bool value) { SetFacetEnabled(value); return *this;}
80
82
85 inline bool GetSearchEnabled() const{ return m_searchEnabled; }
86 inline bool SearchEnabledHasBeenSet() const { return m_searchEnabledHasBeenSet; }
87 inline void SetSearchEnabled(bool value) { m_searchEnabledHasBeenSet = true; m_searchEnabled = value; }
88 inline LatLonOptions& WithSearchEnabled(bool value) { SetSearchEnabled(value); return *this;}
90
92
95 inline bool GetReturnEnabled() const{ return m_returnEnabled; }
96 inline bool ReturnEnabledHasBeenSet() const { return m_returnEnabledHasBeenSet; }
97 inline void SetReturnEnabled(bool value) { m_returnEnabledHasBeenSet = true; m_returnEnabled = value; }
98 inline LatLonOptions& WithReturnEnabled(bool value) { SetReturnEnabled(value); return *this;}
100
102
105 inline bool GetSortEnabled() const{ return m_sortEnabled; }
106 inline bool SortEnabledHasBeenSet() const { return m_sortEnabledHasBeenSet; }
107 inline void SetSortEnabled(bool value) { m_sortEnabledHasBeenSet = true; m_sortEnabled = value; }
108 inline LatLonOptions& WithSortEnabled(bool value) { SetSortEnabled(value); return *this;}
110 private:
111
112 Aws::String m_defaultValue;
113 bool m_defaultValueHasBeenSet = false;
114
115 Aws::String m_sourceField;
116 bool m_sourceFieldHasBeenSet = false;
117
118 bool m_facetEnabled;
119 bool m_facetEnabledHasBeenSet = false;
120
121 bool m_searchEnabled;
122 bool m_searchEnabledHasBeenSet = false;
123
124 bool m_returnEnabled;
125 bool m_returnEnabledHasBeenSet = false;
126
127 bool m_sortEnabled;
128 bool m_sortEnabledHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace CloudSearch
133} // namespace Aws
void SetSourceField(const Aws::String &value)
LatLonOptions & WithReturnEnabled(bool value)
void SetDefaultValue(const Aws::String &value)
const Aws::String & GetSourceField() const
LatLonOptions & WithSearchEnabled(bool value)
void SetDefaultValue(const char *value)
const Aws::String & GetDefaultValue() const
LatLonOptions & WithSourceField(Aws::String &&value)
LatLonOptions & WithDefaultValue(Aws::String &&value)
LatLonOptions & WithSourceField(const Aws::String &value)
void SetDefaultValue(Aws::String &&value)
void SetSourceField(const char *value)
void SetSourceField(Aws::String &&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)
LatLonOptions & WithDefaultValue(const Aws::String &value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LatLonOptions & WithDefaultValue(const char *value)
LatLonOptions & WithFacetEnabled(bool value)
LatLonOptions & WithSourceField(const char *value)
LatLonOptions & WithSortEnabled(bool value)
AWS_CLOUDSEARCH_API LatLonOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream