AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IntArrayOptions.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 IntArrayOptions();
38 AWS_CLOUDSEARCH_API IntArrayOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_CLOUDSEARCH_API IntArrayOptions& 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 long long GetDefaultValue() const{ return m_defaultValue; }
50 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
51 inline void SetDefaultValue(long long value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
52 inline IntArrayOptions& WithDefaultValue(long long value) { SetDefaultValue(value); return *this;}
54
56
59 inline const Aws::String& GetSourceFields() const{ return m_sourceFields; }
60 inline bool SourceFieldsHasBeenSet() const { return m_sourceFieldsHasBeenSet; }
61 inline void SetSourceFields(const Aws::String& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = value; }
62 inline void SetSourceFields(Aws::String&& value) { m_sourceFieldsHasBeenSet = true; m_sourceFields = std::move(value); }
63 inline void SetSourceFields(const char* value) { m_sourceFieldsHasBeenSet = true; m_sourceFields.assign(value); }
64 inline IntArrayOptions& WithSourceFields(const Aws::String& value) { SetSourceFields(value); return *this;}
65 inline IntArrayOptions& WithSourceFields(Aws::String&& value) { SetSourceFields(std::move(value)); return *this;}
66 inline IntArrayOptions& WithSourceFields(const char* value) { SetSourceFields(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 IntArrayOptions& 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 IntArrayOptions& 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 IntArrayOptions& WithReturnEnabled(bool value) { SetReturnEnabled(value); return *this;}
98 private:
99
100 long long m_defaultValue;
101 bool m_defaultValueHasBeenSet = false;
102
103 Aws::String m_sourceFields;
104 bool m_sourceFieldsHasBeenSet = false;
105
106 bool m_facetEnabled;
107 bool m_facetEnabledHasBeenSet = false;
108
109 bool m_searchEnabled;
110 bool m_searchEnabledHasBeenSet = false;
111
112 bool m_returnEnabled;
113 bool m_returnEnabledHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace CloudSearch
118} // namespace Aws
AWS_CLOUDSEARCH_API IntArrayOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
IntArrayOptions & WithSourceFields(const char *value)
IntArrayOptions & WithReturnEnabled(bool value)
IntArrayOptions & WithFacetEnabled(bool value)
IntArrayOptions & WithSearchEnabled(bool value)
AWS_CLOUDSEARCH_API IntArrayOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
IntArrayOptions & WithSourceFields(Aws::String &&value)
const Aws::String & GetSourceFields() const
IntArrayOptions & WithDefaultValue(long long value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
IntArrayOptions & WithSourceFields(const Aws::String &value)
void SetSourceFields(Aws::String &&value)
AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetSourceFields(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream