AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
ResourceChangeDetail.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/ChangeSource.h>
9#include <aws/cloudformation/model/EvaluationType.h>
10#include <aws/cloudformation/model/ResourceTargetDefinition.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
33 public:
34 AWS_CLOUDFORMATION_API ResourceChangeDetail() = default;
35 AWS_CLOUDFORMATION_API ResourceChangeDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_CLOUDFORMATION_API ResourceChangeDetail& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
46 inline const ResourceTargetDefinition& GetTarget() const { return m_target; }
47 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
48 template <typename TargetT = ResourceTargetDefinition>
49 void SetTarget(TargetT&& value) {
50 m_targetHasBeenSet = true;
51 m_target = std::forward<TargetT>(value);
52 }
53 template <typename TargetT = ResourceTargetDefinition>
54 ResourceChangeDetail& WithTarget(TargetT&& value) {
55 SetTarget(std::forward<TargetT>(value));
56 return *this;
57 }
59
61
77 inline EvaluationType GetEvaluation() const { return m_evaluation; }
78 inline bool EvaluationHasBeenSet() const { return m_evaluationHasBeenSet; }
79 inline void SetEvaluation(EvaluationType value) {
80 m_evaluationHasBeenSet = true;
81 m_evaluation = value;
82 }
84 SetEvaluation(value);
85 return *this;
86 }
88
90
112 inline ChangeSource GetChangeSource() const { return m_changeSource; }
113 inline bool ChangeSourceHasBeenSet() const { return m_changeSourceHasBeenSet; }
114 inline void SetChangeSource(ChangeSource value) {
115 m_changeSourceHasBeenSet = true;
116 m_changeSource = value;
117 }
119 SetChangeSource(value);
120 return *this;
121 }
123
125
134 inline const Aws::String& GetCausingEntity() const { return m_causingEntity; }
135 inline bool CausingEntityHasBeenSet() const { return m_causingEntityHasBeenSet; }
136 template <typename CausingEntityT = Aws::String>
137 void SetCausingEntity(CausingEntityT&& value) {
138 m_causingEntityHasBeenSet = true;
139 m_causingEntity = std::forward<CausingEntityT>(value);
140 }
141 template <typename CausingEntityT = Aws::String>
142 ResourceChangeDetail& WithCausingEntity(CausingEntityT&& value) {
143 SetCausingEntity(std::forward<CausingEntityT>(value));
144 return *this;
145 }
147 private:
149
151
152 ChangeSource m_changeSource{ChangeSource::NOT_SET};
153
154 Aws::String m_causingEntity;
155 bool m_targetHasBeenSet = false;
156 bool m_evaluationHasBeenSet = false;
157 bool m_changeSourceHasBeenSet = false;
158 bool m_causingEntityHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace CloudFormation
163} // namespace Aws
const ResourceTargetDefinition & GetTarget() const
ResourceChangeDetail & WithChangeSource(ChangeSource value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDFORMATION_API ResourceChangeDetail()=default
ResourceChangeDetail & WithCausingEntity(CausingEntityT &&value)
ResourceChangeDetail & WithEvaluation(EvaluationType value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ResourceChangeDetail & WithTarget(TargetT &&value)
AWS_CLOUDFORMATION_API ResourceChangeDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API ResourceChangeDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream