AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
LiveResourceDrift.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/core/utils/DateTime.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
31 public:
32 AWS_CLOUDFORMATION_API LiveResourceDrift() = default;
33 AWS_CLOUDFORMATION_API LiveResourceDrift(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_CLOUDFORMATION_API LiveResourceDrift& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
43 inline const Aws::String& GetPreviousValue() const { return m_previousValue; }
44 inline bool PreviousValueHasBeenSet() const { return m_previousValueHasBeenSet; }
45 template <typename PreviousValueT = Aws::String>
46 void SetPreviousValue(PreviousValueT&& value) {
47 m_previousValueHasBeenSet = true;
48 m_previousValue = std::forward<PreviousValueT>(value);
49 }
50 template <typename PreviousValueT = Aws::String>
51 LiveResourceDrift& WithPreviousValue(PreviousValueT&& value) {
52 SetPreviousValue(std::forward<PreviousValueT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetActualValue() const { return m_actualValue; }
62 inline bool ActualValueHasBeenSet() const { return m_actualValueHasBeenSet; }
63 template <typename ActualValueT = Aws::String>
64 void SetActualValue(ActualValueT&& value) {
65 m_actualValueHasBeenSet = true;
66 m_actualValue = std::forward<ActualValueT>(value);
67 }
68 template <typename ActualValueT = Aws::String>
69 LiveResourceDrift& WithActualValue(ActualValueT&& value) {
70 SetActualValue(std::forward<ActualValueT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Utils::DateTime& GetDriftDetectionTimestamp() const { return m_driftDetectionTimestamp; }
80 inline bool DriftDetectionTimestampHasBeenSet() const { return m_driftDetectionTimestampHasBeenSet; }
81 template <typename DriftDetectionTimestampT = Aws::Utils::DateTime>
82 void SetDriftDetectionTimestamp(DriftDetectionTimestampT&& value) {
83 m_driftDetectionTimestampHasBeenSet = true;
84 m_driftDetectionTimestamp = std::forward<DriftDetectionTimestampT>(value);
85 }
86 template <typename DriftDetectionTimestampT = Aws::Utils::DateTime>
87 LiveResourceDrift& WithDriftDetectionTimestamp(DriftDetectionTimestampT&& value) {
88 SetDriftDetectionTimestamp(std::forward<DriftDetectionTimestampT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_previousValue;
94
95 Aws::String m_actualValue;
96
97 Aws::Utils::DateTime m_driftDetectionTimestamp{};
98 bool m_previousValueHasBeenSet = false;
99 bool m_actualValueHasBeenSet = false;
100 bool m_driftDetectionTimestampHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace CloudFormation
105} // namespace Aws
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetDriftDetectionTimestamp(DriftDetectionTimestampT &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDFORMATION_API LiveResourceDrift()=default
LiveResourceDrift & WithPreviousValue(PreviousValueT &&value)
LiveResourceDrift & WithActualValue(ActualValueT &&value)
AWS_CLOUDFORMATION_API LiveResourceDrift(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API LiveResourceDrift & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetDriftDetectionTimestamp() const
LiveResourceDrift & WithDriftDetectionTimestamp(DriftDetectionTimestampT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream