AWS SDK for C++  0.12.9
AWS SDK for C++
ResourceChange.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
24 
25 namespace Aws
26 {
27 namespace Utils
28 {
29 namespace Xml
30 {
31  class XmlNode;
32 } // namespace Xml
33 } // namespace Utils
34 namespace CloudFormation
35 {
36 namespace Model
37 {
38 
45  {
46  public:
49  ResourceChange& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
50 
51  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
52  void OutputToStream(Aws::OStream& oStream, const char* location) const;
53 
59  inline const ChangeAction& GetAction() const{ return m_action; }
60 
66  inline void SetAction(const ChangeAction& value) { m_actionHasBeenSet = true; m_action = value; }
67 
73  inline void SetAction(ChangeAction&& value) { m_actionHasBeenSet = true; m_action = value; }
74 
80  inline ResourceChange& WithAction(const ChangeAction& value) { SetAction(value); return *this;}
81 
87  inline ResourceChange& WithAction(ChangeAction&& value) { SetAction(value); return *this;}
88 
92  inline const Aws::String& GetLogicalResourceId() const{ return m_logicalResourceId; }
93 
97  inline void SetLogicalResourceId(const Aws::String& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; }
98 
102  inline void SetLogicalResourceId(Aws::String&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; }
103 
107  inline void SetLogicalResourceId(const char* value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId.assign(value); }
108 
112  inline ResourceChange& WithLogicalResourceId(const Aws::String& value) { SetLogicalResourceId(value); return *this;}
113 
117  inline ResourceChange& WithLogicalResourceId(Aws::String&& value) { SetLogicalResourceId(value); return *this;}
118 
122  inline ResourceChange& WithLogicalResourceId(const char* value) { SetLogicalResourceId(value); return *this;}
123 
128  inline const Aws::String& GetPhysicalResourceId() const{ return m_physicalResourceId; }
129 
134  inline void SetPhysicalResourceId(const Aws::String& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = value; }
135 
140  inline void SetPhysicalResourceId(Aws::String&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = value; }
141 
146  inline void SetPhysicalResourceId(const char* value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId.assign(value); }
147 
152  inline ResourceChange& WithPhysicalResourceId(const Aws::String& value) { SetPhysicalResourceId(value); return *this;}
153 
158  inline ResourceChange& WithPhysicalResourceId(Aws::String&& value) { SetPhysicalResourceId(value); return *this;}
159 
164  inline ResourceChange& WithPhysicalResourceId(const char* value) { SetPhysicalResourceId(value); return *this;}
165 
170  inline const Aws::String& GetResourceType() const{ return m_resourceType; }
171 
176  inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
177 
182  inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
183 
188  inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
189 
194  inline ResourceChange& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
195 
200  inline ResourceChange& WithResourceType(Aws::String&& value) { SetResourceType(value); return *this;}
201 
206  inline ResourceChange& WithResourceType(const char* value) { SetResourceType(value); return *this;}
207 
224  inline const Replacement& GetReplacement() const{ return m_replacement; }
225 
242  inline void SetReplacement(const Replacement& value) { m_replacementHasBeenSet = true; m_replacement = value; }
243 
260  inline void SetReplacement(Replacement&& value) { m_replacementHasBeenSet = true; m_replacement = value; }
261 
278  inline ResourceChange& WithReplacement(const Replacement& value) { SetReplacement(value); return *this;}
279 
296  inline ResourceChange& WithReplacement(Replacement&& value) { SetReplacement(value); return *this;}
297 
303  inline const Aws::Vector<ResourceAttribute>& GetScope() const{ return m_scope; }
304 
310  inline void SetScope(const Aws::Vector<ResourceAttribute>& value) { m_scopeHasBeenSet = true; m_scope = value; }
311 
317  inline void SetScope(Aws::Vector<ResourceAttribute>&& value) { m_scopeHasBeenSet = true; m_scope = value; }
318 
324  inline ResourceChange& WithScope(const Aws::Vector<ResourceAttribute>& value) { SetScope(value); return *this;}
325 
331  inline ResourceChange& WithScope(Aws::Vector<ResourceAttribute>&& value) { SetScope(value); return *this;}
332 
338  inline ResourceChange& AddScope(const ResourceAttribute& value) { m_scopeHasBeenSet = true; m_scope.push_back(value); return *this; }
339 
345  inline ResourceChange& AddScope(ResourceAttribute&& value) { m_scopeHasBeenSet = true; m_scope.push_back(value); return *this; }
346 
352  inline const Aws::Vector<ResourceChangeDetail>& GetDetails() const{ return m_details; }
353 
359  inline void SetDetails(const Aws::Vector<ResourceChangeDetail>& value) { m_detailsHasBeenSet = true; m_details = value; }
360 
366  inline void SetDetails(Aws::Vector<ResourceChangeDetail>&& value) { m_detailsHasBeenSet = true; m_details = value; }
367 
373  inline ResourceChange& WithDetails(const Aws::Vector<ResourceChangeDetail>& value) { SetDetails(value); return *this;}
374 
380  inline ResourceChange& WithDetails(Aws::Vector<ResourceChangeDetail>&& value) { SetDetails(value); return *this;}
381 
387  inline ResourceChange& AddDetails(const ResourceChangeDetail& value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; }
388 
394  inline ResourceChange& AddDetails(ResourceChangeDetail&& value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; }
395 
396  private:
397  ChangeAction m_action;
398  bool m_actionHasBeenSet;
399  Aws::String m_logicalResourceId;
400  bool m_logicalResourceIdHasBeenSet;
401  Aws::String m_physicalResourceId;
402  bool m_physicalResourceIdHasBeenSet;
403  Aws::String m_resourceType;
404  bool m_resourceTypeHasBeenSet;
405  Replacement m_replacement;
406  bool m_replacementHasBeenSet;
408  bool m_scopeHasBeenSet;
410  bool m_detailsHasBeenSet;
411  };
412 
413 } // namespace Model
414 } // namespace CloudFormation
415 } // namespace Aws
ResourceChange & WithAction(const ChangeAction &value)
void SetLogicalResourceId(Aws::String &&value)
void SetScope(Aws::Vector< ResourceAttribute > &&value)
void SetPhysicalResourceId(Aws::String &&value)
const ChangeAction & GetAction() const
const Aws::Vector< ResourceAttribute > & GetScope() const
const Replacement & GetReplacement() const
ResourceChange & WithDetails(const Aws::Vector< ResourceChangeDetail > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
void SetLogicalResourceId(const Aws::String &value)
ResourceChange & WithResourceType(const Aws::String &value)
void SetPhysicalResourceId(const Aws::String &value)
void SetResourceType(Aws::String &&value)
void SetReplacement(const Replacement &value)
ResourceChange & AddScope(ResourceAttribute &&value)
ResourceChange & WithPhysicalResourceId(const Aws::String &value)
void SetDetails(Aws::Vector< ResourceChangeDetail > &&value)
void SetLogicalResourceId(const char *value)
ResourceChange & WithResourceType(Aws::String &&value)
void SetScope(const Aws::Vector< ResourceAttribute > &value)
void SetAction(const ChangeAction &value)
ResourceChange & WithLogicalResourceId(const Aws::String &value)
const Aws::String & GetResourceType() const
const Aws::Vector< ResourceChangeDetail > & GetDetails() const
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetPhysicalResourceId(const char *value)
const Aws::String & GetLogicalResourceId() const
ResourceChange & WithLogicalResourceId(Aws::String &&value)
void SetResourceType(const Aws::String &value)
ResourceChange & AddDetails(const ResourceChangeDetail &value)
const Aws::String & GetPhysicalResourceId() const
ResourceChange & WithPhysicalResourceId(const char *value)
ResourceChange & AddScope(const ResourceAttribute &value)
ResourceChange & WithAction(ChangeAction &&value)
ResourceChange & WithReplacement(Replacement &&value)
ResourceChange & WithLogicalResourceId(const char *value)
ResourceChange & WithResourceType(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ResourceChange & WithReplacement(const Replacement &value)
void SetReplacement(Replacement &&value)
#define AWS_CLOUDFORMATION_API
ResourceChange & WithDetails(Aws::Vector< ResourceChangeDetail > &&value)
ResourceChange & WithScope(Aws::Vector< ResourceAttribute > &&value)
ResourceChange & AddDetails(ResourceChangeDetail &&value)
void SetAction(ChangeAction &&value)
ResourceChange & WithScope(const Aws::Vector< ResourceAttribute > &value)
JSON (JavaScript Object Notation).
void SetDetails(const Aws::Vector< ResourceChangeDetail > &value)
ResourceChange & WithPhysicalResourceId(Aws::String &&value)