AWS SDK for C++

AWS SDK for C++ Version 1.11.751

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace CloudSearch {
20namespace Model {
21
31 public:
32 AWS_CLOUDSEARCH_API DoubleArrayOptions() = default;
33 AWS_CLOUDSEARCH_API DoubleArrayOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_CLOUDSEARCH_API DoubleArrayOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline double GetDefaultValue() const { return m_defaultValue; }
44 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
45 inline void SetDefaultValue(double value) {
46 m_defaultValueHasBeenSet = true;
47 m_defaultValue = value;
48 }
49 inline DoubleArrayOptions& WithDefaultValue(double value) {
50 SetDefaultValue(value);
51 return *this;
52 }
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) {
63 m_sourceFieldsHasBeenSet = true;
64 m_sourceFields = std::forward<SourceFieldsT>(value);
65 }
66 template <typename SourceFieldsT = Aws::String>
67 DoubleArrayOptions& WithSourceFields(SourceFieldsT&& value) {
68 SetSourceFields(std::forward<SourceFieldsT>(value));
69 return *this;
70 }
72
74
77 inline bool GetFacetEnabled() const { return m_facetEnabled; }
78 inline bool FacetEnabledHasBeenSet() const { return m_facetEnabledHasBeenSet; }
79 inline void SetFacetEnabled(bool value) {
80 m_facetEnabledHasBeenSet = true;
81 m_facetEnabled = value;
82 }
84 SetFacetEnabled(value);
85 return *this;
86 }
88
90
93 inline bool GetSearchEnabled() const { return m_searchEnabled; }
94 inline bool SearchEnabledHasBeenSet() const { return m_searchEnabledHasBeenSet; }
95 inline void SetSearchEnabled(bool value) {
96 m_searchEnabledHasBeenSet = true;
97 m_searchEnabled = value;
98 }
100 SetSearchEnabled(value);
101 return *this;
102 }
104
106
109 inline bool GetReturnEnabled() const { return m_returnEnabled; }
110 inline bool ReturnEnabledHasBeenSet() const { return m_returnEnabledHasBeenSet; }
111 inline void SetReturnEnabled(bool value) {
112 m_returnEnabledHasBeenSet = true;
113 m_returnEnabled = value;
114 }
116 SetReturnEnabled(value);
117 return *this;
118 }
120 private:
121 double m_defaultValue{0.0};
122
123 Aws::String m_sourceFields;
124
125 bool m_facetEnabled{false};
126
127 bool m_searchEnabled{false};
128
129 bool m_returnEnabled{false};
130 bool m_defaultValueHasBeenSet = false;
131 bool m_sourceFieldsHasBeenSet = false;
132 bool m_facetEnabledHasBeenSet = false;
133 bool m_searchEnabledHasBeenSet = false;
134 bool m_returnEnabledHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace CloudSearch
139} // 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