AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
LifeCycle.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/drs/Drs_EXPORTS.h>
9#include <aws/drs/model/LifeCycleLastLaunch.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace drs {
21namespace Model {
22
28class LifeCycle {
29 public:
30 AWS_DRS_API LifeCycle() = default;
31 AWS_DRS_API LifeCycle(Aws::Utils::Json::JsonView jsonValue);
34
36
39 inline const Aws::String& GetAddedToServiceDateTime() const { return m_addedToServiceDateTime; }
40 inline bool AddedToServiceDateTimeHasBeenSet() const { return m_addedToServiceDateTimeHasBeenSet; }
41 template <typename AddedToServiceDateTimeT = Aws::String>
42 void SetAddedToServiceDateTime(AddedToServiceDateTimeT&& value) {
43 m_addedToServiceDateTimeHasBeenSet = true;
44 m_addedToServiceDateTime = std::forward<AddedToServiceDateTimeT>(value);
45 }
46 template <typename AddedToServiceDateTimeT = Aws::String>
47 LifeCycle& WithAddedToServiceDateTime(AddedToServiceDateTimeT&& value) {
48 SetAddedToServiceDateTime(std::forward<AddedToServiceDateTimeT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetFirstByteDateTime() const { return m_firstByteDateTime; }
59 inline bool FirstByteDateTimeHasBeenSet() const { return m_firstByteDateTimeHasBeenSet; }
60 template <typename FirstByteDateTimeT = Aws::String>
61 void SetFirstByteDateTime(FirstByteDateTimeT&& value) {
62 m_firstByteDateTimeHasBeenSet = true;
63 m_firstByteDateTime = std::forward<FirstByteDateTimeT>(value);
64 }
65 template <typename FirstByteDateTimeT = Aws::String>
66 LifeCycle& WithFirstByteDateTime(FirstByteDateTimeT&& value) {
67 SetFirstByteDateTime(std::forward<FirstByteDateTimeT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetElapsedReplicationDuration() const { return m_elapsedReplicationDuration; }
77 inline bool ElapsedReplicationDurationHasBeenSet() const { return m_elapsedReplicationDurationHasBeenSet; }
78 template <typename ElapsedReplicationDurationT = Aws::String>
79 void SetElapsedReplicationDuration(ElapsedReplicationDurationT&& value) {
80 m_elapsedReplicationDurationHasBeenSet = true;
81 m_elapsedReplicationDuration = std::forward<ElapsedReplicationDurationT>(value);
82 }
83 template <typename ElapsedReplicationDurationT = Aws::String>
84 LifeCycle& WithElapsedReplicationDuration(ElapsedReplicationDurationT&& value) {
85 SetElapsedReplicationDuration(std::forward<ElapsedReplicationDurationT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetLastSeenByServiceDateTime() const { return m_lastSeenByServiceDateTime; }
95 inline bool LastSeenByServiceDateTimeHasBeenSet() const { return m_lastSeenByServiceDateTimeHasBeenSet; }
96 template <typename LastSeenByServiceDateTimeT = Aws::String>
97 void SetLastSeenByServiceDateTime(LastSeenByServiceDateTimeT&& value) {
98 m_lastSeenByServiceDateTimeHasBeenSet = true;
99 m_lastSeenByServiceDateTime = std::forward<LastSeenByServiceDateTimeT>(value);
100 }
101 template <typename LastSeenByServiceDateTimeT = Aws::String>
102 LifeCycle& WithLastSeenByServiceDateTime(LastSeenByServiceDateTimeT&& value) {
103 SetLastSeenByServiceDateTime(std::forward<LastSeenByServiceDateTimeT>(value));
104 return *this;
105 }
107
109
113 inline const LifeCycleLastLaunch& GetLastLaunch() const { return m_lastLaunch; }
114 inline bool LastLaunchHasBeenSet() const { return m_lastLaunchHasBeenSet; }
115 template <typename LastLaunchT = LifeCycleLastLaunch>
116 void SetLastLaunch(LastLaunchT&& value) {
117 m_lastLaunchHasBeenSet = true;
118 m_lastLaunch = std::forward<LastLaunchT>(value);
119 }
120 template <typename LastLaunchT = LifeCycleLastLaunch>
121 LifeCycle& WithLastLaunch(LastLaunchT&& value) {
122 SetLastLaunch(std::forward<LastLaunchT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_addedToServiceDateTime;
128
129 Aws::String m_firstByteDateTime;
130
131 Aws::String m_elapsedReplicationDuration;
132
133 Aws::String m_lastSeenByServiceDateTime;
134
135 LifeCycleLastLaunch m_lastLaunch;
136 bool m_addedToServiceDateTimeHasBeenSet = false;
137 bool m_firstByteDateTimeHasBeenSet = false;
138 bool m_elapsedReplicationDurationHasBeenSet = false;
139 bool m_lastSeenByServiceDateTimeHasBeenSet = false;
140 bool m_lastLaunchHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace drs
145} // namespace Aws
bool LastSeenByServiceDateTimeHasBeenSet() const
Definition LifeCycle.h:95
void SetFirstByteDateTime(FirstByteDateTimeT &&value)
Definition LifeCycle.h:61
const Aws::String & GetAddedToServiceDateTime() const
Definition LifeCycle.h:39
bool AddedToServiceDateTimeHasBeenSet() const
Definition LifeCycle.h:40
const Aws::String & GetLastSeenByServiceDateTime() const
Definition LifeCycle.h:94
bool LastLaunchHasBeenSet() const
Definition LifeCycle.h:114
AWS_DRS_API LifeCycle()=default
const Aws::String & GetElapsedReplicationDuration() const
Definition LifeCycle.h:76
LifeCycle & WithElapsedReplicationDuration(ElapsedReplicationDurationT &&value)
Definition LifeCycle.h:84
LifeCycle & WithAddedToServiceDateTime(AddedToServiceDateTimeT &&value)
Definition LifeCycle.h:47
void SetLastLaunch(LastLaunchT &&value)
Definition LifeCycle.h:116
LifeCycle & WithFirstByteDateTime(FirstByteDateTimeT &&value)
Definition LifeCycle.h:66
bool ElapsedReplicationDurationHasBeenSet() const
Definition LifeCycle.h:77
void SetLastSeenByServiceDateTime(LastSeenByServiceDateTimeT &&value)
Definition LifeCycle.h:97
LifeCycle & WithLastSeenByServiceDateTime(LastSeenByServiceDateTimeT &&value)
Definition LifeCycle.h:102
AWS_DRS_API LifeCycle & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
LifeCycle & WithLastLaunch(LastLaunchT &&value)
Definition LifeCycle.h:121
void SetElapsedReplicationDuration(ElapsedReplicationDurationT &&value)
Definition LifeCycle.h:79
void SetAddedToServiceDateTime(AddedToServiceDateTimeT &&value)
Definition LifeCycle.h:42
const Aws::String & GetFirstByteDateTime() const
Definition LifeCycle.h:58
AWS_DRS_API LifeCycle(Aws::Utils::Json::JsonView jsonValue)
const LifeCycleLastLaunch & GetLastLaunch() const
Definition LifeCycle.h:113
bool FirstByteDateTimeHasBeenSet() const
Definition LifeCycle.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue