AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAddedToServiceDateTime(const Aws::String& value) { m_addedToServiceDateTimeHasBeenSet = true; m_addedToServiceDateTime = value; }
50 inline void SetAddedToServiceDateTime(Aws::String&& value) { m_addedToServiceDateTimeHasBeenSet = true; m_addedToServiceDateTime = std::move(value); }
51 inline void SetAddedToServiceDateTime(const char* value) { m_addedToServiceDateTimeHasBeenSet = true; m_addedToServiceDateTime.assign(value); }
52 inline LifeCycle& WithAddedToServiceDateTime(const Aws::String& value) { SetAddedToServiceDateTime(value); return *this;}
53 inline LifeCycle& WithAddedToServiceDateTime(Aws::String&& value) { SetAddedToServiceDateTime(std::move(value)); return *this;}
54 inline LifeCycle& WithAddedToServiceDateTime(const char* value) { SetAddedToServiceDateTime(value); return *this;}
56
58
61 inline const Aws::String& GetElapsedReplicationDuration() const{ return m_elapsedReplicationDuration; }
62 inline bool ElapsedReplicationDurationHasBeenSet() const { return m_elapsedReplicationDurationHasBeenSet; }
63 inline void SetElapsedReplicationDuration(const Aws::String& value) { m_elapsedReplicationDurationHasBeenSet = true; m_elapsedReplicationDuration = value; }
64 inline void SetElapsedReplicationDuration(Aws::String&& value) { m_elapsedReplicationDurationHasBeenSet = true; m_elapsedReplicationDuration = std::move(value); }
65 inline void SetElapsedReplicationDuration(const char* value) { m_elapsedReplicationDurationHasBeenSet = true; m_elapsedReplicationDuration.assign(value); }
67 inline LifeCycle& WithElapsedReplicationDuration(Aws::String&& value) { SetElapsedReplicationDuration(std::move(value)); return *this;}
68 inline LifeCycle& WithElapsedReplicationDuration(const char* value) { SetElapsedReplicationDuration(value); return *this;}
70
72
75 inline const Aws::String& GetFirstByteDateTime() const{ return m_firstByteDateTime; }
76 inline bool FirstByteDateTimeHasBeenSet() const { return m_firstByteDateTimeHasBeenSet; }
77 inline void SetFirstByteDateTime(const Aws::String& value) { m_firstByteDateTimeHasBeenSet = true; m_firstByteDateTime = value; }
78 inline void SetFirstByteDateTime(Aws::String&& value) { m_firstByteDateTimeHasBeenSet = true; m_firstByteDateTime = std::move(value); }
79 inline void SetFirstByteDateTime(const char* value) { m_firstByteDateTimeHasBeenSet = true; m_firstByteDateTime.assign(value); }
80 inline LifeCycle& WithFirstByteDateTime(const Aws::String& value) { SetFirstByteDateTime(value); return *this;}
81 inline LifeCycle& WithFirstByteDateTime(Aws::String&& value) { SetFirstByteDateTime(std::move(value)); return *this;}
82 inline LifeCycle& WithFirstByteDateTime(const char* value) { SetFirstByteDateTime(value); return *this;}
84
86
89 inline const LifeCycleLastCutover& GetLastCutover() const{ return m_lastCutover; }
90 inline bool LastCutoverHasBeenSet() const { return m_lastCutoverHasBeenSet; }
91 inline void SetLastCutover(const LifeCycleLastCutover& value) { m_lastCutoverHasBeenSet = true; m_lastCutover = value; }
92 inline void SetLastCutover(LifeCycleLastCutover&& value) { m_lastCutoverHasBeenSet = true; m_lastCutover = std::move(value); }
93 inline LifeCycle& WithLastCutover(const LifeCycleLastCutover& value) { SetLastCutover(value); return *this;}
94 inline LifeCycle& WithLastCutover(LifeCycleLastCutover&& value) { SetLastCutover(std::move(value)); return *this;}
96
98
101 inline const Aws::String& GetLastSeenByServiceDateTime() const{ return m_lastSeenByServiceDateTime; }
102 inline bool LastSeenByServiceDateTimeHasBeenSet() const { return m_lastSeenByServiceDateTimeHasBeenSet; }
103 inline void SetLastSeenByServiceDateTime(const Aws::String& value) { m_lastSeenByServiceDateTimeHasBeenSet = true; m_lastSeenByServiceDateTime = value; }
104 inline void SetLastSeenByServiceDateTime(Aws::String&& value) { m_lastSeenByServiceDateTimeHasBeenSet = true; m_lastSeenByServiceDateTime = std::move(value); }
105 inline void SetLastSeenByServiceDateTime(const char* value) { m_lastSeenByServiceDateTimeHasBeenSet = true; m_lastSeenByServiceDateTime.assign(value); }
107 inline LifeCycle& WithLastSeenByServiceDateTime(Aws::String&& value) { SetLastSeenByServiceDateTime(std::move(value)); return *this;}
108 inline LifeCycle& WithLastSeenByServiceDateTime(const char* value) { SetLastSeenByServiceDateTime(value); return *this;}
110
112
115 inline const LifeCycleLastTest& GetLastTest() const{ return m_lastTest; }
116 inline bool LastTestHasBeenSet() const { return m_lastTestHasBeenSet; }
117 inline void SetLastTest(const LifeCycleLastTest& value) { m_lastTestHasBeenSet = true; m_lastTest = value; }
118 inline void SetLastTest(LifeCycleLastTest&& value) { m_lastTestHasBeenSet = true; m_lastTest = std::move(value); }
119 inline LifeCycle& WithLastTest(const LifeCycleLastTest& value) { SetLastTest(value); return *this;}
120 inline LifeCycle& WithLastTest(LifeCycleLastTest&& value) { SetLastTest(std::move(value)); return *this;}
122
124
127 inline const LifeCycleState& GetState() const{ return m_state; }
128 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
129 inline void SetState(const LifeCycleState& value) { m_stateHasBeenSet = true; m_state = value; }
130 inline void SetState(LifeCycleState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
131 inline LifeCycle& WithState(const LifeCycleState& value) { SetState(value); return *this;}
132 inline LifeCycle& WithState(LifeCycleState&& value) { SetState(std::move(value)); return *this;}
134 private:
135
136 Aws::String m_addedToServiceDateTime;
137 bool m_addedToServiceDateTimeHasBeenSet = false;
138
139 Aws::String m_elapsedReplicationDuration;
140 bool m_elapsedReplicationDurationHasBeenSet = false;
141
142 Aws::String m_firstByteDateTime;
143 bool m_firstByteDateTimeHasBeenSet = false;
144
145 LifeCycleLastCutover m_lastCutover;
146 bool m_lastCutoverHasBeenSet = false;
147
148 Aws::String m_lastSeenByServiceDateTime;
149 bool m_lastSeenByServiceDateTimeHasBeenSet = false;
150
151 LifeCycleLastTest m_lastTest;
152 bool m_lastTestHasBeenSet = false;
153
154 LifeCycleState m_state;
155 bool m_stateHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace mgn
160} // namespace Aws
void SetLastSeenByServiceDateTime(Aws::String &&value)
Definition LifeCycle.h:104
void SetState(const LifeCycleState &value)
Definition LifeCycle.h:129
LifeCycle & WithFirstByteDateTime(const Aws::String &value)
Definition LifeCycle.h:80
const LifeCycleLastCutover & GetLastCutover() const
Definition LifeCycle.h:89
LifeCycle & WithElapsedReplicationDuration(const char *value)
Definition LifeCycle.h:68
void SetFirstByteDateTime(const Aws::String &value)
Definition LifeCycle.h:77
LifeCycle & WithLastTest(LifeCycleLastTest &&value)
Definition LifeCycle.h:120
LifeCycle & WithAddedToServiceDateTime(const Aws::String &value)
Definition LifeCycle.h:52
void SetLastCutover(const LifeCycleLastCutover &value)
Definition LifeCycle.h:91
void SetLastCutover(LifeCycleLastCutover &&value)
Definition LifeCycle.h:92
bool ElapsedReplicationDurationHasBeenSet() const
Definition LifeCycle.h:62
bool LastTestHasBeenSet() const
Definition LifeCycle.h:116
LifeCycle & WithElapsedReplicationDuration(Aws::String &&value)
Definition LifeCycle.h:67
void SetAddedToServiceDateTime(Aws::String &&value)
Definition LifeCycle.h:50
bool LastCutoverHasBeenSet() const
Definition LifeCycle.h:90
void SetLastTest(const LifeCycleLastTest &value)
Definition LifeCycle.h:117
LifeCycle & WithLastCutover(const LifeCycleLastCutover &value)
Definition LifeCycle.h:93
bool FirstByteDateTimeHasBeenSet() const
Definition LifeCycle.h:76
LifeCycle & WithState(const LifeCycleState &value)
Definition LifeCycle.h:131
void SetLastSeenByServiceDateTime(const char *value)
Definition LifeCycle.h:105
const Aws::String & GetAddedToServiceDateTime() const
Definition LifeCycle.h:47
LifeCycle & WithElapsedReplicationDuration(const Aws::String &value)
Definition LifeCycle.h:66
LifeCycle & WithAddedToServiceDateTime(Aws::String &&value)
Definition LifeCycle.h:53
LifeCycle & WithLastSeenByServiceDateTime(const char *value)
Definition LifeCycle.h:108
void SetElapsedReplicationDuration(const Aws::String &value)
Definition LifeCycle.h:63
bool AddedToServiceDateTimeHasBeenSet() const
Definition LifeCycle.h:48
LifeCycle & WithFirstByteDateTime(const char *value)
Definition LifeCycle.h:82
bool StateHasBeenSet() const
Definition LifeCycle.h:128
bool LastSeenByServiceDateTimeHasBeenSet() const
Definition LifeCycle.h:102
void SetFirstByteDateTime(Aws::String &&value)
Definition LifeCycle.h:78
void SetState(LifeCycleState &&value)
Definition LifeCycle.h:130
void SetElapsedReplicationDuration(const char *value)
Definition LifeCycle.h:65
const LifeCycleState & GetState() const
Definition LifeCycle.h:127
LifeCycle & WithLastSeenByServiceDateTime(Aws::String &&value)
Definition LifeCycle.h:107
void SetAddedToServiceDateTime(const Aws::String &value)
Definition LifeCycle.h:49
const Aws::String & GetFirstByteDateTime() const
Definition LifeCycle.h:75
const Aws::String & GetElapsedReplicationDuration() const
Definition LifeCycle.h:61
LifeCycle & WithLastCutover(LifeCycleLastCutover &&value)
Definition LifeCycle.h:94
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MGN_API LifeCycle & operator=(Aws::Utils::Json::JsonView jsonValue)
LifeCycle & WithState(LifeCycleState &&value)
Definition LifeCycle.h:132
void SetLastTest(LifeCycleLastTest &&value)
Definition LifeCycle.h:118
AWS_MGN_API LifeCycle(Aws::Utils::Json::JsonView jsonValue)
LifeCycle & WithAddedToServiceDateTime(const char *value)
Definition LifeCycle.h:54
const LifeCycleLastTest & GetLastTest() const
Definition LifeCycle.h:115
void SetElapsedReplicationDuration(Aws::String &&value)
Definition LifeCycle.h:64
LifeCycle & WithLastSeenByServiceDateTime(const Aws::String &value)
Definition LifeCycle.h:106
LifeCycle & WithFirstByteDateTime(Aws::String &&value)
Definition LifeCycle.h:81
void SetAddedToServiceDateTime(const char *value)
Definition LifeCycle.h:51
const Aws::String & GetLastSeenByServiceDateTime() const
Definition LifeCycle.h:101
LifeCycle & WithLastTest(const LifeCycleLastTest &value)
Definition LifeCycle.h:119
void SetLastSeenByServiceDateTime(const Aws::String &value)
Definition LifeCycle.h:103
void SetFirstByteDateTime(const char *value)
Definition LifeCycle.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue