AWS SDK for C++  0.14.3
AWS SDK for C++
StackEvent.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace CloudFormation
32 {
33 namespace Model
34 {
35 
40  {
41  public:
42  StackEvent();
43  StackEvent(const Aws::Utils::Xml::XmlNode& xmlNode);
44  StackEvent& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
52  inline const Aws::String& GetStackId() const{ return m_stackId; }
53 
57  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
58 
62  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
63 
67  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
68 
72  inline StackEvent& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
73 
77  inline StackEvent& WithStackId(Aws::String&& value) { SetStackId(value); return *this;}
78 
82  inline StackEvent& WithStackId(const char* value) { SetStackId(value); return *this;}
83 
87  inline const Aws::String& GetEventId() const{ return m_eventId; }
88 
92  inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
93 
97  inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
98 
102  inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
103 
107  inline StackEvent& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
108 
112  inline StackEvent& WithEventId(Aws::String&& value) { SetEventId(value); return *this;}
113 
117  inline StackEvent& WithEventId(const char* value) { SetEventId(value); return *this;}
118 
122  inline const Aws::String& GetStackName() const{ return m_stackName; }
123 
127  inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
128 
132  inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
133 
137  inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); }
138 
142  inline StackEvent& WithStackName(const Aws::String& value) { SetStackName(value); return *this;}
143 
147  inline StackEvent& WithStackName(Aws::String&& value) { SetStackName(value); return *this;}
148 
152  inline StackEvent& WithStackName(const char* value) { SetStackName(value); return *this;}
153 
157  inline const Aws::String& GetLogicalResourceId() const{ return m_logicalResourceId; }
158 
162  inline void SetLogicalResourceId(const Aws::String& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; }
163 
167  inline void SetLogicalResourceId(Aws::String&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; }
168 
172  inline void SetLogicalResourceId(const char* value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId.assign(value); }
173 
177  inline StackEvent& WithLogicalResourceId(const Aws::String& value) { SetLogicalResourceId(value); return *this;}
178 
182  inline StackEvent& WithLogicalResourceId(Aws::String&& value) { SetLogicalResourceId(value); return *this;}
183 
187  inline StackEvent& WithLogicalResourceId(const char* value) { SetLogicalResourceId(value); return *this;}
188 
193  inline const Aws::String& GetPhysicalResourceId() const{ return m_physicalResourceId; }
194 
199  inline void SetPhysicalResourceId(const Aws::String& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = value; }
200 
205  inline void SetPhysicalResourceId(Aws::String&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = value; }
206 
211  inline void SetPhysicalResourceId(const char* value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId.assign(value); }
212 
217  inline StackEvent& WithPhysicalResourceId(const Aws::String& value) { SetPhysicalResourceId(value); return *this;}
218 
223  inline StackEvent& WithPhysicalResourceId(Aws::String&& value) { SetPhysicalResourceId(value); return *this;}
224 
229  inline StackEvent& WithPhysicalResourceId(const char* value) { SetPhysicalResourceId(value); return *this;}
230 
236  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
237 
243  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
244 
250  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
251 
257  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
258 
264  inline StackEvent& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
265 
271  inline StackEvent& WithResourceType(Aws::String&& value) { SetResourceType(value); return *this;}
272 
278  inline StackEvent& WithResourceType(const char* value) { SetResourceType(value); return *this;}
279 
283  inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
284 
288  inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
289 
293  inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
294 
298  inline StackEvent& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
299 
303  inline StackEvent& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(value); return *this;}
304 
308  inline const ResourceStatus& GetResourceStatus() const{ return m_resourceStatus; }
309 
313  inline void SetResourceStatus(const ResourceStatus& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = value; }
314 
318  inline void SetResourceStatus(ResourceStatus&& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = value; }
319 
323  inline StackEvent& WithResourceStatus(const ResourceStatus& value) { SetResourceStatus(value); return *this;}
324 
328  inline StackEvent& WithResourceStatus(ResourceStatus&& value) { SetResourceStatus(value); return *this;}
329 
333  inline const Aws::String& GetResourceStatusReason() const{ return m_resourceStatusReason; }
334 
338  inline void SetResourceStatusReason(const Aws::String& value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason = value; }
339 
343  inline void SetResourceStatusReason(Aws::String&& value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason = value; }
344 
348  inline void SetResourceStatusReason(const char* value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason.assign(value); }
349 
353  inline StackEvent& WithResourceStatusReason(const Aws::String& value) { SetResourceStatusReason(value); return *this;}
354 
358  inline StackEvent& WithResourceStatusReason(Aws::String&& value) { SetResourceStatusReason(value); return *this;}
359 
363  inline StackEvent& WithResourceStatusReason(const char* value) { SetResourceStatusReason(value); return *this;}
364 
368  inline const Aws::String& GetResourceProperties() const{ return m_resourceProperties; }
369 
373  inline void SetResourceProperties(const Aws::String& value) { m_resourcePropertiesHasBeenSet = true; m_resourceProperties = value; }
374 
378  inline void SetResourceProperties(Aws::String&& value) { m_resourcePropertiesHasBeenSet = true; m_resourceProperties = value; }
379 
383  inline void SetResourceProperties(const char* value) { m_resourcePropertiesHasBeenSet = true; m_resourceProperties.assign(value); }
384 
388  inline StackEvent& WithResourceProperties(const Aws::String& value) { SetResourceProperties(value); return *this;}
389 
393  inline StackEvent& WithResourceProperties(Aws::String&& value) { SetResourceProperties(value); return *this;}
394 
398  inline StackEvent& WithResourceProperties(const char* value) { SetResourceProperties(value); return *this;}
399 
400  private:
401  Aws::String m_stackId;
402  bool m_stackIdHasBeenSet;
403  Aws::String m_eventId;
404  bool m_eventIdHasBeenSet;
405  Aws::String m_stackName;
406  bool m_stackNameHasBeenSet;
407  Aws::String m_logicalResourceId;
408  bool m_logicalResourceIdHasBeenSet;
409  Aws::String m_physicalResourceId;
410  bool m_physicalResourceIdHasBeenSet;
411  Aws::String m_resourceType;
412  bool m_resourceTypeHasBeenSet;
413  Aws::Utils::DateTime m_timestamp;
414  bool m_timestampHasBeenSet;
415  ResourceStatus m_resourceStatus;
416  bool m_resourceStatusHasBeenSet;
417  Aws::String m_resourceStatusReason;
418  bool m_resourceStatusReasonHasBeenSet;
419  Aws::String m_resourceProperties;
420  bool m_resourcePropertiesHasBeenSet;
421  };
422 
423 } // namespace Model
424 } // namespace CloudFormation
425 } // namespace Aws
StackEvent & WithEventId(const char *value)
Definition: StackEvent.h:117
const Aws::String & GetResourceStatusReason() const
Definition: StackEvent.h:333
StackEvent & WithLogicalResourceId(const char *value)
Definition: StackEvent.h:187
void SetEventId(const Aws::String &value)
Definition: StackEvent.h:92
StackEvent & WithLogicalResourceId(const Aws::String &value)
Definition: StackEvent.h:177
StackEvent & WithResourceProperties(const char *value)
Definition: StackEvent.h:398
void SetLogicalResourceId(const Aws::String &value)
Definition: StackEvent.h:162
void SetEventId(Aws::String &&value)
Definition: StackEvent.h:97
void SetStackId(const Aws::String &value)
Definition: StackEvent.h:57
void SetStackId(const char *value)
Definition: StackEvent.h:67
void SetResourceStatus(ResourceStatus &&value)
Definition: StackEvent.h:318
StackEvent & WithResourceProperties(const Aws::String &value)
Definition: StackEvent.h:388
StackEvent & WithEventId(const Aws::String &value)
Definition: StackEvent.h:107
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition: StackEvent.h:293
StackEvent & WithPhysicalResourceId(const Aws::String &value)
Definition: StackEvent.h:217
StackEvent & WithResourceStatus(ResourceStatus &&value)
Definition: StackEvent.h:328
StackEvent & WithPhysicalResourceId(const char *value)
Definition: StackEvent.h:229
void SetResourceType(Aws::String &&value)
Definition: StackEvent.h:250
void SetLogicalResourceId(const char *value)
Definition: StackEvent.h:172
StackEvent & WithEventId(Aws::String &&value)
Definition: StackEvent.h:112
StackEvent & WithResourceProperties(Aws::String &&value)
Definition: StackEvent.h:393
void SetStackName(const Aws::String &value)
Definition: StackEvent.h:127
StackEvent & WithResourceStatusReason(const Aws::String &value)
Definition: StackEvent.h:353
const Aws::Utils::DateTime & GetTimestamp() const
Definition: StackEvent.h:283
void SetResourceStatusReason(Aws::String &&value)
Definition: StackEvent.h:343
void SetEventId(const char *value)
Definition: StackEvent.h:102
StackEvent & WithTimestamp(const Aws::Utils::DateTime &value)
Definition: StackEvent.h:298
void SetStackName(Aws::String &&value)
Definition: StackEvent.h:132
void SetPhysicalResourceId(const char *value)
Definition: StackEvent.h:211
void SetPhysicalResourceId(const Aws::String &value)
Definition: StackEvent.h:199
void SetResourceStatusReason(const char *value)
Definition: StackEvent.h:348
StackEvent & WithResourceType(const char *value)
Definition: StackEvent.h:278
StackEvent & WithLogicalResourceId(Aws::String &&value)
Definition: StackEvent.h:182
StackEvent & WithStackName(const char *value)
Definition: StackEvent.h:152
void SetResourceProperties(const char *value)
Definition: StackEvent.h:383
const Aws::String & GetStackName() const
Definition: StackEvent.h:122
const Aws::String & GetEventId() const
Definition: StackEvent.h:87
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
StackEvent & WithTimestamp(Aws::Utils::DateTime &&value)
Definition: StackEvent.h:303
StackEvent & WithStackId(const char *value)
Definition: StackEvent.h:82
StackEvent & WithResourceStatusReason(Aws::String &&value)
Definition: StackEvent.h:358
const Aws::String & GetLogicalResourceId() const
Definition: StackEvent.h:157
StackEvent & WithStackName(Aws::String &&value)
Definition: StackEvent.h:147
void SetResourceProperties(const Aws::String &value)
Definition: StackEvent.h:373
const Aws::String & GetStackId() const
Definition: StackEvent.h:52
StackEvent & WithResourceStatusReason(const char *value)
Definition: StackEvent.h:363
void SetStackId(Aws::String &&value)
Definition: StackEvent.h:62
StackEvent & WithStackId(Aws::String &&value)
Definition: StackEvent.h:77
const ResourceStatus & GetResourceStatus() const
Definition: StackEvent.h:308
const Aws::String & GetResourceType() const
Definition: StackEvent.h:236
void SetResourceStatusReason(const Aws::String &value)
Definition: StackEvent.h:338
void SetResourceType(const Aws::String &value)
Definition: StackEvent.h:243
const Aws::String & GetResourceProperties() const
Definition: StackEvent.h:368
void SetLogicalResourceId(Aws::String &&value)
Definition: StackEvent.h:167
StackEvent & WithStackId(const Aws::String &value)
Definition: StackEvent.h:72
void SetPhysicalResourceId(Aws::String &&value)
Definition: StackEvent.h:205
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetPhysicalResourceId() const
Definition: StackEvent.h:193
#define AWS_CLOUDFORMATION_API
void SetResourceStatus(const ResourceStatus &value)
Definition: StackEvent.h:313
StackEvent & WithStackName(const Aws::String &value)
Definition: StackEvent.h:142
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition: StackEvent.h:288
StackEvent & WithResourceType(const Aws::String &value)
Definition: StackEvent.h:264
void SetResourceProperties(Aws::String &&value)
Definition: StackEvent.h:378
StackEvent & WithPhysicalResourceId(Aws::String &&value)
Definition: StackEvent.h:223
JSON (JavaScript Object Notation).
StackEvent & WithResourceType(Aws::String &&value)
Definition: StackEvent.h:271
StackEvent & WithResourceStatus(const ResourceStatus &value)
Definition: StackEvent.h:323
void SetStackName(const char *value)
Definition: StackEvent.h:137
void SetResourceType(const char *value)
Definition: StackEvent.h:257