AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ParameterDeclaration.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cloudformation/model/ParameterConstraints.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFormation
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CLOUDFORMATION_API ParameterDeclaration() = default;
36 AWS_CLOUDFORMATION_API ParameterDeclaration(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDFORMATION_API ParameterDeclaration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetParameterKey() const { return m_parameterKey; }
48 inline bool ParameterKeyHasBeenSet() const { return m_parameterKeyHasBeenSet; }
49 template<typename ParameterKeyT = Aws::String>
50 void SetParameterKey(ParameterKeyT&& value) { m_parameterKeyHasBeenSet = true; m_parameterKey = std::forward<ParameterKeyT>(value); }
51 template<typename ParameterKeyT = Aws::String>
52 ParameterDeclaration& WithParameterKey(ParameterKeyT&& value) { SetParameterKey(std::forward<ParameterKeyT>(value)); return *this;}
54
56
59 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
60 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
61 template<typename DefaultValueT = Aws::String>
62 void SetDefaultValue(DefaultValueT&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::forward<DefaultValueT>(value); }
63 template<typename DefaultValueT = Aws::String>
64 ParameterDeclaration& WithDefaultValue(DefaultValueT&& value) { SetDefaultValue(std::forward<DefaultValueT>(value)); return *this;}
66
68
71 inline const Aws::String& GetParameterType() const { return m_parameterType; }
72 inline bool ParameterTypeHasBeenSet() const { return m_parameterTypeHasBeenSet; }
73 template<typename ParameterTypeT = Aws::String>
74 void SetParameterType(ParameterTypeT&& value) { m_parameterTypeHasBeenSet = true; m_parameterType = std::forward<ParameterTypeT>(value); }
75 template<typename ParameterTypeT = Aws::String>
76 ParameterDeclaration& WithParameterType(ParameterTypeT&& value) { SetParameterType(std::forward<ParameterTypeT>(value)); return *this;}
78
80
84 inline bool GetNoEcho() const { return m_noEcho; }
85 inline bool NoEchoHasBeenSet() const { return m_noEchoHasBeenSet; }
86 inline void SetNoEcho(bool value) { m_noEchoHasBeenSet = true; m_noEcho = value; }
87 inline ParameterDeclaration& WithNoEcho(bool value) { SetNoEcho(value); return *this;}
89
91
94 inline const Aws::String& GetDescription() const { return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 template<typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
98 template<typename DescriptionT = Aws::String>
99 ParameterDeclaration& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
101
103
106 inline const ParameterConstraints& GetParameterConstraints() const { return m_parameterConstraints; }
107 inline bool ParameterConstraintsHasBeenSet() const { return m_parameterConstraintsHasBeenSet; }
108 template<typename ParameterConstraintsT = ParameterConstraints>
109 void SetParameterConstraints(ParameterConstraintsT&& value) { m_parameterConstraintsHasBeenSet = true; m_parameterConstraints = std::forward<ParameterConstraintsT>(value); }
110 template<typename ParameterConstraintsT = ParameterConstraints>
111 ParameterDeclaration& WithParameterConstraints(ParameterConstraintsT&& value) { SetParameterConstraints(std::forward<ParameterConstraintsT>(value)); return *this;}
113 private:
114
115 Aws::String m_parameterKey;
116 bool m_parameterKeyHasBeenSet = false;
117
118 Aws::String m_defaultValue;
119 bool m_defaultValueHasBeenSet = false;
120
121 Aws::String m_parameterType;
122 bool m_parameterTypeHasBeenSet = false;
123
124 bool m_noEcho{false};
125 bool m_noEchoHasBeenSet = false;
126
127 Aws::String m_description;
128 bool m_descriptionHasBeenSet = false;
129
130 ParameterConstraints m_parameterConstraints;
131 bool m_parameterConstraintsHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace CloudFormation
136} // namespace Aws
ParameterDeclaration & WithParameterConstraints(ParameterConstraintsT &&value)
ParameterDeclaration & WithParameterKey(ParameterKeyT &&value)
void SetParameterConstraints(ParameterConstraintsT &&value)
AWS_CLOUDFORMATION_API ParameterDeclaration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API ParameterDeclaration()=default
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ParameterDeclaration & WithParameterType(ParameterTypeT &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ParameterDeclaration & WithDefaultValue(DefaultValueT &&value)
const ParameterConstraints & GetParameterConstraints() const
ParameterDeclaration & WithDescription(DescriptionT &&value)
AWS_CLOUDFORMATION_API ParameterDeclaration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream