AWS SDK for C++  0.14.3
AWS SDK for C++
OptionGroupOptionSetting.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 
40  {
41  public:
44  OptionGroupOptionSetting& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
52  inline const Aws::String& GetSettingName() const{ return m_settingName; }
53 
57  inline void SetSettingName(const Aws::String& value) { m_settingNameHasBeenSet = true; m_settingName = value; }
58 
62  inline void SetSettingName(Aws::String&& value) { m_settingNameHasBeenSet = true; m_settingName = value; }
63 
67  inline void SetSettingName(const char* value) { m_settingNameHasBeenSet = true; m_settingName.assign(value); }
68 
72  inline OptionGroupOptionSetting& WithSettingName(const Aws::String& value) { SetSettingName(value); return *this;}
73 
77  inline OptionGroupOptionSetting& WithSettingName(Aws::String&& value) { SetSettingName(value); return *this;}
78 
82  inline OptionGroupOptionSetting& WithSettingName(const char* value) { SetSettingName(value); return *this;}
83 
87  inline const Aws::String& GetSettingDescription() const{ return m_settingDescription; }
88 
92  inline void SetSettingDescription(const Aws::String& value) { m_settingDescriptionHasBeenSet = true; m_settingDescription = value; }
93 
97  inline void SetSettingDescription(Aws::String&& value) { m_settingDescriptionHasBeenSet = true; m_settingDescription = value; }
98 
102  inline void SetSettingDescription(const char* value) { m_settingDescriptionHasBeenSet = true; m_settingDescription.assign(value); }
103 
107  inline OptionGroupOptionSetting& WithSettingDescription(const Aws::String& value) { SetSettingDescription(value); return *this;}
108 
112  inline OptionGroupOptionSetting& WithSettingDescription(Aws::String&& value) { SetSettingDescription(value); return *this;}
113 
117  inline OptionGroupOptionSetting& WithSettingDescription(const char* value) { SetSettingDescription(value); return *this;}
118 
122  inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
123 
127  inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
128 
132  inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
133 
137  inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
138 
142  inline OptionGroupOptionSetting& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
143 
147  inline OptionGroupOptionSetting& WithDefaultValue(Aws::String&& value) { SetDefaultValue(value); return *this;}
148 
152  inline OptionGroupOptionSetting& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
153 
157  inline const Aws::String& GetApplyType() const{ return m_applyType; }
158 
162  inline void SetApplyType(const Aws::String& value) { m_applyTypeHasBeenSet = true; m_applyType = value; }
163 
167  inline void SetApplyType(Aws::String&& value) { m_applyTypeHasBeenSet = true; m_applyType = value; }
168 
172  inline void SetApplyType(const char* value) { m_applyTypeHasBeenSet = true; m_applyType.assign(value); }
173 
177  inline OptionGroupOptionSetting& WithApplyType(const Aws::String& value) { SetApplyType(value); return *this;}
178 
182  inline OptionGroupOptionSetting& WithApplyType(Aws::String&& value) { SetApplyType(value); return *this;}
183 
187  inline OptionGroupOptionSetting& WithApplyType(const char* value) { SetApplyType(value); return *this;}
188 
192  inline const Aws::String& GetAllowedValues() const{ return m_allowedValues; }
193 
197  inline void SetAllowedValues(const Aws::String& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = value; }
198 
202  inline void SetAllowedValues(Aws::String&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = value; }
203 
207  inline void SetAllowedValues(const char* value) { m_allowedValuesHasBeenSet = true; m_allowedValues.assign(value); }
208 
212  inline OptionGroupOptionSetting& WithAllowedValues(const Aws::String& value) { SetAllowedValues(value); return *this;}
213 
217  inline OptionGroupOptionSetting& WithAllowedValues(Aws::String&& value) { SetAllowedValues(value); return *this;}
218 
222  inline OptionGroupOptionSetting& WithAllowedValues(const char* value) { SetAllowedValues(value); return *this;}
223 
228  inline bool GetIsModifiable() const{ return m_isModifiable; }
229 
234  inline void SetIsModifiable(bool value) { m_isModifiableHasBeenSet = true; m_isModifiable = value; }
235 
240  inline OptionGroupOptionSetting& WithIsModifiable(bool value) { SetIsModifiable(value); return *this;}
241 
242  private:
243  Aws::String m_settingName;
244  bool m_settingNameHasBeenSet;
245  Aws::String m_settingDescription;
246  bool m_settingDescriptionHasBeenSet;
247  Aws::String m_defaultValue;
248  bool m_defaultValueHasBeenSet;
249  Aws::String m_applyType;
250  bool m_applyTypeHasBeenSet;
251  Aws::String m_allowedValues;
252  bool m_allowedValuesHasBeenSet;
253  bool m_isModifiable;
254  bool m_isModifiableHasBeenSet;
255  };
256 
257 } // namespace Model
258 } // namespace RDS
259 } // namespace Aws
OptionGroupOptionSetting & WithSettingName(Aws::String &&value)
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:37
OptionGroupOptionSetting & WithApplyType(const char *value)
void SetSettingDescription(const Aws::String &value)
OptionGroupOptionSetting & WithApplyType(const Aws::String &value)
OptionGroupOptionSetting & WithIsModifiable(bool value)
OptionGroupOptionSetting & WithAllowedValues(const char *value)
OptionGroupOptionSetting & WithAllowedValues(Aws::String &&value)
OptionGroupOptionSetting & WithSettingDescription(const Aws::String &value)
OptionGroupOptionSetting & WithDefaultValue(Aws::String &&value)
OptionGroupOptionSetting & WithSettingName(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
OptionGroupOptionSetting & WithDefaultValue(const char *value)
OptionGroupOptionSetting & WithAllowedValues(const Aws::String &value)
const Aws::String & GetSettingDescription() const
OptionGroupOptionSetting & WithSettingName(const char *value)
OptionGroupOptionSetting & WithSettingDescription(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
OptionGroupOptionSetting & WithSettingDescription(const char *value)
OptionGroupOptionSetting & WithApplyType(Aws::String &&value)
OptionGroupOptionSetting & WithDefaultValue(const Aws::String &value)
JSON (JavaScript Object Notation).