AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
DateArrayOptions.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 DateArrayOptions() = default;
33 AWS_CLOUDSEARCH_API DateArrayOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_CLOUDSEARCH_API DateArrayOptions& 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 const Aws::String& GetDefaultValue() const { return m_defaultValue; }
44 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
45 template <typename DefaultValueT = Aws::String>
46 void SetDefaultValue(DefaultValueT&& value) {
47 m_defaultValueHasBeenSet = true;
48 m_defaultValue = std::forward<DefaultValueT>(value);
49 }
50 template <typename DefaultValueT = Aws::String>
51 DateArrayOptions& WithDefaultValue(DefaultValueT&& value) {
52 SetDefaultValue(std::forward<DefaultValueT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetSourceFields() const { return m_sourceFields; }
62 inline bool SourceFieldsHasBeenSet() const { return m_sourceFieldsHasBeenSet; }
63 template <typename SourceFieldsT = Aws::String>
64 void SetSourceFields(SourceFieldsT&& value) {
65 m_sourceFieldsHasBeenSet = true;
66 m_sourceFields = std::forward<SourceFieldsT>(value);
67 }
68 template <typename SourceFieldsT = Aws::String>
69 DateArrayOptions& WithSourceFields(SourceFieldsT&& value) {
70 SetSourceFields(std::forward<SourceFieldsT>(value));
71 return *this;
72 }
74
76
79 inline bool GetFacetEnabled() const { return m_facetEnabled; }
80 inline bool FacetEnabledHasBeenSet() const { return m_facetEnabledHasBeenSet; }
81 inline void SetFacetEnabled(bool value) {
82 m_facetEnabledHasBeenSet = true;
83 m_facetEnabled = value;
84 }
85 inline DateArrayOptions& WithFacetEnabled(bool value) {
86 SetFacetEnabled(value);
87 return *this;
88 }
90
92
95 inline bool GetSearchEnabled() const { return m_searchEnabled; }
96 inline bool SearchEnabledHasBeenSet() const { return m_searchEnabledHasBeenSet; }
97 inline void SetSearchEnabled(bool value) {
98 m_searchEnabledHasBeenSet = true;
99 m_searchEnabled = value;
100 }
102 SetSearchEnabled(value);
103 return *this;
104 }
106
108
111 inline bool GetReturnEnabled() const { return m_returnEnabled; }
112 inline bool ReturnEnabledHasBeenSet() const { return m_returnEnabledHasBeenSet; }
113 inline void SetReturnEnabled(bool value) {
114 m_returnEnabledHasBeenSet = true;
115 m_returnEnabled = value;
116 }
118 SetReturnEnabled(value);
119 return *this;
120 }
122 private:
123 Aws::String m_defaultValue;
124
125 Aws::String m_sourceFields;
126
127 bool m_facetEnabled{false};
128
129 bool m_searchEnabled{false};
130
131 bool m_returnEnabled{false};
132 bool m_defaultValueHasBeenSet = false;
133 bool m_sourceFieldsHasBeenSet = false;
134 bool m_facetEnabledHasBeenSet = false;
135 bool m_searchEnabledHasBeenSet = false;
136 bool m_returnEnabledHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace CloudSearch
141} // namespace Aws
DateArrayOptions & WithReturnEnabled(bool value)
AWS_CLOUDSEARCH_API DateArrayOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSourceFields(SourceFieldsT &&value)
void SetDefaultValue(DefaultValueT &&value)
AWS_CLOUDSEARCH_API DateArrayOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
DateArrayOptions & WithFacetEnabled(bool value)
AWS_CLOUDSEARCH_API DateArrayOptions()=default
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetSourceFields() const
DateArrayOptions & WithSourceFields(SourceFieldsT &&value)
DateArrayOptions & WithSearchEnabled(bool value)
const Aws::String & GetDefaultValue() const
DateArrayOptions & WithDefaultValue(DefaultValueT &&value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream