AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LiteralArrayOptions.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 LiteralArrayOptions();
38 AWS_CLOUDSEARCH_API LiteralArrayOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_CLOUDSEARCH_API LiteralArrayOptions& 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 const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
50 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
51 inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
52 inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
53 inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
54 inline LiteralArrayOptions& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
55 inline LiteralArrayOptions& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
56 inline LiteralArrayOptions& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
58
60
63 inline const Aws::String& GetSourceFields() const{ return m_sourceFields; }
64 inline bool SourceFieldsHasBeenSet() const { return m_sourceFieldsHasBeenSet; }
65 inline void SetSourceFields(const Aws::String& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = value; }
66 inline void SetSourceFields(Aws::String&& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = std::move(value); }
67 inline void SetSourceFields(const char* value) { m_sourceFieldsHasBeenSet = true; m_sourceFields.assign(value); }
68 inline LiteralArrayOptions& WithSourceFields(const Aws::String& value) { SetSourceFields(value); return *this;}
69 inline LiteralArrayOptions& WithSourceFields(Aws::String&& value) { SetSourceFields(std::move(value)); return *this;}
70 inline LiteralArrayOptions& WithSourceFields(const char* value) { SetSourceFields(value); return *this;}
72
74
77 inline bool GetFacetEnabled() const{ return m_facetEnabled; }
78 inline bool FacetEnabledHasBeenSet() const { return m_facetEnabledHasBeenSet; }
79 inline void SetFacetEnabled(bool value) { m_facetEnabledHasBeenSet = true; m_facetEnabled = value; }
80 inline LiteralArrayOptions& WithFacetEnabled(bool value) { SetFacetEnabled(value); return *this;}
82
84
87 inline bool GetSearchEnabled() const{ return m_searchEnabled; }
88 inline bool SearchEnabledHasBeenSet() const { return m_searchEnabledHasBeenSet; }
89 inline void SetSearchEnabled(bool value) { m_searchEnabledHasBeenSet = true; m_searchEnabled = value; }
90 inline LiteralArrayOptions& WithSearchEnabled(bool value) { SetSearchEnabled(value); return *this;}
92
94
97 inline bool GetReturnEnabled() const{ return m_returnEnabled; }
98 inline bool ReturnEnabledHasBeenSet() const { return m_returnEnabledHasBeenSet; }
99 inline void SetReturnEnabled(bool value) { m_returnEnabledHasBeenSet = true; m_returnEnabled = value; }
100 inline LiteralArrayOptions& WithReturnEnabled(bool value) { SetReturnEnabled(value); return *this;}
102 private:
103
104 Aws::String m_defaultValue;
105 bool m_defaultValueHasBeenSet = false;
106
107 Aws::String m_sourceFields;
108 bool m_sourceFieldsHasBeenSet = false;
109
110 bool m_facetEnabled;
111 bool m_facetEnabledHasBeenSet = false;
112
113 bool m_searchEnabled;
114 bool m_searchEnabledHasBeenSet = false;
115
116 bool m_returnEnabled;
117 bool m_returnEnabledHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace CloudSearch
122} // namespace Aws
LiteralArrayOptions & WithDefaultValue(const char *value)
AWS_CLOUDSEARCH_API LiteralArrayOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
LiteralArrayOptions & WithDefaultValue(const Aws::String &value)
AWS_CLOUDSEARCH_API LiteralArrayOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
LiteralArrayOptions & WithSourceFields(const Aws::String &value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LiteralArrayOptions & WithDefaultValue(Aws::String &&value)
LiteralArrayOptions & WithSourceFields(const char *value)
void SetDefaultValue(const Aws::String &value)
LiteralArrayOptions & WithSearchEnabled(bool value)
void SetSourceFields(const Aws::String &value)
LiteralArrayOptions & WithReturnEnabled(bool value)
LiteralArrayOptions & WithSourceFields(Aws::String &&value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LiteralArrayOptions & WithFacetEnabled(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream