AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LifeCycle.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mgn/Mgn_EXPORTS.h>
9#include <aws/mgn/model/LifeCycleLastCutover.h>
10#include <aws/mgn/model/LifeCycleLastTest.h>
11#include <aws/mgn/model/LifeCycleState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace mgn {
23namespace Model {
24
30class LifeCycle {
31 public:
32 AWS_MGN_API LifeCycle() = default;
33 AWS_MGN_API LifeCycle(Aws::Utils::Json::JsonView jsonValue);
36
38
41 inline const Aws::String& GetAddedToServiceDateTime() const { return m_addedToServiceDateTime; }
42 inline bool AddedToServiceDateTimeHasBeenSet() const { return m_addedToServiceDateTimeHasBeenSet; }
43 template <typename AddedToServiceDateTimeT = Aws::String>
44 void SetAddedToServiceDateTime(AddedToServiceDateTimeT&& value) {
45 m_addedToServiceDateTimeHasBeenSet = true;
46 m_addedToServiceDateTime = std::forward<AddedToServiceDateTimeT>(value);
47 }
48 template <typename AddedToServiceDateTimeT = Aws::String>
49 LifeCycle& WithAddedToServiceDateTime(AddedToServiceDateTimeT&& value) {
50 SetAddedToServiceDateTime(std::forward<AddedToServiceDateTimeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetFirstByteDateTime() const { return m_firstByteDateTime; }
60 inline bool FirstByteDateTimeHasBeenSet() const { return m_firstByteDateTimeHasBeenSet; }
61 template <typename FirstByteDateTimeT = Aws::String>
62 void SetFirstByteDateTime(FirstByteDateTimeT&& value) {
63 m_firstByteDateTimeHasBeenSet = true;
64 m_firstByteDateTime = std::forward<FirstByteDateTimeT>(value);
65 }
66 template <typename FirstByteDateTimeT = Aws::String>
67 LifeCycle& WithFirstByteDateTime(FirstByteDateTimeT&& value) {
68 SetFirstByteDateTime(std::forward<FirstByteDateTimeT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetElapsedReplicationDuration() const { return m_elapsedReplicationDuration; }
78 inline bool ElapsedReplicationDurationHasBeenSet() const { return m_elapsedReplicationDurationHasBeenSet; }
79 template <typename ElapsedReplicationDurationT = Aws::String>
80 void SetElapsedReplicationDuration(ElapsedReplicationDurationT&& value) {
81 m_elapsedReplicationDurationHasBeenSet = true;
82 m_elapsedReplicationDuration = std::forward<ElapsedReplicationDurationT>(value);
83 }
84 template <typename ElapsedReplicationDurationT = Aws::String>
85 LifeCycle& WithElapsedReplicationDuration(ElapsedReplicationDurationT&& value) {
86 SetElapsedReplicationDuration(std::forward<ElapsedReplicationDurationT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetLastSeenByServiceDateTime() const { return m_lastSeenByServiceDateTime; }
96 inline bool LastSeenByServiceDateTimeHasBeenSet() const { return m_lastSeenByServiceDateTimeHasBeenSet; }
97 template <typename LastSeenByServiceDateTimeT = Aws::String>
98 void SetLastSeenByServiceDateTime(LastSeenByServiceDateTimeT&& value) {
99 m_lastSeenByServiceDateTimeHasBeenSet = true;
100 m_lastSeenByServiceDateTime = std::forward<LastSeenByServiceDateTimeT>(value);
101 }
102 template <typename LastSeenByServiceDateTimeT = Aws::String>
103 LifeCycle& WithLastSeenByServiceDateTime(LastSeenByServiceDateTimeT&& value) {
104 SetLastSeenByServiceDateTime(std::forward<LastSeenByServiceDateTimeT>(value));
105 return *this;
106 }
108
110
113 inline const LifeCycleLastTest& GetLastTest() const { return m_lastTest; }
114 inline bool LastTestHasBeenSet() const { return m_lastTestHasBeenSet; }
115 template <typename LastTestT = LifeCycleLastTest>
116 void SetLastTest(LastTestT&& value) {
117 m_lastTestHasBeenSet = true;
118 m_lastTest = std::forward<LastTestT>(value);
119 }
120 template <typename LastTestT = LifeCycleLastTest>
121 LifeCycle& WithLastTest(LastTestT&& value) {
122 SetLastTest(std::forward<LastTestT>(value));
123 return *this;
124 }
126
128
131 inline const LifeCycleLastCutover& GetLastCutover() const { return m_lastCutover; }
132 inline bool LastCutoverHasBeenSet() const { return m_lastCutoverHasBeenSet; }
133 template <typename LastCutoverT = LifeCycleLastCutover>
134 void SetLastCutover(LastCutoverT&& value) {
135 m_lastCutoverHasBeenSet = true;
136 m_lastCutover = std::forward<LastCutoverT>(value);
137 }
138 template <typename LastCutoverT = LifeCycleLastCutover>
139 LifeCycle& WithLastCutover(LastCutoverT&& value) {
140 SetLastCutover(std::forward<LastCutoverT>(value));
141 return *this;
142 }
144
146
149 inline LifeCycleState GetState() const { return m_state; }
150 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
151 inline void SetState(LifeCycleState value) {
152 m_stateHasBeenSet = true;
153 m_state = value;
154 }
156 SetState(value);
157 return *this;
158 }
160 private:
161 Aws::String m_addedToServiceDateTime;
162
163 Aws::String m_firstByteDateTime;
164
165 Aws::String m_elapsedReplicationDuration;
166
167 Aws::String m_lastSeenByServiceDateTime;
168
169 LifeCycleLastTest m_lastTest;
170
171 LifeCycleLastCutover m_lastCutover;
172
174 bool m_addedToServiceDateTimeHasBeenSet = false;
175 bool m_firstByteDateTimeHasBeenSet = false;
176 bool m_elapsedReplicationDurationHasBeenSet = false;
177 bool m_lastSeenByServiceDateTimeHasBeenSet = false;
178 bool m_lastTestHasBeenSet = false;
179 bool m_lastCutoverHasBeenSet = false;
180 bool m_stateHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace mgn
185} // namespace Aws
void SetAddedToServiceDateTime(AddedToServiceDateTimeT &&value)
Definition LifeCycle.h:44
const LifeCycleLastCutover & GetLastCutover() const
Definition LifeCycle.h:131
LifeCycleState GetState() const
Definition LifeCycle.h:149
LifeCycle & WithFirstByteDateTime(FirstByteDateTimeT &&value)
Definition LifeCycle.h:67
void SetLastSeenByServiceDateTime(LastSeenByServiceDateTimeT &&value)
Definition LifeCycle.h:98
LifeCycle & WithState(LifeCycleState value)
Definition LifeCycle.h:155
LifeCycle & WithAddedToServiceDateTime(AddedToServiceDateTimeT &&value)
Definition LifeCycle.h:49
void SetFirstByteDateTime(FirstByteDateTimeT &&value)
Definition LifeCycle.h:62
LifeCycle & WithLastTest(LastTestT &&value)
Definition LifeCycle.h:121
bool ElapsedReplicationDurationHasBeenSet() const
Definition LifeCycle.h:78
void SetElapsedReplicationDuration(ElapsedReplicationDurationT &&value)
Definition LifeCycle.h:80
bool LastTestHasBeenSet() const
Definition LifeCycle.h:114
void SetLastCutover(LastCutoverT &&value)
Definition LifeCycle.h:134
bool LastCutoverHasBeenSet() const
Definition LifeCycle.h:132
LifeCycle & WithLastSeenByServiceDateTime(LastSeenByServiceDateTimeT &&value)
Definition LifeCycle.h:103
bool FirstByteDateTimeHasBeenSet() const
Definition LifeCycle.h:60
void SetState(LifeCycleState value)
Definition LifeCycle.h:151
const Aws::String & GetAddedToServiceDateTime() const
Definition LifeCycle.h:41
bool AddedToServiceDateTimeHasBeenSet() const
Definition LifeCycle.h:42
bool StateHasBeenSet() const
Definition LifeCycle.h:150
bool LastSeenByServiceDateTimeHasBeenSet() const
Definition LifeCycle.h:96
const Aws::String & GetFirstByteDateTime() const
Definition LifeCycle.h:59
const Aws::String & GetElapsedReplicationDuration() const
Definition LifeCycle.h:77
void SetLastTest(LastTestT &&value)
Definition LifeCycle.h:116
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MGN_API LifeCycle & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MGN_API LifeCycle(Aws::Utils::Json::JsonView jsonValue)
const LifeCycleLastTest & GetLastTest() const
Definition LifeCycle.h:113
AWS_MGN_API LifeCycle()=default
const Aws::String & GetLastSeenByServiceDateTime() const
Definition LifeCycle.h:95
LifeCycle & WithLastCutover(LastCutoverT &&value)
Definition LifeCycle.h:139
LifeCycle & WithElapsedReplicationDuration(ElapsedReplicationDurationT &&value)
Definition LifeCycle.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue