AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
ParameterDeclaration.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/ParameterConstraints.h>
9#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFormation {
21namespace Model {
22
30 public:
31 AWS_CLOUDFORMATION_API ParameterDeclaration() = default;
32 AWS_CLOUDFORMATION_API ParameterDeclaration(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_CLOUDFORMATION_API ParameterDeclaration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetParameterKey() const { return m_parameterKey; }
43 inline bool ParameterKeyHasBeenSet() const { return m_parameterKeyHasBeenSet; }
44 template <typename ParameterKeyT = Aws::String>
45 void SetParameterKey(ParameterKeyT&& value) {
46 m_parameterKeyHasBeenSet = true;
47 m_parameterKey = std::forward<ParameterKeyT>(value);
48 }
49 template <typename ParameterKeyT = Aws::String>
50 ParameterDeclaration& WithParameterKey(ParameterKeyT&& value) {
51 SetParameterKey(std::forward<ParameterKeyT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
61 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
62 template <typename DefaultValueT = Aws::String>
63 void SetDefaultValue(DefaultValueT&& value) {
64 m_defaultValueHasBeenSet = true;
65 m_defaultValue = std::forward<DefaultValueT>(value);
66 }
67 template <typename DefaultValueT = Aws::String>
68 ParameterDeclaration& WithDefaultValue(DefaultValueT&& value) {
69 SetDefaultValue(std::forward<DefaultValueT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetParameterType() const { return m_parameterType; }
79 inline bool ParameterTypeHasBeenSet() const { return m_parameterTypeHasBeenSet; }
80 template <typename ParameterTypeT = Aws::String>
81 void SetParameterType(ParameterTypeT&& value) {
82 m_parameterTypeHasBeenSet = true;
83 m_parameterType = std::forward<ParameterTypeT>(value);
84 }
85 template <typename ParameterTypeT = Aws::String>
86 ParameterDeclaration& WithParameterType(ParameterTypeT&& value) {
87 SetParameterType(std::forward<ParameterTypeT>(value));
88 return *this;
89 }
91
93
97 inline bool GetNoEcho() const { return m_noEcho; }
98 inline bool NoEchoHasBeenSet() const { return m_noEchoHasBeenSet; }
99 inline void SetNoEcho(bool value) {
100 m_noEchoHasBeenSet = true;
101 m_noEcho = value;
102 }
103 inline ParameterDeclaration& WithNoEcho(bool value) {
104 SetNoEcho(value);
105 return *this;
106 }
108
110
113 inline const Aws::String& GetDescription() const { return m_description; }
114 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
115 template <typename DescriptionT = Aws::String>
116 void SetDescription(DescriptionT&& value) {
117 m_descriptionHasBeenSet = true;
118 m_description = std::forward<DescriptionT>(value);
119 }
120 template <typename DescriptionT = Aws::String>
121 ParameterDeclaration& WithDescription(DescriptionT&& value) {
122 SetDescription(std::forward<DescriptionT>(value));
123 return *this;
124 }
126
128
131 inline const ParameterConstraints& GetParameterConstraints() const { return m_parameterConstraints; }
132 inline bool ParameterConstraintsHasBeenSet() const { return m_parameterConstraintsHasBeenSet; }
133 template <typename ParameterConstraintsT = ParameterConstraints>
134 void SetParameterConstraints(ParameterConstraintsT&& value) {
135 m_parameterConstraintsHasBeenSet = true;
136 m_parameterConstraints = std::forward<ParameterConstraintsT>(value);
137 }
138 template <typename ParameterConstraintsT = ParameterConstraints>
139 ParameterDeclaration& WithParameterConstraints(ParameterConstraintsT&& value) {
140 SetParameterConstraints(std::forward<ParameterConstraintsT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_parameterKey;
146
147 Aws::String m_defaultValue;
148
149 Aws::String m_parameterType;
150
151 bool m_noEcho{false};
152
153 Aws::String m_description;
154
155 ParameterConstraints m_parameterConstraints;
156 bool m_parameterKeyHasBeenSet = false;
157 bool m_defaultValueHasBeenSet = false;
158 bool m_parameterTypeHasBeenSet = false;
159 bool m_noEchoHasBeenSet = false;
160 bool m_descriptionHasBeenSet = false;
161 bool m_parameterConstraintsHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace CloudFormation
166} // 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