AWS SDK for C++  1.8.126
AWS SDK for C++
DateArrayOptions.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace CloudSearch
22 {
23 namespace Model
24 {
25 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
49 
53  inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
54 
58  inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
59 
63  inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
64 
68  inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
69 
73  inline DateArrayOptions& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
74 
78  inline DateArrayOptions& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
79 
83  inline DateArrayOptions& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
84 
85 
89  inline const Aws::String& GetSourceFields() const{ return m_sourceFields; }
90 
94  inline bool SourceFieldsHasBeenSet() const { return m_sourceFieldsHasBeenSet; }
95 
99  inline void SetSourceFields(const Aws::String& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = value; }
100 
104  inline void SetSourceFields(Aws::String&& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = std::move(value); }
105 
109  inline void SetSourceFields(const char* value) { m_sourceFieldsHasBeenSet = true; m_sourceFields.assign(value); }
110 
114  inline DateArrayOptions& WithSourceFields(const Aws::String& value) { SetSourceFields(value); return *this;}
115 
119  inline DateArrayOptions& WithSourceFields(Aws::String&& value) { SetSourceFields(std::move(value)); return *this;}
120 
124  inline DateArrayOptions& WithSourceFields(const char* value) { SetSourceFields(value); return *this;}
125 
126 
130  inline bool GetFacetEnabled() const{ return m_facetEnabled; }
131 
135  inline bool FacetEnabledHasBeenSet() const { return m_facetEnabledHasBeenSet; }
136 
140  inline void SetFacetEnabled(bool value) { m_facetEnabledHasBeenSet = true; m_facetEnabled = value; }
141 
145  inline DateArrayOptions& WithFacetEnabled(bool value) { SetFacetEnabled(value); return *this;}
146 
147 
151  inline bool GetSearchEnabled() const{ return m_searchEnabled; }
152 
156  inline bool SearchEnabledHasBeenSet() const { return m_searchEnabledHasBeenSet; }
157 
161  inline void SetSearchEnabled(bool value) { m_searchEnabledHasBeenSet = true; m_searchEnabled = value; }
162 
166  inline DateArrayOptions& WithSearchEnabled(bool value) { SetSearchEnabled(value); return *this;}
167 
168 
172  inline bool GetReturnEnabled() const{ return m_returnEnabled; }
173 
177  inline bool ReturnEnabledHasBeenSet() const { return m_returnEnabledHasBeenSet; }
178 
182  inline void SetReturnEnabled(bool value) { m_returnEnabledHasBeenSet = true; m_returnEnabled = value; }
183 
187  inline DateArrayOptions& WithReturnEnabled(bool value) { SetReturnEnabled(value); return *this;}
188 
189  private:
190 
191  Aws::String m_defaultValue;
192  bool m_defaultValueHasBeenSet;
193 
194  Aws::String m_sourceFields;
195  bool m_sourceFieldsHasBeenSet;
196 
197  bool m_facetEnabled;
198  bool m_facetEnabledHasBeenSet;
199 
200  bool m_searchEnabled;
201  bool m_searchEnabledHasBeenSet;
202 
203  bool m_returnEnabled;
204  bool m_returnEnabledHasBeenSet;
205  };
206 
207 } // namespace Model
208 } // namespace CloudSearch
209 } // namespace Aws
Aws::CloudSearch::Model::DateArrayOptions::GetDefaultValue
const Aws::String & GetDefaultValue() const
Definition: DateArrayOptions.h:48
Aws::CloudSearch::Model::DateArrayOptions::WithDefaultValue
DateArrayOptions & WithDefaultValue(const Aws::String &value)
Definition: DateArrayOptions.h:73
Aws::CloudSearch::Model::DateArrayOptions::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::CloudSearch::Model::DateArrayOptions::SetSearchEnabled
void SetSearchEnabled(bool value)
Definition: DateArrayOptions.h:161
Aws::CloudSearch::Model::DateArrayOptions::SetDefaultValue
void SetDefaultValue(const Aws::String &value)
Definition: DateArrayOptions.h:58
AWSStreamFwd.h
CloudSearch_EXPORTS.h
Aws::CloudSearch::Model::DateArrayOptions::SetFacetEnabled
void SetFacetEnabled(bool value)
Definition: DateArrayOptions.h:140
Aws::CloudSearch::Model::DateArrayOptions::operator=
DateArrayOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudSearch::Model::DateArrayOptions::SetDefaultValue
void SetDefaultValue(Aws::String &&value)
Definition: DateArrayOptions.h:63
Aws::CloudSearch::Model::DateArrayOptions::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::CloudSearch::Model::DateArrayOptions::WithDefaultValue
DateArrayOptions & WithDefaultValue(const char *value)
Definition: DateArrayOptions.h:83
Aws::CloudSearch::Model::DateArrayOptions::GetFacetEnabled
bool GetFacetEnabled() const
Definition: DateArrayOptions.h:130
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::CloudSearch::Model::DateArrayOptions::GetSearchEnabled
bool GetSearchEnabled() const
Definition: DateArrayOptions.h:151
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudSearch::Model::DateArrayOptions::WithDefaultValue
DateArrayOptions & WithDefaultValue(Aws::String &&value)
Definition: DateArrayOptions.h:78
Aws::CloudSearch::Model::DateArrayOptions::DefaultValueHasBeenSet
bool DefaultValueHasBeenSet() const
Definition: DateArrayOptions.h:53
Aws::CloudSearch::Model::DateArrayOptions::SetReturnEnabled
void SetReturnEnabled(bool value)
Definition: DateArrayOptions.h:182
Aws::CloudSearch::Model::DateArrayOptions::GetSourceFields
const Aws::String & GetSourceFields() const
Definition: DateArrayOptions.h:89
AWSString.h
Aws::CloudSearch::Model::DateArrayOptions::FacetEnabledHasBeenSet
bool FacetEnabledHasBeenSet() const
Definition: DateArrayOptions.h:135
Aws::CloudSearch::Model::DateArrayOptions::SearchEnabledHasBeenSet
bool SearchEnabledHasBeenSet() const
Definition: DateArrayOptions.h:156
Aws::CloudSearch::Model::DateArrayOptions::WithFacetEnabled
DateArrayOptions & WithFacetEnabled(bool value)
Definition: DateArrayOptions.h:145
Aws::CloudSearch::Model::DateArrayOptions::DateArrayOptions
DateArrayOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudSearch::Model::DateArrayOptions::DateArrayOptions
DateArrayOptions()
Aws::CloudSearch::Model::DateArrayOptions::SourceFieldsHasBeenSet
bool SourceFieldsHasBeenSet() const
Definition: DateArrayOptions.h:94
Aws::CloudSearch::Model::DateArrayOptions::WithSearchEnabled
DateArrayOptions & WithSearchEnabled(bool value)
Definition: DateArrayOptions.h:166
Aws::CloudSearch::Model::DateArrayOptions::SetDefaultValue
void SetDefaultValue(const char *value)
Definition: DateArrayOptions.h:68
Aws::CloudSearch::Model::DateArrayOptions::WithSourceFields
DateArrayOptions & WithSourceFields(const char *value)
Definition: DateArrayOptions.h:124
Aws
Definition: AccessManagementClient.h:15
Aws::CloudSearch::Model::DateArrayOptions
Definition: DateArrayOptions.h:35
AWS_CLOUDSEARCH_API
#define AWS_CLOUDSEARCH_API
Definition: CloudSearch_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudSearch::Model::DateArrayOptions::GetReturnEnabled
bool GetReturnEnabled() const
Definition: DateArrayOptions.h:172
index
int index
Definition: cJSON.h:171
Aws::CloudSearch::Model::DateArrayOptions::WithReturnEnabled
DateArrayOptions & WithReturnEnabled(bool value)
Definition: DateArrayOptions.h:187
Aws::CloudSearch::Model::DateArrayOptions::SetSourceFields
void SetSourceFields(const char *value)
Definition: DateArrayOptions.h:109
Aws::CloudSearch::Model::DateArrayOptions::WithSourceFields
DateArrayOptions & WithSourceFields(Aws::String &&value)
Definition: DateArrayOptions.h:119
Aws::CloudSearch::Model::DateArrayOptions::SetSourceFields
void SetSourceFields(const Aws::String &value)
Definition: DateArrayOptions.h:99
Aws::CloudSearch::Model::DateArrayOptions::SetSourceFields
void SetSourceFields(Aws::String &&value)
Definition: DateArrayOptions.h:104
Aws::CloudSearch::Model::DateArrayOptions::ReturnEnabledHasBeenSet
bool ReturnEnabledHasBeenSet() const
Definition: DateArrayOptions.h:177
Aws::CloudSearch::Model::DateArrayOptions::WithSourceFields
DateArrayOptions & WithSourceFields(const Aws::String &value)
Definition: DateArrayOptions.h:114