AWS SDK for C++  0.14.3
AWS SDK for C++
TemplateParameter.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:
42  TemplateParameter& 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 
50  inline const Aws::String& GetParameterKey() const{ return m_parameterKey; }
51 
55  inline void SetParameterKey(const Aws::String& value) { m_parameterKeyHasBeenSet = true; m_parameterKey = value; }
56 
60  inline void SetParameterKey(Aws::String&& value) { m_parameterKeyHasBeenSet = true; m_parameterKey = value; }
61 
65  inline void SetParameterKey(const char* value) { m_parameterKeyHasBeenSet = true; m_parameterKey.assign(value); }
66 
70  inline TemplateParameter& WithParameterKey(const Aws::String& value) { SetParameterKey(value); return *this;}
71 
75  inline TemplateParameter& WithParameterKey(Aws::String&& value) { SetParameterKey(value); return *this;}
76 
80  inline TemplateParameter& WithParameterKey(const char* value) { SetParameterKey(value); return *this;}
81 
85  inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
86 
90  inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
91 
95  inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
96 
100  inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
101 
105  inline TemplateParameter& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
106 
110  inline TemplateParameter& WithDefaultValue(Aws::String&& value) { SetDefaultValue(value); return *this;}
111 
115  inline TemplateParameter& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
116 
121  inline bool GetNoEcho() const{ return m_noEcho; }
122 
127  inline void SetNoEcho(bool value) { m_noEchoHasBeenSet = true; m_noEcho = value; }
128 
133  inline TemplateParameter& WithNoEcho(bool value) { SetNoEcho(value); return *this;}
134 
138  inline const Aws::String& GetDescription() const{ return m_description; }
139 
143  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
144 
148  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
149 
153  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
154 
158  inline TemplateParameter& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
159 
163  inline TemplateParameter& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
164 
168  inline TemplateParameter& WithDescription(const char* value) { SetDescription(value); return *this;}
169 
170  private:
171  Aws::String m_parameterKey;
172  bool m_parameterKeyHasBeenSet;
173  Aws::String m_defaultValue;
174  bool m_defaultValueHasBeenSet;
175  bool m_noEcho;
176  bool m_noEchoHasBeenSet;
177  Aws::String m_description;
178  bool m_descriptionHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace CloudFormation
183 } // namespace Aws
TemplateParameter & WithDefaultValue(const char *value)
void SetDefaultValue(const Aws::String &value)
TemplateParameter & WithDescription(const char *value)
TemplateParameter & WithDescription(const Aws::String &value)
TemplateParameter & WithDescription(Aws::String &&value)
TemplateParameter & WithParameterKey(const char *value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
TemplateParameter & WithDefaultValue(const Aws::String &value)
TemplateParameter & WithParameterKey(const Aws::String &value)
const Aws::String & GetDefaultValue() const
TemplateParameter & WithDefaultValue(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TemplateParameter & WithParameterKey(Aws::String &&value)
#define AWS_CLOUDFORMATION_API
const Aws::String & GetParameterKey() const
TemplateParameter & WithNoEcho(bool value)
void SetDescription(const Aws::String &value)
JSON (JavaScript Object Notation).
void SetParameterKey(const Aws::String &value)