AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DoubleArrayOptions.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 DoubleArrayOptions() = default;
38 AWS_CLOUDSEARCH_API DoubleArrayOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_CLOUDSEARCH_API DoubleArrayOptions& 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 double GetDefaultValue() const { return m_defaultValue; }
50 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
51 inline void SetDefaultValue(double value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
52 inline DoubleArrayOptions& WithDefaultValue(double value) { SetDefaultValue(value); return *this;}
54
56
59 inline const Aws::String& GetSourceFields() const { return m_sourceFields; }
60 inline bool SourceFieldsHasBeenSet() const { return m_sourceFieldsHasBeenSet; }
61 template<typename SourceFieldsT = Aws::String>
62 void SetSourceFields(SourceFieldsT&& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = std::forward<SourceFieldsT>(value); }
63 template<typename SourceFieldsT = Aws::String>
64 DoubleArrayOptions& WithSourceFields(SourceFieldsT&& value) { SetSourceFields(std::forward<SourceFieldsT>(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 DoubleArrayOptions& 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 DoubleArrayOptions& 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 DoubleArrayOptions& WithReturnEnabled(bool value) { SetReturnEnabled(value); return *this;}
96 private:
97
98 double m_defaultValue{0.0};
99 bool m_defaultValueHasBeenSet = false;
100
101 Aws::String m_sourceFields;
102 bool m_sourceFieldsHasBeenSet = false;
103
104 bool m_facetEnabled{false};
105 bool m_facetEnabledHasBeenSet = false;
106
107 bool m_searchEnabled{false};
108 bool m_searchEnabledHasBeenSet = false;
109
110 bool m_returnEnabled{false};
111 bool m_returnEnabledHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace CloudSearch
116} // namespace Aws
DoubleArrayOptions & WithDefaultValue(double value)
DoubleArrayOptions & WithSourceFields(SourceFieldsT &&value)
DoubleArrayOptions & WithSearchEnabled(bool value)
AWS_CLOUDSEARCH_API DoubleArrayOptions()=default
DoubleArrayOptions & WithFacetEnabled(bool value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DoubleArrayOptions & WithReturnEnabled(bool value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDSEARCH_API DoubleArrayOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDSEARCH_API DoubleArrayOptions & operator=(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