AWS SDK for C++  0.14.3
AWS SDK for C++
Change.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace CloudFormation
31 {
32 namespace Model
33 {
34 
40  {
41  public:
42  Change();
43  Change(const Aws::Utils::Xml::XmlNode& xmlNode);
44  Change& 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 
53  inline const ChangeType& GetType() const{ return m_type; }
54 
59  inline void SetType(const ChangeType& value) { m_typeHasBeenSet = true; m_type = value; }
60 
65  inline void SetType(ChangeType&& value) { m_typeHasBeenSet = true; m_type = value; }
66 
71  inline Change& WithType(const ChangeType& value) { SetType(value); return *this;}
72 
77  inline Change& WithType(ChangeType&& value) { SetType(value); return *this;}
78 
83  inline const ResourceChange& GetResourceChange() const{ return m_resourceChange; }
84 
89  inline void SetResourceChange(const ResourceChange& value) { m_resourceChangeHasBeenSet = true; m_resourceChange = value; }
90 
95  inline void SetResourceChange(ResourceChange&& value) { m_resourceChangeHasBeenSet = true; m_resourceChange = value; }
96 
101  inline Change& WithResourceChange(const ResourceChange& value) { SetResourceChange(value); return *this;}
102 
107  inline Change& WithResourceChange(ResourceChange&& value) { SetResourceChange(value); return *this;}
108 
109  private:
110  ChangeType m_type;
111  bool m_typeHasBeenSet;
112  ResourceChange m_resourceChange;
113  bool m_resourceChangeHasBeenSet;
114  };
115 
116 } // namespace Model
117 } // namespace CloudFormation
118 } // namespace Aws
void SetType(const ChangeType &value)
Definition: Change.h:59
Change & WithResourceChange(const ResourceChange &value)
Definition: Change.h:101
void SetType(ChangeType &&value)
Definition: Change.h:65
Change & WithType(ChangeType &&value)
Definition: Change.h:77
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const ChangeType & GetType() const
Definition: Change.h:53
void SetResourceChange(ResourceChange &&value)
Definition: Change.h:95
const ResourceChange & GetResourceChange() const
Definition: Change.h:83
Change & WithResourceChange(ResourceChange &&value)
Definition: Change.h:107
void SetResourceChange(const ResourceChange &value)
Definition: Change.h:89
#define AWS_CLOUDFORMATION_API
Change & WithType(const ChangeType &value)
Definition: Change.h:71
JSON (JavaScript Object Notation).