AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
Change.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/ChangeType.h>
9#include <aws/cloudformation/model/ResourceChange.h>
10#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFormation {
21namespace Model {
22
29class Change {
30 public:
31 AWS_CLOUDFORMATION_API Change() = default;
32 AWS_CLOUDFORMATION_API Change(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_CLOUDFORMATION_API Change& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
43 inline ChangeType GetType() const { return m_type; }
44 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
45 inline void SetType(ChangeType value) {
46 m_typeHasBeenSet = true;
47 m_type = value;
48 }
49 inline Change& WithType(ChangeType value) {
50 SetType(value);
51 return *this;
52 }
54
56
60 inline int GetHookInvocationCount() const { return m_hookInvocationCount; }
61 inline bool HookInvocationCountHasBeenSet() const { return m_hookInvocationCountHasBeenSet; }
62 inline void SetHookInvocationCount(int value) {
63 m_hookInvocationCountHasBeenSet = true;
64 m_hookInvocationCount = value;
65 }
66 inline Change& WithHookInvocationCount(int value) {
68 return *this;
69 }
71
73
77 inline const ResourceChange& GetResourceChange() const { return m_resourceChange; }
78 inline bool ResourceChangeHasBeenSet() const { return m_resourceChangeHasBeenSet; }
79 template <typename ResourceChangeT = ResourceChange>
80 void SetResourceChange(ResourceChangeT&& value) {
81 m_resourceChangeHasBeenSet = true;
82 m_resourceChange = std::forward<ResourceChangeT>(value);
83 }
84 template <typename ResourceChangeT = ResourceChange>
85 Change& WithResourceChange(ResourceChangeT&& value) {
86 SetResourceChange(std::forward<ResourceChangeT>(value));
87 return *this;
88 }
90 private:
92
93 int m_hookInvocationCount{0};
94
95 ResourceChange m_resourceChange;
96 bool m_typeHasBeenSet = false;
97 bool m_hookInvocationCountHasBeenSet = false;
98 bool m_resourceChangeHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace CloudFormation
103} // 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:66
AWS_CLOUDFORMATION_API Change(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetHookInvocationCount(int value)
Definition Change.h:62
ChangeType GetType() const
Definition Change.h:43
AWS_CLOUDFORMATION_API Change()=default
const ResourceChange & GetResourceChange() const
Definition Change.h:77
void SetResourceChange(ResourceChangeT &&value)
Definition Change.h:80
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool ResourceChangeHasBeenSet() const
Definition Change.h:78
Change & WithResourceChange(ResourceChangeT &&value)
Definition Change.h:85
bool HookInvocationCountHasBeenSet() const
Definition Change.h:61
void SetType(ChangeType value)
Definition Change.h:45
Change & WithType(ChangeType value)
Definition Change.h:49
std::basic_ostream< char, std::char_traits< char > > OStream