AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DoubleOptions.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
34 {
35 public:
36 AWS_CLOUDSEARCH_API DoubleOptions() = default;
37 AWS_CLOUDSEARCH_API DoubleOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDSEARCH_API DoubleOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
50 inline double GetDefaultValue() const { return m_defaultValue; }
51 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
52 inline void SetDefaultValue(double value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
53 inline DoubleOptions& WithDefaultValue(double value) { SetDefaultValue(value); return *this;}
55
57
60 inline const Aws::String& GetSourceField() const { return m_sourceField; }
61 inline bool SourceFieldHasBeenSet() const { return m_sourceFieldHasBeenSet; }
62 template<typename SourceFieldT = Aws::String>
63 void SetSourceField(SourceFieldT&& value) { m_sourceFieldHasBeenSet = true; m_sourceField = std::forward<SourceFieldT>(value); }
64 template<typename SourceFieldT = Aws::String>
65 DoubleOptions& WithSourceField(SourceFieldT&& value) { SetSourceField(std::forward<SourceFieldT>(value)); return *this;}
67
69
72 inline bool GetFacetEnabled() const { return m_facetEnabled; }
73 inline bool FacetEnabledHasBeenSet() const { return m_facetEnabledHasBeenSet; }
74 inline void SetFacetEnabled(bool value) { m_facetEnabledHasBeenSet = true; m_facetEnabled = value; }
75 inline DoubleOptions& WithFacetEnabled(bool value) { SetFacetEnabled(value); return *this;}
77
79
82 inline bool GetSearchEnabled() const { return m_searchEnabled; }
83 inline bool SearchEnabledHasBeenSet() const { return m_searchEnabledHasBeenSet; }
84 inline void SetSearchEnabled(bool value) { m_searchEnabledHasBeenSet = true; m_searchEnabled = value; }
85 inline DoubleOptions& WithSearchEnabled(bool value) { SetSearchEnabled(value); return *this;}
87
89
92 inline bool GetReturnEnabled() const { return m_returnEnabled; }
93 inline bool ReturnEnabledHasBeenSet() const { return m_returnEnabledHasBeenSet; }
94 inline void SetReturnEnabled(bool value) { m_returnEnabledHasBeenSet = true; m_returnEnabled = value; }
95 inline DoubleOptions& WithReturnEnabled(bool value) { SetReturnEnabled(value); return *this;}
97
99
102 inline bool GetSortEnabled() const { return m_sortEnabled; }
103 inline bool SortEnabledHasBeenSet() const { return m_sortEnabledHasBeenSet; }
104 inline void SetSortEnabled(bool value) { m_sortEnabledHasBeenSet = true; m_sortEnabled = value; }
105 inline DoubleOptions& WithSortEnabled(bool value) { SetSortEnabled(value); return *this;}
107 private:
108
109 double m_defaultValue{0.0};
110 bool m_defaultValueHasBeenSet = false;
111
112 Aws::String m_sourceField;
113 bool m_sourceFieldHasBeenSet = false;
114
115 bool m_facetEnabled{false};
116 bool m_facetEnabledHasBeenSet = false;
117
118 bool m_searchEnabled{false};
119 bool m_searchEnabledHasBeenSet = false;
120
121 bool m_returnEnabled{false};
122 bool m_returnEnabledHasBeenSet = false;
123
124 bool m_sortEnabled{false};
125 bool m_sortEnabledHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace CloudSearch
130} // namespace Aws
AWS_CLOUDSEARCH_API DoubleOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DoubleOptions & WithFacetEnabled(bool value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDSEARCH_API DoubleOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
DoubleOptions & WithSearchEnabled(bool value)
DoubleOptions & WithSortEnabled(bool value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
DoubleOptions & WithDefaultValue(double value)
DoubleOptions & WithReturnEnabled(bool value)
AWS_CLOUDSEARCH_API DoubleOptions()=default
const Aws::String & GetSourceField() const
void SetSourceField(SourceFieldT &&value)
DoubleOptions & WithSourceField(SourceFieldT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream