AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
PropertyDifference.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/DifferenceType.h>
9#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
10#include <aws/core/utils/memory/stl/AWSString.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
36 public:
37 AWS_CLOUDFORMATION_API PropertyDifference() = default;
38 AWS_CLOUDFORMATION_API PropertyDifference(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_CLOUDFORMATION_API PropertyDifference& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
45
48 inline const Aws::String& GetPropertyPath() const { return m_propertyPath; }
49 inline bool PropertyPathHasBeenSet() const { return m_propertyPathHasBeenSet; }
50 template <typename PropertyPathT = Aws::String>
51 void SetPropertyPath(PropertyPathT&& value) {
52 m_propertyPathHasBeenSet = true;
53 m_propertyPath = std::forward<PropertyPathT>(value);
54 }
55 template <typename PropertyPathT = Aws::String>
56 PropertyDifference& WithPropertyPath(PropertyPathT&& value) {
57 SetPropertyPath(std::forward<PropertyPathT>(value));
58 return *this;
59 }
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) {
71 m_expectedValueHasBeenSet = true;
72 m_expectedValue = std::forward<ExpectedValueT>(value);
73 }
74 template <typename ExpectedValueT = Aws::String>
75 PropertyDifference& WithExpectedValue(ExpectedValueT&& value) {
76 SetExpectedValue(std::forward<ExpectedValueT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::String& GetActualValue() const { return m_actualValue; }
86 inline bool ActualValueHasBeenSet() const { return m_actualValueHasBeenSet; }
87 template <typename ActualValueT = Aws::String>
88 void SetActualValue(ActualValueT&& value) {
89 m_actualValueHasBeenSet = true;
90 m_actualValue = std::forward<ActualValueT>(value);
91 }
92 template <typename ActualValueT = Aws::String>
93 PropertyDifference& WithActualValue(ActualValueT&& value) {
94 SetActualValue(std::forward<ActualValueT>(value));
95 return *this;
96 }
98
100
108 inline DifferenceType GetDifferenceType() const { return m_differenceType; }
109 inline bool DifferenceTypeHasBeenSet() const { return m_differenceTypeHasBeenSet; }
111 m_differenceTypeHasBeenSet = true;
112 m_differenceType = value;
113 }
115 SetDifferenceType(value);
116 return *this;
117 }
119 private:
120 Aws::String m_propertyPath;
121
122 Aws::String m_expectedValue;
123
124 Aws::String m_actualValue;
125
126 DifferenceType m_differenceType{DifferenceType::NOT_SET};
127 bool m_propertyPathHasBeenSet = false;
128 bool m_expectedValueHasBeenSet = false;
129 bool m_actualValueHasBeenSet = false;
130 bool m_differenceTypeHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace CloudFormation
135} // 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