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/drs/Drs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/drs/model/LifeCycleLastLaunch.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace drs
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_DRS_API LifeCycle() = default;
36 AWS_DRS_API LifeCycle(Aws::Utils::Json::JsonView jsonValue);
39
40
42
45 inline const Aws::String& GetAddedToServiceDateTime() const { return m_addedToServiceDateTime; }
46 inline bool AddedToServiceDateTimeHasBeenSet() const { return m_addedToServiceDateTimeHasBeenSet; }
47 template<typename AddedToServiceDateTimeT = Aws::String>
48 void SetAddedToServiceDateTime(AddedToServiceDateTimeT&& value) { m_addedToServiceDateTimeHasBeenSet = true; m_addedToServiceDateTime = std::forward<AddedToServiceDateTimeT>(value); }
49 template<typename AddedToServiceDateTimeT = Aws::String>
50 LifeCycle& WithAddedToServiceDateTime(AddedToServiceDateTimeT&& value) { SetAddedToServiceDateTime(std::forward<AddedToServiceDateTimeT>(value)); return *this;}
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) { m_elapsedReplicationDurationHasBeenSet = true; m_elapsedReplicationDuration = std::forward<ElapsedReplicationDurationT>(value); }
61 template<typename ElapsedReplicationDurationT = Aws::String>
62 LifeCycle& WithElapsedReplicationDuration(ElapsedReplicationDurationT&& value) { SetElapsedReplicationDuration(std::forward<ElapsedReplicationDurationT>(value)); return *this;}
64
66
70 inline const Aws::String& GetFirstByteDateTime() const { return m_firstByteDateTime; }
71 inline bool FirstByteDateTimeHasBeenSet() const { return m_firstByteDateTimeHasBeenSet; }
72 template<typename FirstByteDateTimeT = Aws::String>
73 void SetFirstByteDateTime(FirstByteDateTimeT&& value) { m_firstByteDateTimeHasBeenSet = true; m_firstByteDateTime = std::forward<FirstByteDateTimeT>(value); }
74 template<typename FirstByteDateTimeT = Aws::String>
75 LifeCycle& WithFirstByteDateTime(FirstByteDateTimeT&& value) { SetFirstByteDateTime(std::forward<FirstByteDateTimeT>(value)); return *this;}
77
79
83 inline const LifeCycleLastLaunch& GetLastLaunch() const { return m_lastLaunch; }
84 inline bool LastLaunchHasBeenSet() const { return m_lastLaunchHasBeenSet; }
85 template<typename LastLaunchT = LifeCycleLastLaunch>
86 void SetLastLaunch(LastLaunchT&& value) { m_lastLaunchHasBeenSet = true; m_lastLaunch = std::forward<LastLaunchT>(value); }
87 template<typename LastLaunchT = LifeCycleLastLaunch>
88 LifeCycle& WithLastLaunch(LastLaunchT&& value) { SetLastLaunch(std::forward<LastLaunchT>(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 private:
103
104 Aws::String m_addedToServiceDateTime;
105 bool m_addedToServiceDateTimeHasBeenSet = false;
106
107 Aws::String m_elapsedReplicationDuration;
108 bool m_elapsedReplicationDurationHasBeenSet = false;
109
110 Aws::String m_firstByteDateTime;
111 bool m_firstByteDateTimeHasBeenSet = false;
112
113 LifeCycleLastLaunch m_lastLaunch;
114 bool m_lastLaunchHasBeenSet = false;
115
116 Aws::String m_lastSeenByServiceDateTime;
117 bool m_lastSeenByServiceDateTimeHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace drs
122} // namespace Aws
bool LastSeenByServiceDateTimeHasBeenSet() const
Definition LifeCycle.h:96
void SetFirstByteDateTime(FirstByteDateTimeT &&value)
Definition LifeCycle.h:73
const Aws::String & GetAddedToServiceDateTime() const
Definition LifeCycle.h:45
bool AddedToServiceDateTimeHasBeenSet() const
Definition LifeCycle.h:46
const Aws::String & GetLastSeenByServiceDateTime() const
Definition LifeCycle.h:95
bool LastLaunchHasBeenSet() const
Definition LifeCycle.h:84
AWS_DRS_API LifeCycle()=default
const Aws::String & GetElapsedReplicationDuration() const
Definition LifeCycle.h:57
LifeCycle & WithElapsedReplicationDuration(ElapsedReplicationDurationT &&value)
Definition LifeCycle.h:62
LifeCycle & WithAddedToServiceDateTime(AddedToServiceDateTimeT &&value)
Definition LifeCycle.h:50
void SetLastLaunch(LastLaunchT &&value)
Definition LifeCycle.h:86
LifeCycle & WithFirstByteDateTime(FirstByteDateTimeT &&value)
Definition LifeCycle.h:75
bool ElapsedReplicationDurationHasBeenSet() const
Definition LifeCycle.h:58
void SetLastSeenByServiceDateTime(LastSeenByServiceDateTimeT &&value)
Definition LifeCycle.h:98
LifeCycle & WithLastSeenByServiceDateTime(LastSeenByServiceDateTimeT &&value)
Definition LifeCycle.h:100
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:88
void SetElapsedReplicationDuration(ElapsedReplicationDurationT &&value)
Definition LifeCycle.h:60
void SetAddedToServiceDateTime(AddedToServiceDateTimeT &&value)
Definition LifeCycle.h:48
const Aws::String & GetFirstByteDateTime() const
Definition LifeCycle.h:70
AWS_DRS_API LifeCycle(Aws::Utils::Json::JsonView jsonValue)
const LifeCycleLastLaunch & GetLastLaunch() const
Definition LifeCycle.h:83
bool FirstByteDateTimeHasBeenSet() const
Definition LifeCycle.h:71
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue