AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename DefaultValueT = Aws::String>
52 void SetDefaultValue(DefaultValueT&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::forward<DefaultValueT>(value); }
53 template<typename DefaultValueT = Aws::String>
54 LiteralArrayOptions& WithDefaultValue(DefaultValueT&& value) { SetDefaultValue(std::forward<DefaultValueT>(value)); return *this;}
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) { m_sourceFieldsHasBeenSet = true; m_sourceFields = std::forward<SourceFieldsT>(value); }
65 template<typename SourceFieldsT = Aws::String>
66 LiteralArrayOptions& WithSourceFields(SourceFieldsT&& value) { SetSourceFields(std::forward<SourceFieldsT>(value)); return *this;}
68
70
73 inline bool GetFacetEnabled() const { return m_facetEnabled; }
74 inline bool FacetEnabledHasBeenSet() const { return m_facetEnabledHasBeenSet; }
75 inline void SetFacetEnabled(bool value) { m_facetEnabledHasBeenSet = true; m_facetEnabled = value; }
76 inline LiteralArrayOptions& WithFacetEnabled(bool value) { SetFacetEnabled(value); return *this;}
78
80
83 inline bool GetSearchEnabled() const { return m_searchEnabled; }
84 inline bool SearchEnabledHasBeenSet() const { return m_searchEnabledHasBeenSet; }
85 inline void SetSearchEnabled(bool value) { m_searchEnabledHasBeenSet = true; m_searchEnabled = value; }
86 inline LiteralArrayOptions& WithSearchEnabled(bool value) { SetSearchEnabled(value); return *this;}
88
90
93 inline bool GetReturnEnabled() const { return m_returnEnabled; }
94 inline bool ReturnEnabledHasBeenSet() const { return m_returnEnabledHasBeenSet; }
95 inline void SetReturnEnabled(bool value) { m_returnEnabledHasBeenSet = true; m_returnEnabled = value; }
96 inline LiteralArrayOptions& WithReturnEnabled(bool value) { SetReturnEnabled(value); return *this;}
98 private:
99
100 Aws::String m_defaultValue;
101 bool m_defaultValueHasBeenSet = false;
102
103 Aws::String m_sourceFields;
104 bool m_sourceFieldsHasBeenSet = false;
105
106 bool m_facetEnabled{false};
107 bool m_facetEnabledHasBeenSet = false;
108
109 bool m_searchEnabled{false};
110 bool m_searchEnabledHasBeenSet = false;
111
112 bool m_returnEnabled{false};
113 bool m_returnEnabledHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace CloudSearch
118} // namespace Aws
AWS_CLOUDSEARCH_API LiteralArrayOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDSEARCH_API LiteralArrayOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDSEARCH_API LiteralArrayOptions()=default
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
LiteralArrayOptions & WithSourceFields(SourceFieldsT &&value)
LiteralArrayOptions & WithSearchEnabled(bool value)
LiteralArrayOptions & WithReturnEnabled(bool value)
LiteralArrayOptions & WithDefaultValue(DefaultValueT &&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