AWS SDK for C++  0.14.3
AWS SDK for C++
StackResource.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  StackResource();
44  StackResource& 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& GetStackName() const{ return m_stackName; }
53 
57  inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
58 
62  inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
63 
67  inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); }
68 
72  inline StackResource& WithStackName(const Aws::String& value) { SetStackName(value); return *this;}
73 
77  inline StackResource& WithStackName(Aws::String&& value) { SetStackName(value); return *this;}
78 
82  inline StackResource& WithStackName(const char* value) { SetStackName(value); return *this;}
83 
87  inline const Aws::String& GetStackId() const{ return m_stackId; }
88 
92  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
93 
97  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
98 
102  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
103 
107  inline StackResource& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
108 
112  inline StackResource& WithStackId(Aws::String&& value) { SetStackId(value); return *this;}
113 
117  inline StackResource& WithStackId(const char* value) { SetStackId(value); return *this;}
118 
122  inline const Aws::String& GetLogicalResourceId() const{ return m_logicalResourceId; }
123 
127  inline void SetLogicalResourceId(const Aws::String& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; }
128 
132  inline void SetLogicalResourceId(Aws::String&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; }
133 
137  inline void SetLogicalResourceId(const char* value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId.assign(value); }
138 
142  inline StackResource& WithLogicalResourceId(const Aws::String& value) { SetLogicalResourceId(value); return *this;}
143 
147  inline StackResource& WithLogicalResourceId(Aws::String&& value) { SetLogicalResourceId(value); return *this;}
148 
152  inline StackResource& WithLogicalResourceId(const char* value) { SetLogicalResourceId(value); return *this;}
153 
158  inline const Aws::String& GetPhysicalResourceId() const{ return m_physicalResourceId; }
159 
164  inline void SetPhysicalResourceId(const Aws::String& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = value; }
165 
170  inline void SetPhysicalResourceId(Aws::String&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = value; }
171 
176  inline void SetPhysicalResourceId(const char* value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId.assign(value); }
177 
182  inline StackResource& WithPhysicalResourceId(const Aws::String& value) { SetPhysicalResourceId(value); return *this;}
183 
188  inline StackResource& WithPhysicalResourceId(Aws::String&& value) { SetPhysicalResourceId(value); return *this;}
189 
194  inline StackResource& WithPhysicalResourceId(const char* value) { SetPhysicalResourceId(value); return *this;}
195 
201  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
202 
208  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
209 
215  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
216 
222  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
223 
229  inline StackResource& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
230 
236  inline StackResource& WithResourceType(Aws::String&& value) { SetResourceType(value); return *this;}
237 
243  inline StackResource& WithResourceType(const char* value) { SetResourceType(value); return *this;}
244 
248  inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
249 
253  inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
254 
258  inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
259 
263  inline StackResource& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
264 
268  inline StackResource& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(value); return *this;}
269 
273  inline const ResourceStatus& GetResourceStatus() const{ return m_resourceStatus; }
274 
278  inline void SetResourceStatus(const ResourceStatus& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = value; }
279 
283  inline void SetResourceStatus(ResourceStatus&& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = value; }
284 
288  inline StackResource& WithResourceStatus(const ResourceStatus& value) { SetResourceStatus(value); return *this;}
289 
293  inline StackResource& WithResourceStatus(ResourceStatus&& value) { SetResourceStatus(value); return *this;}
294 
298  inline const Aws::String& GetResourceStatusReason() const{ return m_resourceStatusReason; }
299 
303  inline void SetResourceStatusReason(const Aws::String& value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason = value; }
304 
308  inline void SetResourceStatusReason(Aws::String&& value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason = value; }
309 
313  inline void SetResourceStatusReason(const char* value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason.assign(value); }
314 
318  inline StackResource& WithResourceStatusReason(const Aws::String& value) { SetResourceStatusReason(value); return *this;}
319 
323  inline StackResource& WithResourceStatusReason(Aws::String&& value) { SetResourceStatusReason(value); return *this;}
324 
328  inline StackResource& WithResourceStatusReason(const char* value) { SetResourceStatusReason(value); return *this;}
329 
333  inline const Aws::String& GetDescription() const{ return m_description; }
334 
338  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
339 
343  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
344 
348  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
349 
353  inline StackResource& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
354 
358  inline StackResource& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
359 
363  inline StackResource& WithDescription(const char* value) { SetDescription(value); return *this;}
364 
365  private:
366  Aws::String m_stackName;
367  bool m_stackNameHasBeenSet;
368  Aws::String m_stackId;
369  bool m_stackIdHasBeenSet;
370  Aws::String m_logicalResourceId;
371  bool m_logicalResourceIdHasBeenSet;
372  Aws::String m_physicalResourceId;
373  bool m_physicalResourceIdHasBeenSet;
374  Aws::String m_resourceType;
375  bool m_resourceTypeHasBeenSet;
376  Aws::Utils::DateTime m_timestamp;
377  bool m_timestampHasBeenSet;
378  ResourceStatus m_resourceStatus;
379  bool m_resourceStatusHasBeenSet;
380  Aws::String m_resourceStatusReason;
381  bool m_resourceStatusReasonHasBeenSet;
382  Aws::String m_description;
383  bool m_descriptionHasBeenSet;
384  };
385 
386 } // namespace Model
387 } // namespace CloudFormation
388 } // namespace Aws
void SetStackId(Aws::String &&value)
Definition: StackResource.h:97
StackResource & WithResourceStatus(ResourceStatus &&value)
StackResource & WithPhysicalResourceId(const Aws::String &value)
const ResourceStatus & GetResourceStatus() const
StackResource & WithTimestamp(Aws::Utils::DateTime &&value)
StackResource & WithLogicalResourceId(const Aws::String &value)
const Aws::String & GetResourceType() const
void SetResourceType(Aws::String &&value)
void SetPhysicalResourceId(Aws::String &&value)
StackResource & WithResourceStatusReason(const char *value)
StackResource & WithLogicalResourceId(Aws::String &&value)
const Aws::String & GetLogicalResourceId() const
void SetLogicalResourceId(const Aws::String &value)
StackResource & WithDescription(const Aws::String &value)
const Aws::String & GetResourceStatusReason() const
StackResource & WithStackId(const Aws::String &value)
StackResource & WithLogicalResourceId(const char *value)
const Aws::String & GetStackId() const
Definition: StackResource.h:87
void SetResourceStatus(ResourceStatus &&value)
StackResource & WithStackName(const char *value)
Definition: StackResource.h:82
StackResource & WithStackId(Aws::String &&value)
void SetResourceStatusReason(const char *value)
void SetPhysicalResourceId(const Aws::String &value)
void SetStackId(const Aws::String &value)
Definition: StackResource.h:92
StackResource & WithResourceStatusReason(Aws::String &&value)
void SetStackName(const Aws::String &value)
Definition: StackResource.h:57
const Aws::String & GetStackName() const
Definition: StackResource.h:52
void SetResourceStatusReason(Aws::String &&value)
StackResource & WithDescription(Aws::String &&value)
void SetTimestamp(Aws::Utils::DateTime &&value)
void SetPhysicalResourceId(const char *value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
StackResource & WithPhysicalResourceId(const char *value)
void SetLogicalResourceId(Aws::String &&value)
void SetLogicalResourceId(const char *value)
StackResource & WithResourceType(const char *value)
StackResource & WithDescription(const char *value)
void SetStackName(Aws::String &&value)
Definition: StackResource.h:62
StackResource & WithResourceStatusReason(const Aws::String &value)
StackResource & WithResourceType(const Aws::String &value)
StackResource & WithPhysicalResourceId(Aws::String &&value)
void SetResourceStatus(const ResourceStatus &value)
StackResource & WithStackName(const Aws::String &value)
Definition: StackResource.h:72
StackResource & WithResourceStatus(const ResourceStatus &value)
void SetResourceStatusReason(const Aws::String &value)
const Aws::Utils::DateTime & GetTimestamp() const
void SetDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetPhysicalResourceId() const
StackResource & WithStackId(const char *value)
void SetResourceType(const Aws::String &value)
#define AWS_CLOUDFORMATION_API
StackResource & WithStackName(Aws::String &&value)
Definition: StackResource.h:77
StackResource & WithTimestamp(const Aws::Utils::DateTime &value)
StackResource & WithResourceType(Aws::String &&value)
void SetTimestamp(const Aws::Utils::DateTime &value)
const Aws::String & GetDescription() const
JSON (JavaScript Object Notation).
void SetDescription(Aws::String &&value)