AWS SDK for C++  0.14.3
AWS SDK for C++
Parameter.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 CloudFormation
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  Parameter();
41  Parameter(const Aws::Utils::Xml::XmlNode& xmlNode);
42  Parameter& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
52  inline const Aws::String& GetParameterKey() const{ return m_parameterKey; }
53 
59  inline void SetParameterKey(const Aws::String& value) { m_parameterKeyHasBeenSet = true; m_parameterKey = value; }
60 
66  inline void SetParameterKey(Aws::String&& value) { m_parameterKeyHasBeenSet = true; m_parameterKey = value; }
67 
73  inline void SetParameterKey(const char* value) { m_parameterKeyHasBeenSet = true; m_parameterKey.assign(value); }
74 
80  inline Parameter& WithParameterKey(const Aws::String& value) { SetParameterKey(value); return *this;}
81 
87  inline Parameter& WithParameterKey(Aws::String&& value) { SetParameterKey(value); return *this;}
88 
94  inline Parameter& WithParameterKey(const char* value) { SetParameterKey(value); return *this;}
95 
99  inline const Aws::String& GetParameterValue() const{ return m_parameterValue; }
100 
104  inline void SetParameterValue(const Aws::String& value) { m_parameterValueHasBeenSet = true; m_parameterValue = value; }
105 
109  inline void SetParameterValue(Aws::String&& value) { m_parameterValueHasBeenSet = true; m_parameterValue = value; }
110 
114  inline void SetParameterValue(const char* value) { m_parameterValueHasBeenSet = true; m_parameterValue.assign(value); }
115 
119  inline Parameter& WithParameterValue(const Aws::String& value) { SetParameterValue(value); return *this;}
120 
124  inline Parameter& WithParameterValue(Aws::String&& value) { SetParameterValue(value); return *this;}
125 
129  inline Parameter& WithParameterValue(const char* value) { SetParameterValue(value); return *this;}
130 
136  inline bool GetUsePreviousValue() const{ return m_usePreviousValue; }
137 
143  inline void SetUsePreviousValue(bool value) { m_usePreviousValueHasBeenSet = true; m_usePreviousValue = value; }
144 
150  inline Parameter& WithUsePreviousValue(bool value) { SetUsePreviousValue(value); return *this;}
151 
152  private:
153  Aws::String m_parameterKey;
154  bool m_parameterKeyHasBeenSet;
155  Aws::String m_parameterValue;
156  bool m_parameterValueHasBeenSet;
157  bool m_usePreviousValue;
158  bool m_usePreviousValueHasBeenSet;
159  };
160 
161 } // namespace Model
162 } // namespace CloudFormation
163 } // namespace Aws
Parameter & WithParameterValue(const Aws::String &value)
Definition: Parameter.h:119
Parameter & WithParameterKey(Aws::String &&value)
Definition: Parameter.h:87
const Aws::String & GetParameterValue() const
Definition: Parameter.h:99
void SetParameterValue(Aws::String &&value)
Definition: Parameter.h:109
void SetParameterKey(const Aws::String &value)
Definition: Parameter.h:59
Parameter & WithParameterKey(const Aws::String &value)
Definition: Parameter.h:80
void SetParameterKey(const char *value)
Definition: Parameter.h:73
Parameter & WithParameterValue(Aws::String &&value)
Definition: Parameter.h:124
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
Parameter & WithParameterValue(const char *value)
Definition: Parameter.h:129
const Aws::String & GetParameterKey() const
Definition: Parameter.h:52
void SetParameterValue(const char *value)
Definition: Parameter.h:114
Parameter & WithParameterKey(const char *value)
Definition: Parameter.h:94
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetParameterKey(Aws::String &&value)
Definition: Parameter.h:66
Parameter & WithUsePreviousValue(bool value)
Definition: Parameter.h:150
#define AWS_CLOUDFORMATION_API
void SetParameterValue(const Aws::String &value)
Definition: Parameter.h:104
JSON (JavaScript Object Notation).