AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IntOptions.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 IntOptions();
37 AWS_CLOUDSEARCH_API IntOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDSEARCH_API IntOptions& 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
50 inline long long GetDefaultValue() const{ return m_defaultValue; }
51 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
52 inline void SetDefaultValue(long long value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
53 inline IntOptions& WithDefaultValue(long long value) { SetDefaultValue(value); return *this;}
55
57
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 IntOptions& WithSourceField(const Aws::String& value) { SetSourceField(value); return *this;}
66 inline IntOptions& WithSourceField(Aws::String&& value) { SetSourceField(std::move(value)); return *this;}
67 inline IntOptions& 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 IntOptions& 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 IntOptions& 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 IntOptions& 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 IntOptions& WithSortEnabled(bool value) { SetSortEnabled(value); return *this;}
109 private:
110
111 long long 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
AWS_CLOUDSEARCH_API IntOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
IntOptions & WithReturnEnabled(bool value)
Definition IntOptions.h:97
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetSourceField(Aws::String &&value)
Definition IntOptions.h:63
IntOptions & WithSourceField(Aws::String &&value)
Definition IntOptions.h:66
void SetDefaultValue(long long value)
Definition IntOptions.h:52
IntOptions & WithSortEnabled(bool value)
Definition IntOptions.h:107
IntOptions & WithDefaultValue(long long value)
Definition IntOptions.h:53
const Aws::String & GetSourceField() const
Definition IntOptions.h:60
IntOptions & WithSearchEnabled(bool value)
Definition IntOptions.h:87
AWS_CLOUDSEARCH_API IntOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
IntOptions & WithFacetEnabled(bool value)
Definition IntOptions.h:77
IntOptions & WithSourceField(const Aws::String &value)
Definition IntOptions.h:65
void SetSourceField(const char *value)
Definition IntOptions.h:64
IntOptions & WithSourceField(const char *value)
Definition IntOptions.h:67
void SetSourceField(const Aws::String &value)
Definition IntOptions.h:62
AWS_CLOUDSEARCH_API IntOptions()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream