AWS SDK for C++  0.14.3
AWS SDK for C++
OptionSetting.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/rds/RDS_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace RDS
30 {
31 namespace Model
32 {
33 
41  {
42  public:
43  OptionSetting();
45  OptionSetting& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46 
47  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48  void OutputToStream(Aws::OStream& oStream, const char* location) const;
49 
53  inline const Aws::String& GetName() const{ return m_name; }
54 
58  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 
63  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
64 
68  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 
73  inline OptionSetting& WithName(const Aws::String& value) { SetName(value); return *this;}
74 
78  inline OptionSetting& WithName(Aws::String&& value) { SetName(value); return *this;}
79 
83  inline OptionSetting& WithName(const char* value) { SetName(value); return *this;}
84 
88  inline const Aws::String& GetValue() const{ return m_value; }
89 
93  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
94 
98  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = value; }
99 
103  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
104 
108  inline OptionSetting& WithValue(const Aws::String& value) { SetValue(value); return *this;}
109 
113  inline OptionSetting& WithValue(Aws::String&& value) { SetValue(value); return *this;}
114 
118  inline OptionSetting& WithValue(const char* value) { SetValue(value); return *this;}
119 
123  inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
124 
128  inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
129 
133  inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
134 
138  inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
139 
143  inline OptionSetting& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
144 
148  inline OptionSetting& WithDefaultValue(Aws::String&& value) { SetDefaultValue(value); return *this;}
149 
153  inline OptionSetting& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
154 
158  inline const Aws::String& GetDescription() const{ return m_description; }
159 
163  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
164 
168  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
169 
173  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
174 
178  inline OptionSetting& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
179 
183  inline OptionSetting& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
184 
188  inline OptionSetting& WithDescription(const char* value) { SetDescription(value); return *this;}
189 
193  inline const Aws::String& GetApplyType() const{ return m_applyType; }
194 
198  inline void SetApplyType(const Aws::String& value) { m_applyTypeHasBeenSet = true; m_applyType = value; }
199 
203  inline void SetApplyType(Aws::String&& value) { m_applyTypeHasBeenSet = true; m_applyType = value; }
204 
208  inline void SetApplyType(const char* value) { m_applyTypeHasBeenSet = true; m_applyType.assign(value); }
209 
213  inline OptionSetting& WithApplyType(const Aws::String& value) { SetApplyType(value); return *this;}
214 
218  inline OptionSetting& WithApplyType(Aws::String&& value) { SetApplyType(value); return *this;}
219 
223  inline OptionSetting& WithApplyType(const char* value) { SetApplyType(value); return *this;}
224 
228  inline const Aws::String& GetDataType() const{ return m_dataType; }
229 
233  inline void SetDataType(const Aws::String& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
234 
238  inline void SetDataType(Aws::String&& value) { m_dataTypeHasBeenSet = true; m_dataType = value; }
239 
243  inline void SetDataType(const char* value) { m_dataTypeHasBeenSet = true; m_dataType.assign(value); }
244 
248  inline OptionSetting& WithDataType(const Aws::String& value) { SetDataType(value); return *this;}
249 
253  inline OptionSetting& WithDataType(Aws::String&& value) { SetDataType(value); return *this;}
254 
258  inline OptionSetting& WithDataType(const char* value) { SetDataType(value); return *this;}
259 
263  inline const Aws::String& GetAllowedValues() const{ return m_allowedValues; }
264 
268  inline void SetAllowedValues(const Aws::String& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = value; }
269 
273  inline void SetAllowedValues(Aws::String&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = value; }
274 
278  inline void SetAllowedValues(const char* value) { m_allowedValuesHasBeenSet = true; m_allowedValues.assign(value); }
279 
283  inline OptionSetting& WithAllowedValues(const Aws::String& value) { SetAllowedValues(value); return *this;}
284 
288  inline OptionSetting& WithAllowedValues(Aws::String&& value) { SetAllowedValues(value); return *this;}
289 
293  inline OptionSetting& WithAllowedValues(const char* value) { SetAllowedValues(value); return *this;}
294 
299  inline bool GetIsModifiable() const{ return m_isModifiable; }
300 
305  inline void SetIsModifiable(bool value) { m_isModifiableHasBeenSet = true; m_isModifiable = value; }
306 
311  inline OptionSetting& WithIsModifiable(bool value) { SetIsModifiable(value); return *this;}
312 
316  inline bool GetIsCollection() const{ return m_isCollection; }
317 
321  inline void SetIsCollection(bool value) { m_isCollectionHasBeenSet = true; m_isCollection = value; }
322 
326  inline OptionSetting& WithIsCollection(bool value) { SetIsCollection(value); return *this;}
327 
328  private:
329  Aws::String m_name;
330  bool m_nameHasBeenSet;
331  Aws::String m_value;
332  bool m_valueHasBeenSet;
333  Aws::String m_defaultValue;
334  bool m_defaultValueHasBeenSet;
335  Aws::String m_description;
336  bool m_descriptionHasBeenSet;
337  Aws::String m_applyType;
338  bool m_applyTypeHasBeenSet;
339  Aws::String m_dataType;
340  bool m_dataTypeHasBeenSet;
341  Aws::String m_allowedValues;
342  bool m_allowedValuesHasBeenSet;
343  bool m_isModifiable;
344  bool m_isModifiableHasBeenSet;
345  bool m_isCollection;
346  bool m_isCollectionHasBeenSet;
347  };
348 
349 } // namespace Model
350 } // namespace RDS
351 } // namespace Aws
const Aws::String & GetAllowedValues() const
OptionSetting & WithApplyType(const Aws::String &value)
void SetDefaultValue(const char *value)
void SetDataType(const char *value)
void SetDefaultValue(const Aws::String &value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
void SetValue(const char *value)
void SetIsModifiable(bool value)
OptionSetting & WithDataType(Aws::String &&value)
void SetValue(Aws::String &&value)
Definition: OptionSetting.h:98
void SetDataType(const Aws::String &value)
void SetDataType(Aws::String &&value)
OptionSetting & WithDefaultValue(Aws::String &&value)
OptionSetting & WithIsCollection(bool value)
OptionSetting & WithValue(Aws::String &&value)
void SetIsCollection(bool value)
const Aws::String & GetValue() const
Definition: OptionSetting.h:88
void SetAllowedValues(Aws::String &&value)
OptionSetting & WithDefaultValue(const char *value)
void SetDescription(const char *value)
void SetValue(const Aws::String &value)
Definition: OptionSetting.h:93
OptionSetting & WithDefaultValue(const Aws::String &value)
OptionSetting & WithDataType(const Aws::String &value)
void SetDescription(Aws::String &&value)
OptionSetting & WithAllowedValues(const char *value)
OptionSetting & WithAllowedValues(Aws::String &&value)
void SetDescription(const Aws::String &value)
const Aws::String & GetDescription() const
OptionSetting & WithValue(const char *value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
OptionSetting & WithIsModifiable(bool value)
OptionSetting & WithApplyType(Aws::String &&value)
void SetAllowedValues(const Aws::String &value)
const Aws::String & GetName() const
Definition: OptionSetting.h:53
void SetDefaultValue(Aws::String &&value)
OptionSetting & WithAllowedValues(const Aws::String &value)
OptionSetting & WithName(const char *value)
Definition: OptionSetting.h:83
OptionSetting & WithDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
OptionSetting & WithDescription(Aws::String &&value)
void SetApplyType(const Aws::String &value)
void SetName(const char *value)
Definition: OptionSetting.h:68
void SetName(Aws::String &&value)
Definition: OptionSetting.h:63
OptionSetting & WithDescription(const char *value)
void SetName(const Aws::String &value)
Definition: OptionSetting.h:58
OptionSetting & WithValue(const Aws::String &value)
const Aws::String & GetApplyType() const
OptionSetting & WithDataType(const char *value)
void SetApplyType(const char *value)
void SetApplyType(Aws::String &&value)
OptionSetting & WithName(Aws::String &&value)
Definition: OptionSetting.h:78
OptionSetting & WithApplyType(const char *value)
void SetAllowedValues(const char *value)
const Aws::String & GetDefaultValue() const
const Aws::String & GetDataType() const
OptionSetting & WithName(const Aws::String &value)
Definition: OptionSetting.h:73
JSON (JavaScript Object Notation).