AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
ChangeSetHook.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/ChangeSetHookTargetDetails.h>
9#include <aws/cloudformation/model/HookFailureMode.h>
10#include <aws/cloudformation/model/HookInvocationPoint.h>
11#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFormation {
23namespace Model {
24
32 public:
33 AWS_CLOUDFORMATION_API ChangeSetHook() = default;
34 AWS_CLOUDFORMATION_API ChangeSetHook(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_CLOUDFORMATION_API ChangeSetHook& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline HookInvocationPoint GetInvocationPoint() const { return m_invocationPoint; }
45 inline bool InvocationPointHasBeenSet() const { return m_invocationPointHasBeenSet; }
47 m_invocationPointHasBeenSet = true;
48 m_invocationPoint = value;
49 }
51 SetInvocationPoint(value);
52 return *this;
53 }
55
57
63 inline HookFailureMode GetFailureMode() const { return m_failureMode; }
64 inline bool FailureModeHasBeenSet() const { return m_failureModeHasBeenSet; }
65 inline void SetFailureMode(HookFailureMode value) {
66 m_failureModeHasBeenSet = true;
67 m_failureMode = value;
68 }
70 SetFailureMode(value);
71 return *this;
72 }
74
76
87 inline const Aws::String& GetTypeName() const { return m_typeName; }
88 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
89 template <typename TypeNameT = Aws::String>
90 void SetTypeName(TypeNameT&& value) {
91 m_typeNameHasBeenSet = true;
92 m_typeName = std::forward<TypeNameT>(value);
93 }
94 template <typename TypeNameT = Aws::String>
95 ChangeSetHook& WithTypeName(TypeNameT&& value) {
96 SetTypeName(std::forward<TypeNameT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetTypeVersionId() const { return m_typeVersionId; }
106 inline bool TypeVersionIdHasBeenSet() const { return m_typeVersionIdHasBeenSet; }
107 template <typename TypeVersionIdT = Aws::String>
108 void SetTypeVersionId(TypeVersionIdT&& value) {
109 m_typeVersionIdHasBeenSet = true;
110 m_typeVersionId = std::forward<TypeVersionIdT>(value);
111 }
112 template <typename TypeVersionIdT = Aws::String>
113 ChangeSetHook& WithTypeVersionId(TypeVersionIdT&& value) {
114 SetTypeVersionId(std::forward<TypeVersionIdT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetTypeConfigurationVersionId() const { return m_typeConfigurationVersionId; }
124 inline bool TypeConfigurationVersionIdHasBeenSet() const { return m_typeConfigurationVersionIdHasBeenSet; }
125 template <typename TypeConfigurationVersionIdT = Aws::String>
126 void SetTypeConfigurationVersionId(TypeConfigurationVersionIdT&& value) {
127 m_typeConfigurationVersionIdHasBeenSet = true;
128 m_typeConfigurationVersionId = std::forward<TypeConfigurationVersionIdT>(value);
129 }
130 template <typename TypeConfigurationVersionIdT = Aws::String>
131 ChangeSetHook& WithTypeConfigurationVersionId(TypeConfigurationVersionIdT&& value) {
132 SetTypeConfigurationVersionId(std::forward<TypeConfigurationVersionIdT>(value));
133 return *this;
134 }
136
138
141 inline const ChangeSetHookTargetDetails& GetTargetDetails() const { return m_targetDetails; }
142 inline bool TargetDetailsHasBeenSet() const { return m_targetDetailsHasBeenSet; }
143 template <typename TargetDetailsT = ChangeSetHookTargetDetails>
144 void SetTargetDetails(TargetDetailsT&& value) {
145 m_targetDetailsHasBeenSet = true;
146 m_targetDetails = std::forward<TargetDetailsT>(value);
147 }
148 template <typename TargetDetailsT = ChangeSetHookTargetDetails>
149 ChangeSetHook& WithTargetDetails(TargetDetailsT&& value) {
150 SetTargetDetails(std::forward<TargetDetailsT>(value));
151 return *this;
152 }
154 private:
156
158
159 Aws::String m_typeName;
160
161 Aws::String m_typeVersionId;
162
163 Aws::String m_typeConfigurationVersionId;
164
165 ChangeSetHookTargetDetails m_targetDetails;
166 bool m_invocationPointHasBeenSet = false;
167 bool m_failureModeHasBeenSet = false;
168 bool m_typeNameHasBeenSet = false;
169 bool m_typeVersionIdHasBeenSet = false;
170 bool m_typeConfigurationVersionIdHasBeenSet = false;
171 bool m_targetDetailsHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace CloudFormation
176} // namespace Aws
AWS_CLOUDFORMATION_API ChangeSetHook & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetTypeVersionId() const
ChangeSetHook & WithTypeName(TypeNameT &&value)
void SetTargetDetails(TargetDetailsT &&value)
ChangeSetHook & WithTypeConfigurationVersionId(TypeConfigurationVersionIdT &&value)
void SetFailureMode(HookFailureMode value)
const ChangeSetHookTargetDetails & GetTargetDetails() const
AWS_CLOUDFORMATION_API ChangeSetHook()=default
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetTypeConfigurationVersionId(TypeConfigurationVersionIdT &&value)
ChangeSetHook & WithTypeVersionId(TypeVersionIdT &&value)
ChangeSetHook & WithTargetDetails(TargetDetailsT &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetInvocationPoint(HookInvocationPoint value)
ChangeSetHook & WithFailureMode(HookFailureMode value)
void SetTypeVersionId(TypeVersionIdT &&value)
const Aws::String & GetTypeConfigurationVersionId() const
AWS_CLOUDFORMATION_API ChangeSetHook(const Aws::Utils::Xml::XmlNode &xmlNode)
HookInvocationPoint GetInvocationPoint() const
ChangeSetHook & WithInvocationPoint(HookInvocationPoint value)
const Aws::String & GetTypeName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream