AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PropertyDifference.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cloudformation/model/DifferenceType.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
40 {
41 public:
42 AWS_CLOUDFORMATION_API PropertyDifference() = default;
43 AWS_CLOUDFORMATION_API PropertyDifference(const Aws::Utils::Xml::XmlNode& xmlNode);
44 AWS_CLOUDFORMATION_API PropertyDifference& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45
46 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
49
51
54 inline const Aws::String& GetPropertyPath() const { return m_propertyPath; }
55 inline bool PropertyPathHasBeenSet() const { return m_propertyPathHasBeenSet; }
56 template<typename PropertyPathT = Aws::String>
57 void SetPropertyPath(PropertyPathT&& value) { m_propertyPathHasBeenSet = true; m_propertyPath = std::forward<PropertyPathT>(value); }
58 template<typename PropertyPathT = Aws::String>
59 PropertyDifference& WithPropertyPath(PropertyPathT&& value) { SetPropertyPath(std::forward<PropertyPathT>(value)); return *this;}
61
63
67 inline const Aws::String& GetExpectedValue() const { return m_expectedValue; }
68 inline bool ExpectedValueHasBeenSet() const { return m_expectedValueHasBeenSet; }
69 template<typename ExpectedValueT = Aws::String>
70 void SetExpectedValue(ExpectedValueT&& value) { m_expectedValueHasBeenSet = true; m_expectedValue = std::forward<ExpectedValueT>(value); }
71 template<typename ExpectedValueT = Aws::String>
72 PropertyDifference& WithExpectedValue(ExpectedValueT&& value) { SetExpectedValue(std::forward<ExpectedValueT>(value)); return *this;}
74
76
79 inline const Aws::String& GetActualValue() const { return m_actualValue; }
80 inline bool ActualValueHasBeenSet() const { return m_actualValueHasBeenSet; }
81 template<typename ActualValueT = Aws::String>
82 void SetActualValue(ActualValueT&& value) { m_actualValueHasBeenSet = true; m_actualValue = std::forward<ActualValueT>(value); }
83 template<typename ActualValueT = Aws::String>
84 PropertyDifference& WithActualValue(ActualValueT&& value) { SetActualValue(std::forward<ActualValueT>(value)); return *this;}
86
88
96 inline DifferenceType GetDifferenceType() const { return m_differenceType; }
97 inline bool DifferenceTypeHasBeenSet() const { return m_differenceTypeHasBeenSet; }
98 inline void SetDifferenceType(DifferenceType value) { m_differenceTypeHasBeenSet = true; m_differenceType = value; }
101 private:
102
103 Aws::String m_propertyPath;
104 bool m_propertyPathHasBeenSet = false;
105
106 Aws::String m_expectedValue;
107 bool m_expectedValueHasBeenSet = false;
108
109 Aws::String m_actualValue;
110 bool m_actualValueHasBeenSet = false;
111
112 DifferenceType m_differenceType{DifferenceType::NOT_SET};
113 bool m_differenceTypeHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace CloudFormation
118} // namespace Aws
PropertyDifference & WithDifferenceType(DifferenceType value)
AWS_CLOUDFORMATION_API PropertyDifference(const Aws::Utils::Xml::XmlNode &xmlNode)
PropertyDifference & WithActualValue(ActualValueT &&value)
PropertyDifference & WithPropertyPath(PropertyPathT &&value)
AWS_CLOUDFORMATION_API PropertyDifference & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDFORMATION_API PropertyDifference()=default
PropertyDifference & WithExpectedValue(ExpectedValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream