AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RollbackDetails.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/autoscaling/model/InstanceRefreshProgressDetails.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace AutoScaling
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_AUTOSCALING_API RollbackDetails();
37 AWS_AUTOSCALING_API RollbackDetails(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_AUTOSCALING_API RollbackDetails& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
49 inline const Aws::String& GetRollbackReason() const{ return m_rollbackReason; }
50 inline bool RollbackReasonHasBeenSet() const { return m_rollbackReasonHasBeenSet; }
51 inline void SetRollbackReason(const Aws::String& value) { m_rollbackReasonHasBeenSet = true; m_rollbackReason = value; }
52 inline void SetRollbackReason(Aws::String&& value) { m_rollbackReasonHasBeenSet = true; m_rollbackReason = std::move(value); }
53 inline void SetRollbackReason(const char* value) { m_rollbackReasonHasBeenSet = true; m_rollbackReason.assign(value); }
54 inline RollbackDetails& WithRollbackReason(const Aws::String& value) { SetRollbackReason(value); return *this;}
55 inline RollbackDetails& WithRollbackReason(Aws::String&& value) { SetRollbackReason(std::move(value)); return *this;}
56 inline RollbackDetails& WithRollbackReason(const char* value) { SetRollbackReason(value); return *this;}
58
60
63 inline const Aws::Utils::DateTime& GetRollbackStartTime() const{ return m_rollbackStartTime; }
64 inline bool RollbackStartTimeHasBeenSet() const { return m_rollbackStartTimeHasBeenSet; }
65 inline void SetRollbackStartTime(const Aws::Utils::DateTime& value) { m_rollbackStartTimeHasBeenSet = true; m_rollbackStartTime = value; }
66 inline void SetRollbackStartTime(Aws::Utils::DateTime&& value) { m_rollbackStartTimeHasBeenSet = true; m_rollbackStartTime = std::move(value); }
68 inline RollbackDetails& WithRollbackStartTime(Aws::Utils::DateTime&& value) { SetRollbackStartTime(std::move(value)); return *this;}
70
72
76 inline int GetPercentageCompleteOnRollback() const{ return m_percentageCompleteOnRollback; }
77 inline bool PercentageCompleteOnRollbackHasBeenSet() const { return m_percentageCompleteOnRollbackHasBeenSet; }
78 inline void SetPercentageCompleteOnRollback(int value) { m_percentageCompleteOnRollbackHasBeenSet = true; m_percentageCompleteOnRollback = value; }
81
83
87 inline int GetInstancesToUpdateOnRollback() const{ return m_instancesToUpdateOnRollback; }
88 inline bool InstancesToUpdateOnRollbackHasBeenSet() const { return m_instancesToUpdateOnRollbackHasBeenSet; }
89 inline void SetInstancesToUpdateOnRollback(int value) { m_instancesToUpdateOnRollbackHasBeenSet = true; m_instancesToUpdateOnRollback = value; }
92
94
99 inline const InstanceRefreshProgressDetails& GetProgressDetailsOnRollback() const{ return m_progressDetailsOnRollback; }
100 inline bool ProgressDetailsOnRollbackHasBeenSet() const { return m_progressDetailsOnRollbackHasBeenSet; }
101 inline void SetProgressDetailsOnRollback(const InstanceRefreshProgressDetails& value) { m_progressDetailsOnRollbackHasBeenSet = true; m_progressDetailsOnRollback = value; }
102 inline void SetProgressDetailsOnRollback(InstanceRefreshProgressDetails&& value) { m_progressDetailsOnRollbackHasBeenSet = true; m_progressDetailsOnRollback = std::move(value); }
106 private:
107
108 Aws::String m_rollbackReason;
109 bool m_rollbackReasonHasBeenSet = false;
110
111 Aws::Utils::DateTime m_rollbackStartTime;
112 bool m_rollbackStartTimeHasBeenSet = false;
113
114 int m_percentageCompleteOnRollback;
115 bool m_percentageCompleteOnRollbackHasBeenSet = false;
116
117 int m_instancesToUpdateOnRollback;
118 bool m_instancesToUpdateOnRollbackHasBeenSet = false;
119
120 InstanceRefreshProgressDetails m_progressDetailsOnRollback;
121 bool m_progressDetailsOnRollbackHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace AutoScaling
126} // namespace Aws
RollbackDetails & WithProgressDetailsOnRollback(InstanceRefreshProgressDetails &&value)
AWS_AUTOSCALING_API RollbackDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
RollbackDetails & WithInstancesToUpdateOnRollback(int value)
void SetProgressDetailsOnRollback(InstanceRefreshProgressDetails &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
RollbackDetails & WithRollbackReason(Aws::String &&value)
RollbackDetails & WithRollbackReason(const char *value)
AWS_AUTOSCALING_API RollbackDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
RollbackDetails & WithPercentageCompleteOnRollback(int value)
void SetRollbackStartTime(const Aws::Utils::DateTime &value)
RollbackDetails & WithProgressDetailsOnRollback(const InstanceRefreshProgressDetails &value)
RollbackDetails & WithRollbackStartTime(Aws::Utils::DateTime &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Utils::DateTime & GetRollbackStartTime() const
void SetRollbackStartTime(Aws::Utils::DateTime &&value)
void SetProgressDetailsOnRollback(const InstanceRefreshProgressDetails &value)
RollbackDetails & WithRollbackStartTime(const Aws::Utils::DateTime &value)
void SetRollbackReason(const Aws::String &value)
void SetRollbackReason(Aws::String &&value)
const Aws::String & GetRollbackReason() const
RollbackDetails & WithRollbackReason(const Aws::String &value)
const InstanceRefreshProgressDetails & GetProgressDetailsOnRollback() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream