AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
TemplateParameter.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace CloudFormation {
20namespace Model {
21
28 public:
29 AWS_CLOUDFORMATION_API TemplateParameter() = default;
30 AWS_CLOUDFORMATION_API TemplateParameter(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_CLOUDFORMATION_API TemplateParameter& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline const Aws::String& GetParameterKey() const { return m_parameterKey; }
41 inline bool ParameterKeyHasBeenSet() const { return m_parameterKeyHasBeenSet; }
42 template <typename ParameterKeyT = Aws::String>
43 void SetParameterKey(ParameterKeyT&& value) {
44 m_parameterKeyHasBeenSet = true;
45 m_parameterKey = std::forward<ParameterKeyT>(value);
46 }
47 template <typename ParameterKeyT = Aws::String>
48 TemplateParameter& WithParameterKey(ParameterKeyT&& value) {
49 SetParameterKey(std::forward<ParameterKeyT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
59 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
60 template <typename DefaultValueT = Aws::String>
61 void SetDefaultValue(DefaultValueT&& value) {
62 m_defaultValueHasBeenSet = true;
63 m_defaultValue = std::forward<DefaultValueT>(value);
64 }
65 template <typename DefaultValueT = Aws::String>
66 TemplateParameter& WithDefaultValue(DefaultValueT&& value) {
67 SetDefaultValue(std::forward<DefaultValueT>(value));
68 return *this;
69 }
71
73
77 inline bool GetNoEcho() const { return m_noEcho; }
78 inline bool NoEchoHasBeenSet() const { return m_noEchoHasBeenSet; }
79 inline void SetNoEcho(bool value) {
80 m_noEchoHasBeenSet = true;
81 m_noEcho = value;
82 }
83 inline TemplateParameter& WithNoEcho(bool value) {
84 SetNoEcho(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDescription() const { return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 template <typename DescriptionT = Aws::String>
96 void SetDescription(DescriptionT&& value) {
97 m_descriptionHasBeenSet = true;
98 m_description = std::forward<DescriptionT>(value);
99 }
100 template <typename DescriptionT = Aws::String>
101 TemplateParameter& WithDescription(DescriptionT&& value) {
102 SetDescription(std::forward<DescriptionT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_parameterKey;
108
109 Aws::String m_defaultValue;
110
111 bool m_noEcho{false};
112
113 Aws::String m_description;
114 bool m_parameterKeyHasBeenSet = false;
115 bool m_defaultValueHasBeenSet = false;
116 bool m_noEchoHasBeenSet = false;
117 bool m_descriptionHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace CloudFormation
122} // namespace Aws
TemplateParameter & WithDefaultValue(DefaultValueT &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDFORMATION_API TemplateParameter & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API TemplateParameter(const Aws::Utils::Xml::XmlNode &xmlNode)
TemplateParameter & WithParameterKey(ParameterKeyT &&value)
AWS_CLOUDFORMATION_API TemplateParameter()=default
TemplateParameter & WithNoEcho(bool value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TemplateParameter & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream