AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 ChangeType GetType() const { return m_type; }
50 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 inline void SetType(ChangeType value) { m_typeHasBeenSet = true; m_type = value; }
52 inline Change& WithType(ChangeType value) { SetType(value); return *this;}
54
56
60 inline int GetHookInvocationCount() const { return m_hookInvocationCount; }
61 inline bool HookInvocationCountHasBeenSet() const { return m_hookInvocationCountHasBeenSet; }
62 inline void SetHookInvocationCount(int value) { m_hookInvocationCountHasBeenSet = true; m_hookInvocationCount = value; }
63 inline Change& WithHookInvocationCount(int value) { SetHookInvocationCount(value); return *this;}
65
67
71 inline const ResourceChange& GetResourceChange() const { return m_resourceChange; }
72 inline bool ResourceChangeHasBeenSet() const { return m_resourceChangeHasBeenSet; }
73 template<typename ResourceChangeT = ResourceChange>
74 void SetResourceChange(ResourceChangeT&& value) { m_resourceChangeHasBeenSet = true; m_resourceChange = std::forward<ResourceChangeT>(value); }
75 template<typename ResourceChangeT = ResourceChange>
76 Change& WithResourceChange(ResourceChangeT&& value) { SetResourceChange(std::forward<ResourceChangeT>(value)); return *this;}
78 private:
79
81 bool m_typeHasBeenSet = false;
82
83 int m_hookInvocationCount{0};
84 bool m_hookInvocationCountHasBeenSet = false;
85
86 ResourceChange m_resourceChange;
87 bool m_resourceChangeHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace CloudFormation
92} // 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)
Change & WithHookInvocationCount(int value)
Definition Change.h:63
AWS_CLOUDFORMATION_API Change(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetHookInvocationCount(int value)
Definition Change.h:62
ChangeType GetType() const
Definition Change.h:49
AWS_CLOUDFORMATION_API Change()=default
const ResourceChange & GetResourceChange() const
Definition Change.h:71
void SetResourceChange(ResourceChangeT &&value)
Definition Change.h:74
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool ResourceChangeHasBeenSet() const
Definition Change.h:72
Change & WithResourceChange(ResourceChangeT &&value)
Definition Change.h:76
bool HookInvocationCountHasBeenSet() const
Definition Change.h:61
void SetType(ChangeType value)
Definition Change.h:51
Change & WithType(ChangeType value)
Definition Change.h:52
std::basic_ostream< char, std::char_traits< char > > OStream