AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Change.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/cloudformation/model/ChangeType.h>
10#include <aws/cloudformation/model/ResourceChange.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFormation
23{
24namespace Model
25{
26
33 class Change
34 {
35 public:
36 AWS_CLOUDFORMATION_API Change();
37 AWS_CLOUDFORMATION_API Change(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDFORMATION_API Change& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
49 inline const ChangeType& GetType() const{ return m_type; }
50 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 inline void SetType(const ChangeType& value) { m_typeHasBeenSet = true; m_type = value; }
52 inline void SetType(ChangeType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
53 inline Change& WithType(const ChangeType& value) { SetType(value); return *this;}
54 inline Change& WithType(ChangeType&& value) { SetType(std::move(value)); return *this;}
56
58
62 inline int GetHookInvocationCount() const{ return m_hookInvocationCount; }
63 inline bool HookInvocationCountHasBeenSet() const { return m_hookInvocationCountHasBeenSet; }
64 inline void SetHookInvocationCount(int value) { m_hookInvocationCountHasBeenSet = true; m_hookInvocationCount = value; }
65 inline Change& WithHookInvocationCount(int value) { SetHookInvocationCount(value); return *this;}
67
69
73 inline const ResourceChange& GetResourceChange() const{ return m_resourceChange; }
74 inline bool ResourceChangeHasBeenSet() const { return m_resourceChangeHasBeenSet; }
75 inline void SetResourceChange(const ResourceChange& value) { m_resourceChangeHasBeenSet = true; m_resourceChange = value; }
76 inline void SetResourceChange(ResourceChange&& value) { m_resourceChangeHasBeenSet = true; m_resourceChange = std::move(value); }
77 inline Change& WithResourceChange(const ResourceChange& value) { SetResourceChange(value); return *this;}
78 inline Change& WithResourceChange(ResourceChange&& value) { SetResourceChange(std::move(value)); return *this;}
80 private:
81
82 ChangeType m_type;
83 bool m_typeHasBeenSet = false;
84
85 int m_hookInvocationCount;
86 bool m_hookInvocationCountHasBeenSet = false;
87
88 ResourceChange m_resourceChange;
89 bool m_resourceChangeHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace CloudFormation
94} // namespace Aws
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDFORMATION_API Change & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetResourceChange(ResourceChange &&value)
Definition Change.h:76
Change & WithHookInvocationCount(int value)
Definition Change.h:65
AWS_CLOUDFORMATION_API Change(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetHookInvocationCount(int value)
Definition Change.h:64
void SetType(const ChangeType &value)
Definition Change.h:51
const ResourceChange & GetResourceChange() const
Definition Change.h:73
const ChangeType & GetType() const
Definition Change.h:49
Change & WithResourceChange(ResourceChange &&value)
Definition Change.h:78
void SetResourceChange(const ResourceChange &value)
Definition Change.h:75
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDFORMATION_API Change()
Change & WithType(ChangeType &&value)
Definition Change.h:54
bool ResourceChangeHasBeenSet() const
Definition Change.h:74
bool HookInvocationCountHasBeenSet() const
Definition Change.h:63
void SetType(ChangeType &&value)
Definition Change.h:52
Change & WithType(const ChangeType &value)
Definition Change.h:53
Change & WithResourceChange(const ResourceChange &value)
Definition Change.h:77
std::basic_ostream< char, std::char_traits< char > > OStream