AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LifeCycle.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mgn/model/LifeCycleLastCutover.h>
10#include <aws/mgn/model/LifeCycleLastTest.h>
11#include <aws/mgn/model/LifeCycleState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace mgn
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_MGN_API LifeCycle() = default;
38 AWS_MGN_API LifeCycle(Aws::Utils::Json::JsonView jsonValue);
41
42
44
47 inline const Aws::String& GetAddedToServiceDateTime() const { return m_addedToServiceDateTime; }
48 inline bool AddedToServiceDateTimeHasBeenSet() const { return m_addedToServiceDateTimeHasBeenSet; }
49 template<typename AddedToServiceDateTimeT = Aws::String>
50 void SetAddedToServiceDateTime(AddedToServiceDateTimeT&& value) { m_addedToServiceDateTimeHasBeenSet = true; m_addedToServiceDateTime = std::forward<AddedToServiceDateTimeT>(value); }
51 template<typename AddedToServiceDateTimeT = Aws::String>
52 LifeCycle& WithAddedToServiceDateTime(AddedToServiceDateTimeT&& value) { SetAddedToServiceDateTime(std::forward<AddedToServiceDateTimeT>(value)); return *this;}
54
56
59 inline const Aws::String& GetElapsedReplicationDuration() const { return m_elapsedReplicationDuration; }
60 inline bool ElapsedReplicationDurationHasBeenSet() const { return m_elapsedReplicationDurationHasBeenSet; }
61 template<typename ElapsedReplicationDurationT = Aws::String>
62 void SetElapsedReplicationDuration(ElapsedReplicationDurationT&& value) { m_elapsedReplicationDurationHasBeenSet = true; m_elapsedReplicationDuration = std::forward<ElapsedReplicationDurationT>(value); }
63 template<typename ElapsedReplicationDurationT = Aws::String>
64 LifeCycle& WithElapsedReplicationDuration(ElapsedReplicationDurationT&& value) { SetElapsedReplicationDuration(std::forward<ElapsedReplicationDurationT>(value)); return *this;}
66
68
71 inline const Aws::String& GetFirstByteDateTime() const { return m_firstByteDateTime; }
72 inline bool FirstByteDateTimeHasBeenSet() const { return m_firstByteDateTimeHasBeenSet; }
73 template<typename FirstByteDateTimeT = Aws::String>
74 void SetFirstByteDateTime(FirstByteDateTimeT&& value) { m_firstByteDateTimeHasBeenSet = true; m_firstByteDateTime = std::forward<FirstByteDateTimeT>(value); }
75 template<typename FirstByteDateTimeT = Aws::String>
76 LifeCycle& WithFirstByteDateTime(FirstByteDateTimeT&& value) { SetFirstByteDateTime(std::forward<FirstByteDateTimeT>(value)); return *this;}
78
80
83 inline const LifeCycleLastCutover& GetLastCutover() const { return m_lastCutover; }
84 inline bool LastCutoverHasBeenSet() const { return m_lastCutoverHasBeenSet; }
85 template<typename LastCutoverT = LifeCycleLastCutover>
86 void SetLastCutover(LastCutoverT&& value) { m_lastCutoverHasBeenSet = true; m_lastCutover = std::forward<LastCutoverT>(value); }
87 template<typename LastCutoverT = LifeCycleLastCutover>
88 LifeCycle& WithLastCutover(LastCutoverT&& value) { SetLastCutover(std::forward<LastCutoverT>(value)); return *this;}
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) { m_lastSeenByServiceDateTimeHasBeenSet = true; m_lastSeenByServiceDateTime = std::forward<LastSeenByServiceDateTimeT>(value); }
99 template<typename LastSeenByServiceDateTimeT = Aws::String>
100 LifeCycle& WithLastSeenByServiceDateTime(LastSeenByServiceDateTimeT&& value) { SetLastSeenByServiceDateTime(std::forward<LastSeenByServiceDateTimeT>(value)); return *this;}
102
104
107 inline const LifeCycleLastTest& GetLastTest() const { return m_lastTest; }
108 inline bool LastTestHasBeenSet() const { return m_lastTestHasBeenSet; }
109 template<typename LastTestT = LifeCycleLastTest>
110 void SetLastTest(LastTestT&& value) { m_lastTestHasBeenSet = true; m_lastTest = std::forward<LastTestT>(value); }
111 template<typename LastTestT = LifeCycleLastTest>
112 LifeCycle& WithLastTest(LastTestT&& value) { SetLastTest(std::forward<LastTestT>(value)); return *this;}
114
116
119 inline LifeCycleState GetState() const { return m_state; }
120 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
121 inline void SetState(LifeCycleState value) { m_stateHasBeenSet = true; m_state = value; }
122 inline LifeCycle& WithState(LifeCycleState value) { SetState(value); return *this;}
124 private:
125
126 Aws::String m_addedToServiceDateTime;
127 bool m_addedToServiceDateTimeHasBeenSet = false;
128
129 Aws::String m_elapsedReplicationDuration;
130 bool m_elapsedReplicationDurationHasBeenSet = false;
131
132 Aws::String m_firstByteDateTime;
133 bool m_firstByteDateTimeHasBeenSet = false;
134
135 LifeCycleLastCutover m_lastCutover;
136 bool m_lastCutoverHasBeenSet = false;
137
138 Aws::String m_lastSeenByServiceDateTime;
139 bool m_lastSeenByServiceDateTimeHasBeenSet = false;
140
141 LifeCycleLastTest m_lastTest;
142 bool m_lastTestHasBeenSet = false;
143
145 bool m_stateHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace mgn
150} // namespace Aws
void SetAddedToServiceDateTime(AddedToServiceDateTimeT &&value)
Definition LifeCycle.h:50
const LifeCycleLastCutover & GetLastCutover() const
Definition LifeCycle.h:83
LifeCycleState GetState() const
Definition LifeCycle.h:119
LifeCycle & WithFirstByteDateTime(FirstByteDateTimeT &&value)
Definition LifeCycle.h:76
void SetLastSeenByServiceDateTime(LastSeenByServiceDateTimeT &&value)
Definition LifeCycle.h:98
LifeCycle & WithState(LifeCycleState value)
Definition LifeCycle.h:122
LifeCycle & WithAddedToServiceDateTime(AddedToServiceDateTimeT &&value)
Definition LifeCycle.h:52
void SetFirstByteDateTime(FirstByteDateTimeT &&value)
Definition LifeCycle.h:74
LifeCycle & WithLastTest(LastTestT &&value)
Definition LifeCycle.h:112
bool ElapsedReplicationDurationHasBeenSet() const
Definition LifeCycle.h:60
void SetElapsedReplicationDuration(ElapsedReplicationDurationT &&value)
Definition LifeCycle.h:62
bool LastTestHasBeenSet() const
Definition LifeCycle.h:108
void SetLastCutover(LastCutoverT &&value)
Definition LifeCycle.h:86
bool LastCutoverHasBeenSet() const
Definition LifeCycle.h:84
LifeCycle & WithLastSeenByServiceDateTime(LastSeenByServiceDateTimeT &&value)
Definition LifeCycle.h:100
bool FirstByteDateTimeHasBeenSet() const
Definition LifeCycle.h:72
void SetState(LifeCycleState value)
Definition LifeCycle.h:121
const Aws::String & GetAddedToServiceDateTime() const
Definition LifeCycle.h:47
bool AddedToServiceDateTimeHasBeenSet() const
Definition LifeCycle.h:48
bool StateHasBeenSet() const
Definition LifeCycle.h:120
bool LastSeenByServiceDateTimeHasBeenSet() const
Definition LifeCycle.h:96
const Aws::String & GetFirstByteDateTime() const
Definition LifeCycle.h:71
const Aws::String & GetElapsedReplicationDuration() const
Definition LifeCycle.h:59
void SetLastTest(LastTestT &&value)
Definition LifeCycle.h:110
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:107
AWS_MGN_API LifeCycle()=default
const Aws::String & GetLastSeenByServiceDateTime() const
Definition LifeCycle.h:95
LifeCycle & WithLastCutover(LastCutoverT &&value)
Definition LifeCycle.h:88
LifeCycle & WithElapsedReplicationDuration(ElapsedReplicationDurationT &&value)
Definition LifeCycle.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue