AWS SDK for C++  0.14.3
AWS SDK for C++
LatLonOptions.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace CloudSearch
30 {
31 namespace Model
32 {
33 
41  {
42  public:
43  LatLonOptions();
45  LatLonOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46 
47  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48  void OutputToStream(Aws::OStream& oStream, const char* location) const;
49 
53  inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
54 
58  inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
59 
63  inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
64 
68  inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
69 
73  inline LatLonOptions& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
74 
78  inline LatLonOptions& WithDefaultValue(Aws::String&& value) { SetDefaultValue(value); return *this;}
79 
83  inline LatLonOptions& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
84 
85 
86  inline const Aws::String& GetSourceField() const{ return m_sourceField; }
87 
88 
89  inline void SetSourceField(const Aws::String& value) { m_sourceFieldHasBeenSet = true; m_sourceField = value; }
90 
91 
92  inline void SetSourceField(Aws::String&& value) { m_sourceFieldHasBeenSet = true; m_sourceField = value; }
93 
94 
95  inline void SetSourceField(const char* value) { m_sourceFieldHasBeenSet = true; m_sourceField.assign(value); }
96 
97 
98  inline LatLonOptions& WithSourceField(const Aws::String& value) { SetSourceField(value); return *this;}
99 
100 
101  inline LatLonOptions& WithSourceField(Aws::String&& value) { SetSourceField(value); return *this;}
102 
103 
104  inline LatLonOptions& WithSourceField(const char* value) { SetSourceField(value); return *this;}
105 
109  inline bool GetFacetEnabled() const{ return m_facetEnabled; }
110 
114  inline void SetFacetEnabled(bool value) { m_facetEnabledHasBeenSet = true; m_facetEnabled = value; }
115 
119  inline LatLonOptions& WithFacetEnabled(bool value) { SetFacetEnabled(value); return *this;}
120 
124  inline bool GetSearchEnabled() const{ return m_searchEnabled; }
125 
129  inline void SetSearchEnabled(bool value) { m_searchEnabledHasBeenSet = true; m_searchEnabled = value; }
130 
134  inline LatLonOptions& WithSearchEnabled(bool value) { SetSearchEnabled(value); return *this;}
135 
139  inline bool GetReturnEnabled() const{ return m_returnEnabled; }
140 
144  inline void SetReturnEnabled(bool value) { m_returnEnabledHasBeenSet = true; m_returnEnabled = value; }
145 
149  inline LatLonOptions& WithReturnEnabled(bool value) { SetReturnEnabled(value); return *this;}
150 
154  inline bool GetSortEnabled() const{ return m_sortEnabled; }
155 
159  inline void SetSortEnabled(bool value) { m_sortEnabledHasBeenSet = true; m_sortEnabled = value; }
160 
164  inline LatLonOptions& WithSortEnabled(bool value) { SetSortEnabled(value); return *this;}
165 
166  private:
167  Aws::String m_defaultValue;
168  bool m_defaultValueHasBeenSet;
169  Aws::String m_sourceField;
170  bool m_sourceFieldHasBeenSet;
171  bool m_facetEnabled;
172  bool m_facetEnabledHasBeenSet;
173  bool m_searchEnabled;
174  bool m_searchEnabledHasBeenSet;
175  bool m_returnEnabled;
176  bool m_returnEnabledHasBeenSet;
177  bool m_sortEnabled;
178  bool m_sortEnabledHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace CloudSearch
183 } // namespace Aws
LatLonOptions & WithSearchEnabled(bool value)
LatLonOptions & WithFacetEnabled(bool value)
void SetSourceField(Aws::String &&value)
Definition: LatLonOptions.h:92
LatLonOptions & WithReturnEnabled(bool value)
const Aws::String & GetSourceField() const
Definition: LatLonOptions.h:86
LatLonOptions & WithSortEnabled(bool value)
void SetDefaultValue(const char *value)
Definition: LatLonOptions.h:68
void SetSourceField(const char *value)
Definition: LatLonOptions.h:95
void SetDefaultValue(const Aws::String &value)
Definition: LatLonOptions.h:58
void SetSourceField(const Aws::String &value)
Definition: LatLonOptions.h:89
void SetDefaultValue(Aws::String &&value)
Definition: LatLonOptions.h:63
LatLonOptions & WithSourceField(Aws::String &&value)
const Aws::String & GetDefaultValue() const
Definition: LatLonOptions.h:53
LatLonOptions & WithDefaultValue(Aws::String &&value)
Definition: LatLonOptions.h:78
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
LatLonOptions & WithSourceField(const char *value)
#define AWS_CLOUDSEARCH_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
LatLonOptions & WithDefaultValue(const char *value)
Definition: LatLonOptions.h:83
LatLonOptions & WithSourceField(const Aws::String &value)
Definition: LatLonOptions.h:98
JSON (JavaScript Object Notation).
LatLonOptions & WithDefaultValue(const Aws::String &value)
Definition: LatLonOptions.h:73