AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LiteralOptions.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 LiteralOptions();
37 AWS_CLOUDSEARCH_API LiteralOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDSEARCH_API LiteralOptions& 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
48 inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
49 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
50 inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
51 inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
52 inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
53 inline LiteralOptions& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
54 inline LiteralOptions& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
55 inline LiteralOptions& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
57
59
60 inline const Aws::String& GetSourceField() const{ return m_sourceField; }
61 inline bool SourceFieldHasBeenSet() const { return m_sourceFieldHasBeenSet; }
62 inline void SetSourceField(const Aws::String& value) { m_sourceFieldHasBeenSet = true; m_sourceField = value; }
63 inline void SetSourceField(Aws::String&& value) { m_sourceFieldHasBeenSet = true; m_sourceField = std::move(value); }
64 inline void SetSourceField(const char* value) { m_sourceFieldHasBeenSet = true; m_sourceField.assign(value); }
65 inline LiteralOptions& WithSourceField(const Aws::String& value) { SetSourceField(value); return *this;}
66 inline LiteralOptions& WithSourceField(Aws::String&& value) { SetSourceField(std::move(value)); return *this;}
67 inline LiteralOptions& WithSourceField(const char* value) { SetSourceField(value); return *this;}
69
71
74 inline bool GetFacetEnabled() const{ return m_facetEnabled; }
75 inline bool FacetEnabledHasBeenSet() const { return m_facetEnabledHasBeenSet; }
76 inline void SetFacetEnabled(bool value) { m_facetEnabledHasBeenSet = true; m_facetEnabled = value; }
77 inline LiteralOptions& WithFacetEnabled(bool value) { SetFacetEnabled(value); return *this;}
79
81
84 inline bool GetSearchEnabled() const{ return m_searchEnabled; }
85 inline bool SearchEnabledHasBeenSet() const { return m_searchEnabledHasBeenSet; }
86 inline void SetSearchEnabled(bool value) { m_searchEnabledHasBeenSet = true; m_searchEnabled = value; }
87 inline LiteralOptions& WithSearchEnabled(bool value) { SetSearchEnabled(value); return *this;}
89
91
94 inline bool GetReturnEnabled() const{ return m_returnEnabled; }
95 inline bool ReturnEnabledHasBeenSet() const { return m_returnEnabledHasBeenSet; }
96 inline void SetReturnEnabled(bool value) { m_returnEnabledHasBeenSet = true; m_returnEnabled = value; }
97 inline LiteralOptions& WithReturnEnabled(bool value) { SetReturnEnabled(value); return *this;}
99
101
104 inline bool GetSortEnabled() const{ return m_sortEnabled; }
105 inline bool SortEnabledHasBeenSet() const { return m_sortEnabledHasBeenSet; }
106 inline void SetSortEnabled(bool value) { m_sortEnabledHasBeenSet = true; m_sortEnabled = value; }
107 inline LiteralOptions& WithSortEnabled(bool value) { SetSortEnabled(value); return *this;}
109 private:
110
111 Aws::String m_defaultValue;
112 bool m_defaultValueHasBeenSet = false;
113
114 Aws::String m_sourceField;
115 bool m_sourceFieldHasBeenSet = false;
116
117 bool m_facetEnabled;
118 bool m_facetEnabledHasBeenSet = false;
119
120 bool m_searchEnabled;
121 bool m_searchEnabledHasBeenSet = false;
122
123 bool m_returnEnabled;
124 bool m_returnEnabledHasBeenSet = false;
125
126 bool m_sortEnabled;
127 bool m_sortEnabledHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace CloudSearch
132} // namespace Aws
LiteralOptions & WithSortEnabled(bool value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LiteralOptions & WithSourceField(const char *value)
void SetDefaultValue(Aws::String &&value)
LiteralOptions & WithDefaultValue(Aws::String &&value)
LiteralOptions & WithDefaultValue(const char *value)
LiteralOptions & WithReturnEnabled(bool value)
LiteralOptions & WithFacetEnabled(bool value)
LiteralOptions & WithSearchEnabled(bool value)
LiteralOptions & WithSourceField(Aws::String &&value)
void SetDefaultValue(const char *value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDSEARCH_API LiteralOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSourceField(const Aws::String &value)
LiteralOptions & WithDefaultValue(const Aws::String &value)
void SetDefaultValue(const Aws::String &value)
void SetSourceField(Aws::String &&value)
LiteralOptions & WithSourceField(const Aws::String &value)
const Aws::String & GetSourceField() const
AWS_CLOUDSEARCH_API LiteralOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetDefaultValue() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream