AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Parameter.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudFormation
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_CLOUDFORMATION_API Parameter();
35 AWS_CLOUDFORMATION_API Parameter(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_CLOUDFORMATION_API Parameter& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
48 inline const Aws::String& GetParameterKey() const{ return m_parameterKey; }
49 inline bool ParameterKeyHasBeenSet() const { return m_parameterKeyHasBeenSet; }
50 inline void SetParameterKey(const Aws::String& value) { m_parameterKeyHasBeenSet = true; m_parameterKey = value; }
51 inline void SetParameterKey(Aws::String&& value) { m_parameterKeyHasBeenSet = true; m_parameterKey = std::move(value); }
52 inline void SetParameterKey(const char* value) { m_parameterKeyHasBeenSet = true; m_parameterKey.assign(value); }
53 inline Parameter& WithParameterKey(const Aws::String& value) { SetParameterKey(value); return *this;}
54 inline Parameter& WithParameterKey(Aws::String&& value) { SetParameterKey(std::move(value)); return *this;}
55 inline Parameter& WithParameterKey(const char* value) { SetParameterKey(value); return *this;}
57
59
62 inline const Aws::String& GetParameterValue() const{ return m_parameterValue; }
63 inline bool ParameterValueHasBeenSet() const { return m_parameterValueHasBeenSet; }
64 inline void SetParameterValue(const Aws::String& value) { m_parameterValueHasBeenSet = true; m_parameterValue = value; }
65 inline void SetParameterValue(Aws::String&& value) { m_parameterValueHasBeenSet = true; m_parameterValue = std::move(value); }
66 inline void SetParameterValue(const char* value) { m_parameterValueHasBeenSet = true; m_parameterValue.assign(value); }
67 inline Parameter& WithParameterValue(const Aws::String& value) { SetParameterValue(value); return *this;}
68 inline Parameter& WithParameterValue(Aws::String&& value) { SetParameterValue(std::move(value)); return *this;}
69 inline Parameter& WithParameterValue(const char* value) { SetParameterValue(value); return *this;}
71
73
78 inline bool GetUsePreviousValue() const{ return m_usePreviousValue; }
79 inline bool UsePreviousValueHasBeenSet() const { return m_usePreviousValueHasBeenSet; }
80 inline void SetUsePreviousValue(bool value) { m_usePreviousValueHasBeenSet = true; m_usePreviousValue = value; }
81 inline Parameter& WithUsePreviousValue(bool value) { SetUsePreviousValue(value); return *this;}
83
85
93 inline const Aws::String& GetResolvedValue() const{ return m_resolvedValue; }
94 inline bool ResolvedValueHasBeenSet() const { return m_resolvedValueHasBeenSet; }
95 inline void SetResolvedValue(const Aws::String& value) { m_resolvedValueHasBeenSet = true; m_resolvedValue = value; }
96 inline void SetResolvedValue(Aws::String&& value) { m_resolvedValueHasBeenSet = true; m_resolvedValue = std::move(value); }
97 inline void SetResolvedValue(const char* value) { m_resolvedValueHasBeenSet = true; m_resolvedValue.assign(value); }
98 inline Parameter& WithResolvedValue(const Aws::String& value) { SetResolvedValue(value); return *this;}
99 inline Parameter& WithResolvedValue(Aws::String&& value) { SetResolvedValue(std::move(value)); return *this;}
100 inline Parameter& WithResolvedValue(const char* value) { SetResolvedValue(value); return *this;}
102 private:
103
104 Aws::String m_parameterKey;
105 bool m_parameterKeyHasBeenSet = false;
106
107 Aws::String m_parameterValue;
108 bool m_parameterValueHasBeenSet = false;
109
110 bool m_usePreviousValue;
111 bool m_usePreviousValueHasBeenSet = false;
112
113 Aws::String m_resolvedValue;
114 bool m_resolvedValueHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace CloudFormation
119} // namespace Aws
Parameter & WithParameterKey(const char *value)
Definition Parameter.h:55
Parameter & WithParameterValue(Aws::String &&value)
Definition Parameter.h:68
Parameter & WithUsePreviousValue(bool value)
Definition Parameter.h:81
void SetParameterKey(const Aws::String &value)
Definition Parameter.h:50
void SetParameterKey(const char *value)
Definition Parameter.h:52
const Aws::String & GetParameterKey() const
Definition Parameter.h:48
const Aws::String & GetParameterValue() const
Definition Parameter.h:62
Parameter & WithResolvedValue(const char *value)
Definition Parameter.h:100
void SetParameterKey(Aws::String &&value)
Definition Parameter.h:51
void SetResolvedValue(Aws::String &&value)
Definition Parameter.h:96
void SetParameterValue(const Aws::String &value)
Definition Parameter.h:64
AWS_CLOUDFORMATION_API Parameter & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetParameterValue(Aws::String &&value)
Definition Parameter.h:65
Parameter & WithParameterKey(Aws::String &&value)
Definition Parameter.h:54
void SetResolvedValue(const char *value)
Definition Parameter.h:97
Parameter & WithResolvedValue(Aws::String &&value)
Definition Parameter.h:99
Parameter & WithParameterValue(const Aws::String &value)
Definition Parameter.h:67
AWS_CLOUDFORMATION_API Parameter()
Parameter & WithParameterValue(const char *value)
Definition Parameter.h:69
Parameter & WithResolvedValue(const Aws::String &value)
Definition Parameter.h:98
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetParameterValue(const char *value)
Definition Parameter.h:66
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetResolvedValue() const
Definition Parameter.h:93
AWS_CLOUDFORMATION_API Parameter(const Aws::Utils::Xml::XmlNode &xmlNode)
Parameter & WithParameterKey(const Aws::String &value)
Definition Parameter.h:53
void SetResolvedValue(const Aws::String &value)
Definition Parameter.h:95
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream