AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Parameter.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/redshift/model/ParameterApplyType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace Redshift
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_REDSHIFT_API Parameter() = default;
37 AWS_REDSHIFT_API Parameter(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_REDSHIFT_API Parameter& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetParameterName() const { return m_parameterName; }
49 inline bool ParameterNameHasBeenSet() const { return m_parameterNameHasBeenSet; }
50 template<typename ParameterNameT = Aws::String>
51 void SetParameterName(ParameterNameT&& value) { m_parameterNameHasBeenSet = true; m_parameterName = std::forward<ParameterNameT>(value); }
52 template<typename ParameterNameT = Aws::String>
53 Parameter& WithParameterName(ParameterNameT&& value) { SetParameterName(std::forward<ParameterNameT>(value)); return *this;}
55
57
62 inline const Aws::String& GetParameterValue() const { return m_parameterValue; }
63 inline bool ParameterValueHasBeenSet() const { return m_parameterValueHasBeenSet; }
64 template<typename ParameterValueT = Aws::String>
65 void SetParameterValue(ParameterValueT&& value) { m_parameterValueHasBeenSet = true; m_parameterValue = std::forward<ParameterValueT>(value); }
66 template<typename ParameterValueT = Aws::String>
67 Parameter& WithParameterValue(ParameterValueT&& value) { SetParameterValue(std::forward<ParameterValueT>(value)); return *this;}
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template<typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
78 template<typename DescriptionT = Aws::String>
79 Parameter& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
81
83
86 inline const Aws::String& GetSource() const { return m_source; }
87 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
88 template<typename SourceT = Aws::String>
89 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
90 template<typename SourceT = Aws::String>
91 Parameter& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
93
95
98 inline const Aws::String& GetDataType() const { return m_dataType; }
99 inline bool DataTypeHasBeenSet() const { return m_dataTypeHasBeenSet; }
100 template<typename DataTypeT = Aws::String>
101 void SetDataType(DataTypeT&& value) { m_dataTypeHasBeenSet = true; m_dataType = std::forward<DataTypeT>(value); }
102 template<typename DataTypeT = Aws::String>
103 Parameter& WithDataType(DataTypeT&& value) { SetDataType(std::forward<DataTypeT>(value)); return *this;}
105
107
110 inline const Aws::String& GetAllowedValues() const { return m_allowedValues; }
111 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
112 template<typename AllowedValuesT = Aws::String>
113 void SetAllowedValues(AllowedValuesT&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::forward<AllowedValuesT>(value); }
114 template<typename AllowedValuesT = Aws::String>
115 Parameter& WithAllowedValues(AllowedValuesT&& value) { SetAllowedValues(std::forward<AllowedValuesT>(value)); return *this;}
117
119
128 inline ParameterApplyType GetApplyType() const { return m_applyType; }
129 inline bool ApplyTypeHasBeenSet() const { return m_applyTypeHasBeenSet; }
130 inline void SetApplyType(ParameterApplyType value) { m_applyTypeHasBeenSet = true; m_applyType = value; }
131 inline Parameter& WithApplyType(ParameterApplyType value) { SetApplyType(value); return *this;}
133
135
139 inline bool GetIsModifiable() const { return m_isModifiable; }
140 inline bool IsModifiableHasBeenSet() const { return m_isModifiableHasBeenSet; }
141 inline void SetIsModifiable(bool value) { m_isModifiableHasBeenSet = true; m_isModifiable = value; }
142 inline Parameter& WithIsModifiable(bool value) { SetIsModifiable(value); return *this;}
144
146
149 inline const Aws::String& GetMinimumEngineVersion() const { return m_minimumEngineVersion; }
150 inline bool MinimumEngineVersionHasBeenSet() const { return m_minimumEngineVersionHasBeenSet; }
151 template<typename MinimumEngineVersionT = Aws::String>
152 void SetMinimumEngineVersion(MinimumEngineVersionT&& value) { m_minimumEngineVersionHasBeenSet = true; m_minimumEngineVersion = std::forward<MinimumEngineVersionT>(value); }
153 template<typename MinimumEngineVersionT = Aws::String>
154 Parameter& WithMinimumEngineVersion(MinimumEngineVersionT&& value) { SetMinimumEngineVersion(std::forward<MinimumEngineVersionT>(value)); return *this;}
156 private:
157
158 Aws::String m_parameterName;
159 bool m_parameterNameHasBeenSet = false;
160
161 Aws::String m_parameterValue;
162 bool m_parameterValueHasBeenSet = false;
163
164 Aws::String m_description;
165 bool m_descriptionHasBeenSet = false;
166
167 Aws::String m_source;
168 bool m_sourceHasBeenSet = false;
169
170 Aws::String m_dataType;
171 bool m_dataTypeHasBeenSet = false;
172
173 Aws::String m_allowedValues;
174 bool m_allowedValuesHasBeenSet = false;
175
177 bool m_applyTypeHasBeenSet = false;
178
179 bool m_isModifiable{false};
180 bool m_isModifiableHasBeenSet = false;
181
182 Aws::String m_minimumEngineVersion;
183 bool m_minimumEngineVersionHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace Redshift
188} // namespace Aws
AWS_REDSHIFT_API Parameter(const Aws::Utils::Xml::XmlNode &xmlNode)
Parameter & WithIsModifiable(bool value)
Definition Parameter.h:142
void SetMinimumEngineVersion(MinimumEngineVersionT &&value)
Definition Parameter.h:152
const Aws::String & GetParameterValue() const
Definition Parameter.h:62
const Aws::String & GetAllowedValues() const
Definition Parameter.h:110
void SetIsModifiable(bool value)
Definition Parameter.h:141
bool MinimumEngineVersionHasBeenSet() const
Definition Parameter.h:150
bool ParameterNameHasBeenSet() const
Definition Parameter.h:49
const Aws::String & GetDataType() const
Definition Parameter.h:98
Parameter & WithApplyType(ParameterApplyType value)
Definition Parameter.h:131
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Parameter & WithDataType(DataTypeT &&value)
Definition Parameter.h:103
bool ParameterValueHasBeenSet() const
Definition Parameter.h:63
const Aws::String & GetMinimumEngineVersion() const
Definition Parameter.h:149
void SetParameterValue(ParameterValueT &&value)
Definition Parameter.h:65
Parameter & WithAllowedValues(AllowedValuesT &&value)
Definition Parameter.h:115
void SetParameterName(ParameterNameT &&value)
Definition Parameter.h:51
const Aws::String & GetParameterName() const
Definition Parameter.h:48
void SetApplyType(ParameterApplyType value)
Definition Parameter.h:130
Parameter & WithMinimumEngineVersion(MinimumEngineVersionT &&value)
Definition Parameter.h:154
void SetDataType(DataTypeT &&value)
Definition Parameter.h:101
void SetSource(SourceT &&value)
Definition Parameter.h:89
ParameterApplyType GetApplyType() const
Definition Parameter.h:128
const Aws::String & GetSource() const
Definition Parameter.h:86
void SetAllowedValues(AllowedValuesT &&value)
Definition Parameter.h:113
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_REDSHIFT_API Parameter & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API Parameter()=default
Parameter & WithParameterValue(ParameterValueT &&value)
Definition Parameter.h:67
Parameter & WithParameterName(ParameterNameT &&value)
Definition Parameter.h:53
const Aws::String & GetDescription() const
Definition Parameter.h:74
void SetDescription(DescriptionT &&value)
Definition Parameter.h:77
Parameter & WithDescription(DescriptionT &&value)
Definition Parameter.h:79
Parameter & WithSource(SourceT &&value)
Definition Parameter.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream