AWS SDK for C++

AWS SDK for C++ Version 1.11.741

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
57 inline const Aws::String& GetElapsedReplicationDuration() const { return m_elapsedReplicationDuration; }
58 inline bool ElapsedReplicationDurationHasBeenSet() const { return m_elapsedReplicationDurationHasBeenSet; }
59 template <typename ElapsedReplicationDurationT = Aws::String>
60 void SetElapsedReplicationDuration(ElapsedReplicationDurationT&& value) {
61 m_elapsedReplicationDurationHasBeenSet = true;
62 m_elapsedReplicationDuration = std::forward<ElapsedReplicationDurationT>(value);
63 }
64 template <typename ElapsedReplicationDurationT = Aws::String>
65 LifeCycle& WithElapsedReplicationDuration(ElapsedReplicationDurationT&& value) {
66 SetElapsedReplicationDuration(std::forward<ElapsedReplicationDurationT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetFirstByteDateTime() const { return m_firstByteDateTime; }
77 inline bool FirstByteDateTimeHasBeenSet() const { return m_firstByteDateTimeHasBeenSet; }
78 template <typename FirstByteDateTimeT = Aws::String>
79 void SetFirstByteDateTime(FirstByteDateTimeT&& value) {
80 m_firstByteDateTimeHasBeenSet = true;
81 m_firstByteDateTime = std::forward<FirstByteDateTimeT>(value);
82 }
83 template <typename FirstByteDateTimeT = Aws::String>
84 LifeCycle& WithFirstByteDateTime(FirstByteDateTimeT&& value) {
85 SetFirstByteDateTime(std::forward<FirstByteDateTimeT>(value));
86 return *this;
87 }
89
91
95 inline const LifeCycleLastLaunch& GetLastLaunch() const { return m_lastLaunch; }
96 inline bool LastLaunchHasBeenSet() const { return m_lastLaunchHasBeenSet; }
97 template <typename LastLaunchT = LifeCycleLastLaunch>
98 void SetLastLaunch(LastLaunchT&& value) {
99 m_lastLaunchHasBeenSet = true;
100 m_lastLaunch = std::forward<LastLaunchT>(value);
101 }
102 template <typename LastLaunchT = LifeCycleLastLaunch>
103 LifeCycle& WithLastLaunch(LastLaunchT&& value) {
104 SetLastLaunch(std::forward<LastLaunchT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetLastSeenByServiceDateTime() const { return m_lastSeenByServiceDateTime; }
114 inline bool LastSeenByServiceDateTimeHasBeenSet() const { return m_lastSeenByServiceDateTimeHasBeenSet; }
115 template <typename LastSeenByServiceDateTimeT = Aws::String>
116 void SetLastSeenByServiceDateTime(LastSeenByServiceDateTimeT&& value) {
117 m_lastSeenByServiceDateTimeHasBeenSet = true;
118 m_lastSeenByServiceDateTime = std::forward<LastSeenByServiceDateTimeT>(value);
119 }
120 template <typename LastSeenByServiceDateTimeT = Aws::String>
121 LifeCycle& WithLastSeenByServiceDateTime(LastSeenByServiceDateTimeT&& value) {
122 SetLastSeenByServiceDateTime(std::forward<LastSeenByServiceDateTimeT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_addedToServiceDateTime;
128
129 Aws::String m_elapsedReplicationDuration;
130
131 Aws::String m_firstByteDateTime;
132
133 LifeCycleLastLaunch m_lastLaunch;
134
135 Aws::String m_lastSeenByServiceDateTime;
136 bool m_addedToServiceDateTimeHasBeenSet = false;
137 bool m_elapsedReplicationDurationHasBeenSet = false;
138 bool m_firstByteDateTimeHasBeenSet = false;
139 bool m_lastLaunchHasBeenSet = false;
140 bool m_lastSeenByServiceDateTimeHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace drs
145} // namespace Aws
bool LastSeenByServiceDateTimeHasBeenSet() const
Definition LifeCycle.h:114
void SetFirstByteDateTime(FirstByteDateTimeT &&value)
Definition LifeCycle.h:79
const Aws::String & GetAddedToServiceDateTime() const
Definition LifeCycle.h:39
bool AddedToServiceDateTimeHasBeenSet() const
Definition LifeCycle.h:40
const Aws::String & GetLastSeenByServiceDateTime() const
Definition LifeCycle.h:113
bool LastLaunchHasBeenSet() const
Definition LifeCycle.h:96
AWS_DRS_API LifeCycle()=default
const Aws::String & GetElapsedReplicationDuration() const
Definition LifeCycle.h:57
LifeCycle & WithElapsedReplicationDuration(ElapsedReplicationDurationT &&value)
Definition LifeCycle.h:65
LifeCycle & WithAddedToServiceDateTime(AddedToServiceDateTimeT &&value)
Definition LifeCycle.h:47
void SetLastLaunch(LastLaunchT &&value)
Definition LifeCycle.h:98
LifeCycle & WithFirstByteDateTime(FirstByteDateTimeT &&value)
Definition LifeCycle.h:84
bool ElapsedReplicationDurationHasBeenSet() const
Definition LifeCycle.h:58
void SetLastSeenByServiceDateTime(LastSeenByServiceDateTimeT &&value)
Definition LifeCycle.h:116
LifeCycle & WithLastSeenByServiceDateTime(LastSeenByServiceDateTimeT &&value)
Definition LifeCycle.h:121
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:103
void SetElapsedReplicationDuration(ElapsedReplicationDurationT &&value)
Definition LifeCycle.h:60
void SetAddedToServiceDateTime(AddedToServiceDateTimeT &&value)
Definition LifeCycle.h:42
const Aws::String & GetFirstByteDateTime() const
Definition LifeCycle.h:76
AWS_DRS_API LifeCycle(Aws::Utils::Json::JsonView jsonValue)
const LifeCycleLastLaunch & GetLastLaunch() const
Definition LifeCycle.h:95
bool FirstByteDateTimeHasBeenSet() const
Definition LifeCycle.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue