AWS SDK for C++  0.12.9
AWS SDK for C++
ConfigurationOptionSetting.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace ElasticBeanstalk
30 {
31 namespace Model
32 {
33 
41  {
42  public:
45  ConfigurationOptionSetting& 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& GetResourceName() const{ return m_resourceName; }
54 
58  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
59 
63  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
64 
68  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
69 
73  inline ConfigurationOptionSetting& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
74 
78  inline ConfigurationOptionSetting& WithResourceName(Aws::String&& value) { SetResourceName(value); return *this;}
79 
83  inline ConfigurationOptionSetting& WithResourceName(const char* value) { SetResourceName(value); return *this;}
84 
88  inline const Aws::String& GetNamespace() const{ return m_namespace; }
89 
93  inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
94 
98  inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = value; }
99 
103  inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); }
104 
108  inline ConfigurationOptionSetting& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;}
109 
113  inline ConfigurationOptionSetting& WithNamespace(Aws::String&& value) { SetNamespace(value); return *this;}
114 
118  inline ConfigurationOptionSetting& WithNamespace(const char* value) { SetNamespace(value); return *this;}
119 
123  inline const Aws::String& GetOptionName() const{ return m_optionName; }
124 
128  inline void SetOptionName(const Aws::String& value) { m_optionNameHasBeenSet = true; m_optionName = value; }
129 
133  inline void SetOptionName(Aws::String&& value) { m_optionNameHasBeenSet = true; m_optionName = value; }
134 
138  inline void SetOptionName(const char* value) { m_optionNameHasBeenSet = true; m_optionName.assign(value); }
139 
143  inline ConfigurationOptionSetting& WithOptionName(const Aws::String& value) { SetOptionName(value); return *this;}
144 
148  inline ConfigurationOptionSetting& WithOptionName(Aws::String&& value) { SetOptionName(value); return *this;}
149 
153  inline ConfigurationOptionSetting& WithOptionName(const char* value) { SetOptionName(value); return *this;}
154 
158  inline const Aws::String& GetValue() const{ return m_value; }
159 
163  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
164 
168  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = value; }
169 
173  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
174 
178  inline ConfigurationOptionSetting& WithValue(const Aws::String& value) { SetValue(value); return *this;}
179 
183  inline ConfigurationOptionSetting& WithValue(Aws::String&& value) { SetValue(value); return *this;}
184 
188  inline ConfigurationOptionSetting& WithValue(const char* value) { SetValue(value); return *this;}
189 
190  private:
191  Aws::String m_resourceName;
192  bool m_resourceNameHasBeenSet;
193  Aws::String m_namespace;
194  bool m_namespaceHasBeenSet;
195  Aws::String m_optionName;
196  bool m_optionNameHasBeenSet;
197  Aws::String m_value;
198  bool m_valueHasBeenSet;
199  };
200 
201 } // namespace Model
202 } // namespace ElasticBeanstalk
203 } // namespace Aws
ConfigurationOptionSetting & WithNamespace(const char *value)
#define AWS_ELASTICBEANSTALK_API
ConfigurationOptionSetting & WithResourceName(const Aws::String &value)
ConfigurationOptionSetting & WithOptionName(const Aws::String &value)
ConfigurationOptionSetting & WithValue(Aws::String &&value)
ConfigurationOptionSetting & WithValue(const Aws::String &value)
ConfigurationOptionSetting & WithValue(const char *value)
ConfigurationOptionSetting & WithNamespace(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ConfigurationOptionSetting & WithOptionName(Aws::String &&value)
ConfigurationOptionSetting & WithResourceName(const char *value)
ConfigurationOptionSetting & WithNamespace(Aws::String &&value)
ConfigurationOptionSetting & WithOptionName(const char *value)
ConfigurationOptionSetting & WithResourceName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
JSON (JavaScript Object Notation).