AWS SDK for C++  0.14.3
AWS SDK for C++
DoubleArrayOptions.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:
45  DoubleArrayOptions& 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 double GetDefaultValue() const{ return m_defaultValue; }
54 
58  inline void SetDefaultValue(double value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
59 
63  inline DoubleArrayOptions& WithDefaultValue(double value) { SetDefaultValue(value); return *this;}
64 
68  inline const Aws::String& GetSourceFields() const{ return m_sourceFields; }
69 
73  inline void SetSourceFields(const Aws::String& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = value; }
74 
78  inline void SetSourceFields(Aws::String&& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = value; }
79 
83  inline void SetSourceFields(const char* value) { m_sourceFieldsHasBeenSet = true; m_sourceFields.assign(value); }
84 
88  inline DoubleArrayOptions& WithSourceFields(const Aws::String& value) { SetSourceFields(value); return *this;}
89 
93  inline DoubleArrayOptions& WithSourceFields(Aws::String&& value) { SetSourceFields(value); return *this;}
94 
98  inline DoubleArrayOptions& WithSourceFields(const char* value) { SetSourceFields(value); return *this;}
99 
103  inline bool GetFacetEnabled() const{ return m_facetEnabled; }
104 
108  inline void SetFacetEnabled(bool value) { m_facetEnabledHasBeenSet = true; m_facetEnabled = value; }
109 
113  inline DoubleArrayOptions& WithFacetEnabled(bool value) { SetFacetEnabled(value); return *this;}
114 
118  inline bool GetSearchEnabled() const{ return m_searchEnabled; }
119 
123  inline void SetSearchEnabled(bool value) { m_searchEnabledHasBeenSet = true; m_searchEnabled = value; }
124 
128  inline DoubleArrayOptions& WithSearchEnabled(bool value) { SetSearchEnabled(value); return *this;}
129 
133  inline bool GetReturnEnabled() const{ return m_returnEnabled; }
134 
138  inline void SetReturnEnabled(bool value) { m_returnEnabledHasBeenSet = true; m_returnEnabled = value; }
139 
143  inline DoubleArrayOptions& WithReturnEnabled(bool value) { SetReturnEnabled(value); return *this;}
144 
145  private:
146  double m_defaultValue;
147  bool m_defaultValueHasBeenSet;
148  Aws::String m_sourceFields;
149  bool m_sourceFieldsHasBeenSet;
150  bool m_facetEnabled;
151  bool m_facetEnabledHasBeenSet;
152  bool m_searchEnabled;
153  bool m_searchEnabledHasBeenSet;
154  bool m_returnEnabled;
155  bool m_returnEnabledHasBeenSet;
156  };
157 
158 } // namespace Model
159 } // namespace CloudSearch
160 } // namespace Aws
DoubleArrayOptions & WithSearchEnabled(bool value)
DoubleArrayOptions & WithSourceFields(const Aws::String &value)
DoubleArrayOptions & WithDefaultValue(double value)
const Aws::String & GetSourceFields() const
void SetSourceFields(const Aws::String &value)
DoubleArrayOptions & WithSourceFields(Aws::String &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
DoubleArrayOptions & WithFacetEnabled(bool value)
#define AWS_CLOUDSEARCH_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DoubleArrayOptions & WithSourceFields(const char *value)
DoubleArrayOptions & WithReturnEnabled(bool value)
JSON (JavaScript Object Notation).