AWS SDK for C++  0.14.3
AWS SDK for C++
ParameterDeclaration.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace CloudFormation
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  ParameterDeclaration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::String& GetParameterKey() const{ return m_parameterKey; }
52 
56  inline void SetParameterKey(const Aws::String& value) { m_parameterKeyHasBeenSet = true; m_parameterKey = value; }
57 
61  inline void SetParameterKey(Aws::String&& value) { m_parameterKeyHasBeenSet = true; m_parameterKey = value; }
62 
66  inline void SetParameterKey(const char* value) { m_parameterKeyHasBeenSet = true; m_parameterKey.assign(value); }
67 
71  inline ParameterDeclaration& WithParameterKey(const Aws::String& value) { SetParameterKey(value); return *this;}
72 
76  inline ParameterDeclaration& WithParameterKey(Aws::String&& value) { SetParameterKey(value); return *this;}
77 
81  inline ParameterDeclaration& WithParameterKey(const char* value) { SetParameterKey(value); return *this;}
82 
86  inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
87 
91  inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
92 
96  inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
97 
101  inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
102 
106  inline ParameterDeclaration& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
107 
111  inline ParameterDeclaration& WithDefaultValue(Aws::String&& value) { SetDefaultValue(value); return *this;}
112 
116  inline ParameterDeclaration& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
117 
121  inline const Aws::String& GetParameterType() const{ return m_parameterType; }
122 
126  inline void SetParameterType(const Aws::String& value) { m_parameterTypeHasBeenSet = true; m_parameterType = value; }
127 
131  inline void SetParameterType(Aws::String&& value) { m_parameterTypeHasBeenSet = true; m_parameterType = value; }
132 
136  inline void SetParameterType(const char* value) { m_parameterTypeHasBeenSet = true; m_parameterType.assign(value); }
137 
141  inline ParameterDeclaration& WithParameterType(const Aws::String& value) { SetParameterType(value); return *this;}
142 
146  inline ParameterDeclaration& WithParameterType(Aws::String&& value) { SetParameterType(value); return *this;}
147 
151  inline ParameterDeclaration& WithParameterType(const char* value) { SetParameterType(value); return *this;}
152 
157  inline bool GetNoEcho() const{ return m_noEcho; }
158 
163  inline void SetNoEcho(bool value) { m_noEchoHasBeenSet = true; m_noEcho = value; }
164 
169  inline ParameterDeclaration& WithNoEcho(bool value) { SetNoEcho(value); return *this;}
170 
174  inline const Aws::String& GetDescription() const{ return m_description; }
175 
179  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
180 
184  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
185 
189  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
190 
194  inline ParameterDeclaration& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
195 
199  inline ParameterDeclaration& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
200 
204  inline ParameterDeclaration& WithDescription(const char* value) { SetDescription(value); return *this;}
205 
209  inline const ParameterConstraints& GetParameterConstraints() const{ return m_parameterConstraints; }
210 
214  inline void SetParameterConstraints(const ParameterConstraints& value) { m_parameterConstraintsHasBeenSet = true; m_parameterConstraints = value; }
215 
219  inline void SetParameterConstraints(ParameterConstraints&& value) { m_parameterConstraintsHasBeenSet = true; m_parameterConstraints = value; }
220 
224  inline ParameterDeclaration& WithParameterConstraints(const ParameterConstraints& value) { SetParameterConstraints(value); return *this;}
225 
229  inline ParameterDeclaration& WithParameterConstraints(ParameterConstraints&& value) { SetParameterConstraints(value); return *this;}
230 
231  private:
232  Aws::String m_parameterKey;
233  bool m_parameterKeyHasBeenSet;
234  Aws::String m_defaultValue;
235  bool m_defaultValueHasBeenSet;
236  Aws::String m_parameterType;
237  bool m_parameterTypeHasBeenSet;
238  bool m_noEcho;
239  bool m_noEchoHasBeenSet;
240  Aws::String m_description;
241  bool m_descriptionHasBeenSet;
242  ParameterConstraints m_parameterConstraints;
243  bool m_parameterConstraintsHasBeenSet;
244  };
245 
246 } // namespace Model
247 } // namespace CloudFormation
248 } // namespace Aws
ParameterDeclaration & WithDefaultValue(const char *value)
ParameterDeclaration & WithDefaultValue(Aws::String &&value)
ParameterDeclaration & WithParameterType(const Aws::String &value)
ParameterDeclaration & WithParameterConstraints(const ParameterConstraints &value)
const ParameterConstraints & GetParameterConstraints() const
ParameterDeclaration & WithDescription(const Aws::String &value)
void SetParameterConstraints(const ParameterConstraints &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ParameterDeclaration & WithDescription(Aws::String &&value)
ParameterDeclaration & WithParameterConstraints(ParameterConstraints &&value)
ParameterDeclaration & WithParameterKey(const Aws::String &value)
ParameterDeclaration & WithParameterKey(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ParameterDeclaration & WithParameterType(const char *value)
ParameterDeclaration & WithDescription(const char *value)
#define AWS_CLOUDFORMATION_API
ParameterDeclaration & WithDefaultValue(const Aws::String &value)
ParameterDeclaration & WithParameterKey(const char *value)
ParameterDeclaration & WithParameterType(Aws::String &&value)
void SetParameterConstraints(ParameterConstraints &&value)
JSON (JavaScript Object Notation).