AWS SDK for C++  1.8.95
AWS SDK for C++
Parameter.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace CloudFormation
22 {
23 namespace Model
24 {
25 
32  {
33  public:
34  Parameter();
35  Parameter(const Aws::Utils::Xml::XmlNode& xmlNode);
36  Parameter& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
47  inline const Aws::String& GetParameterKey() const{ return m_parameterKey; }
48 
54  inline bool ParameterKeyHasBeenSet() const { return m_parameterKeyHasBeenSet; }
55 
61  inline void SetParameterKey(const Aws::String& value) { m_parameterKeyHasBeenSet = true; m_parameterKey = value; }
62 
68  inline void SetParameterKey(Aws::String&& value) { m_parameterKeyHasBeenSet = true; m_parameterKey = std::move(value); }
69 
75  inline void SetParameterKey(const char* value) { m_parameterKeyHasBeenSet = true; m_parameterKey.assign(value); }
76 
82  inline Parameter& WithParameterKey(const Aws::String& value) { SetParameterKey(value); return *this;}
83 
89  inline Parameter& WithParameterKey(Aws::String&& value) { SetParameterKey(std::move(value)); return *this;}
90 
96  inline Parameter& WithParameterKey(const char* value) { SetParameterKey(value); return *this;}
97 
98 
102  inline const Aws::String& GetParameterValue() const{ return m_parameterValue; }
103 
107  inline bool ParameterValueHasBeenSet() const { return m_parameterValueHasBeenSet; }
108 
112  inline void SetParameterValue(const Aws::String& value) { m_parameterValueHasBeenSet = true; m_parameterValue = value; }
113 
117  inline void SetParameterValue(Aws::String&& value) { m_parameterValueHasBeenSet = true; m_parameterValue = std::move(value); }
118 
122  inline void SetParameterValue(const char* value) { m_parameterValueHasBeenSet = true; m_parameterValue.assign(value); }
123 
127  inline Parameter& WithParameterValue(const Aws::String& value) { SetParameterValue(value); return *this;}
128 
132  inline Parameter& WithParameterValue(Aws::String&& value) { SetParameterValue(std::move(value)); return *this;}
133 
137  inline Parameter& WithParameterValue(const char* value) { SetParameterValue(value); return *this;}
138 
139 
145  inline bool GetUsePreviousValue() const{ return m_usePreviousValue; }
146 
152  inline bool UsePreviousValueHasBeenSet() const { return m_usePreviousValueHasBeenSet; }
153 
159  inline void SetUsePreviousValue(bool value) { m_usePreviousValueHasBeenSet = true; m_usePreviousValue = value; }
160 
166  inline Parameter& WithUsePreviousValue(bool value) { SetUsePreviousValue(value); return *this;}
167 
168 
175  inline const Aws::String& GetResolvedValue() const{ return m_resolvedValue; }
176 
183  inline bool ResolvedValueHasBeenSet() const { return m_resolvedValueHasBeenSet; }
184 
191  inline void SetResolvedValue(const Aws::String& value) { m_resolvedValueHasBeenSet = true; m_resolvedValue = value; }
192 
199  inline void SetResolvedValue(Aws::String&& value) { m_resolvedValueHasBeenSet = true; m_resolvedValue = std::move(value); }
200 
207  inline void SetResolvedValue(const char* value) { m_resolvedValueHasBeenSet = true; m_resolvedValue.assign(value); }
208 
215  inline Parameter& WithResolvedValue(const Aws::String& value) { SetResolvedValue(value); return *this;}
216 
223  inline Parameter& WithResolvedValue(Aws::String&& value) { SetResolvedValue(std::move(value)); return *this;}
224 
231  inline Parameter& WithResolvedValue(const char* value) { SetResolvedValue(value); return *this;}
232 
233  private:
234 
235  Aws::String m_parameterKey;
236  bool m_parameterKeyHasBeenSet;
237 
238  Aws::String m_parameterValue;
239  bool m_parameterValueHasBeenSet;
240 
241  bool m_usePreviousValue;
242  bool m_usePreviousValueHasBeenSet;
243 
244  Aws::String m_resolvedValue;
245  bool m_resolvedValueHasBeenSet;
246  };
247 
248 } // namespace Model
249 } // namespace CloudFormation
250 } // namespace Aws
Parameter & WithParameterValue(const Aws::String &value)
Definition: Parameter.h:127
const Aws::String & GetResolvedValue() const
Definition: Parameter.h:175
Parameter & WithParameterKey(Aws::String &&value)
Definition: Parameter.h:89
void SetResolvedValue(const Aws::String &value)
Definition: Parameter.h:191
void SetParameterValue(Aws::String &&value)
Definition: Parameter.h:117
void SetParameterKey(const Aws::String &value)
Definition: Parameter.h:61
int index
Definition: cJSON.h:171
Parameter & WithParameterKey(const Aws::String &value)
Definition: Parameter.h:82
const Aws::String & GetParameterKey() const
Definition: Parameter.h:47
void SetParameterKey(const char *value)
Definition: Parameter.h:75
Parameter & WithParameterValue(Aws::String &&value)
Definition: Parameter.h:132
void SetResolvedValue(const char *value)
Definition: Parameter.h:207
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Parameter & WithResolvedValue(const Aws::String &value)
Definition: Parameter.h:215
Parameter & WithParameterValue(const char *value)
Definition: Parameter.h:137
void SetResolvedValue(Aws::String &&value)
Definition: Parameter.h:199
void SetParameterValue(const char *value)
Definition: Parameter.h:122
Parameter & WithParameterKey(const char *value)
Definition: Parameter.h:96
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetParameterKey(Aws::String &&value)
Definition: Parameter.h:68
Parameter & WithUsePreviousValue(bool value)
Definition: Parameter.h:166
Parameter & WithResolvedValue(const char *value)
Definition: Parameter.h:231
#define AWS_CLOUDFORMATION_API
const Aws::String & GetParameterValue() const
Definition: Parameter.h:102
void SetParameterValue(const Aws::String &value)
Definition: Parameter.h:112
Parameter & WithResolvedValue(Aws::String &&value)
Definition: Parameter.h:223