AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourceChangeDetail.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/ResourceTargetDefinition.h>
10#include <aws/cloudformation/model/EvaluationType.h>
11#include <aws/cloudformation/model/ChangeSource.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Xml
20{
21 class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace CloudFormation
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_CLOUDFORMATION_API ResourceChangeDetail() = default;
40 AWS_CLOUDFORMATION_API ResourceChangeDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_CLOUDFORMATION_API ResourceChangeDetail& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
52 inline const ResourceTargetDefinition& GetTarget() const { return m_target; }
53 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
54 template<typename TargetT = ResourceTargetDefinition>
55 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
56 template<typename TargetT = ResourceTargetDefinition>
57 ResourceChangeDetail& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
59
61
77 inline EvaluationType GetEvaluation() const { return m_evaluation; }
78 inline bool EvaluationHasBeenSet() const { return m_evaluationHasBeenSet; }
79 inline void SetEvaluation(EvaluationType value) { m_evaluationHasBeenSet = true; m_evaluation = value; }
80 inline ResourceChangeDetail& WithEvaluation(EvaluationType value) { SetEvaluation(value); return *this;}
82
84
104 inline ChangeSource GetChangeSource() const { return m_changeSource; }
105 inline bool ChangeSourceHasBeenSet() const { return m_changeSourceHasBeenSet; }
106 inline void SetChangeSource(ChangeSource value) { m_changeSourceHasBeenSet = true; m_changeSource = value; }
109
111
120 inline const Aws::String& GetCausingEntity() const { return m_causingEntity; }
121 inline bool CausingEntityHasBeenSet() const { return m_causingEntityHasBeenSet; }
122 template<typename CausingEntityT = Aws::String>
123 void SetCausingEntity(CausingEntityT&& value) { m_causingEntityHasBeenSet = true; m_causingEntity = std::forward<CausingEntityT>(value); }
124 template<typename CausingEntityT = Aws::String>
125 ResourceChangeDetail& WithCausingEntity(CausingEntityT&& value) { SetCausingEntity(std::forward<CausingEntityT>(value)); return *this;}
127 private:
128
130 bool m_targetHasBeenSet = false;
131
133 bool m_evaluationHasBeenSet = false;
134
135 ChangeSource m_changeSource{ChangeSource::NOT_SET};
136 bool m_changeSourceHasBeenSet = false;
137
138 Aws::String m_causingEntity;
139 bool m_causingEntityHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace CloudFormation
144} // 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