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/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();
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 inline void SetAddedToServiceDateTime(const Aws::String& value) { m_addedToServiceDateTimeHasBeenSet = true; m_addedToServiceDateTime = value; }
48 inline void SetAddedToServiceDateTime(Aws::String&& value) { m_addedToServiceDateTimeHasBeenSet = true; m_addedToServiceDateTime = std::move(value); }
49 inline void SetAddedToServiceDateTime(const char* value) { m_addedToServiceDateTimeHasBeenSet = true; m_addedToServiceDateTime.assign(value); }
50 inline LifeCycle& WithAddedToServiceDateTime(const Aws::String& value) { SetAddedToServiceDateTime(value); return *this;}
51 inline LifeCycle& WithAddedToServiceDateTime(Aws::String&& value) { SetAddedToServiceDateTime(std::move(value)); return *this;}
52 inline LifeCycle& WithAddedToServiceDateTime(const char* value) { SetAddedToServiceDateTime(value); return *this;}
54
56
59 inline const Aws::String& GetElapsedReplicationDuration() const{ return m_elapsedReplicationDuration; }
60 inline bool ElapsedReplicationDurationHasBeenSet() const { return m_elapsedReplicationDurationHasBeenSet; }
61 inline void SetElapsedReplicationDuration(const Aws::String& value) { m_elapsedReplicationDurationHasBeenSet = true; m_elapsedReplicationDuration = value; }
62 inline void SetElapsedReplicationDuration(Aws::String&& value) { m_elapsedReplicationDurationHasBeenSet = true; m_elapsedReplicationDuration = std::move(value); }
63 inline void SetElapsedReplicationDuration(const char* value) { m_elapsedReplicationDurationHasBeenSet = true; m_elapsedReplicationDuration.assign(value); }
65 inline LifeCycle& WithElapsedReplicationDuration(Aws::String&& value) { SetElapsedReplicationDuration(std::move(value)); return *this;}
66 inline LifeCycle& WithElapsedReplicationDuration(const char* value) { SetElapsedReplicationDuration(value); return *this;}
68
70
74 inline const Aws::String& GetFirstByteDateTime() const{ return m_firstByteDateTime; }
75 inline bool FirstByteDateTimeHasBeenSet() const { return m_firstByteDateTimeHasBeenSet; }
76 inline void SetFirstByteDateTime(const Aws::String& value) { m_firstByteDateTimeHasBeenSet = true; m_firstByteDateTime = value; }
77 inline void SetFirstByteDateTime(Aws::String&& value) { m_firstByteDateTimeHasBeenSet = true; m_firstByteDateTime = std::move(value); }
78 inline void SetFirstByteDateTime(const char* value) { m_firstByteDateTimeHasBeenSet = true; m_firstByteDateTime.assign(value); }
79 inline LifeCycle& WithFirstByteDateTime(const Aws::String& value) { SetFirstByteDateTime(value); return *this;}
80 inline LifeCycle& WithFirstByteDateTime(Aws::String&& value) { SetFirstByteDateTime(std::move(value)); return *this;}
81 inline LifeCycle& WithFirstByteDateTime(const char* value) { SetFirstByteDateTime(value); return *this;}
83
85
89 inline const LifeCycleLastLaunch& GetLastLaunch() const{ return m_lastLaunch; }
90 inline bool LastLaunchHasBeenSet() const { return m_lastLaunchHasBeenSet; }
91 inline void SetLastLaunch(const LifeCycleLastLaunch& value) { m_lastLaunchHasBeenSet = true; m_lastLaunch = value; }
92 inline void SetLastLaunch(LifeCycleLastLaunch&& value) { m_lastLaunchHasBeenSet = true; m_lastLaunch = std::move(value); }
93 inline LifeCycle& WithLastLaunch(const LifeCycleLastLaunch& value) { SetLastLaunch(value); return *this;}
94 inline LifeCycle& WithLastLaunch(LifeCycleLastLaunch&& value) { SetLastLaunch(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 private:
111
112 Aws::String m_addedToServiceDateTime;
113 bool m_addedToServiceDateTimeHasBeenSet = false;
114
115 Aws::String m_elapsedReplicationDuration;
116 bool m_elapsedReplicationDurationHasBeenSet = false;
117
118 Aws::String m_firstByteDateTime;
119 bool m_firstByteDateTimeHasBeenSet = false;
120
121 LifeCycleLastLaunch m_lastLaunch;
122 bool m_lastLaunchHasBeenSet = false;
123
124 Aws::String m_lastSeenByServiceDateTime;
125 bool m_lastSeenByServiceDateTimeHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace drs
130} // namespace Aws
void SetAddedToServiceDateTime(const Aws::String &value)
Definition LifeCycle.h:47
bool LastSeenByServiceDateTimeHasBeenSet() const
Definition LifeCycle.h:102
void SetFirstByteDateTime(const Aws::String &value)
Definition LifeCycle.h:76
LifeCycle & WithElapsedReplicationDuration(const Aws::String &value)
Definition LifeCycle.h:64
const Aws::String & GetAddedToServiceDateTime() const
Definition LifeCycle.h:45
bool AddedToServiceDateTimeHasBeenSet() const
Definition LifeCycle.h:46
void SetLastSeenByServiceDateTime(const Aws::String &value)
Definition LifeCycle.h:103
const Aws::String & GetLastSeenByServiceDateTime() const
Definition LifeCycle.h:101
void SetElapsedReplicationDuration(const char *value)
Definition LifeCycle.h:63
bool LastLaunchHasBeenSet() const
Definition LifeCycle.h:90
void SetLastLaunch(LifeCycleLastLaunch &&value)
Definition LifeCycle.h:92
LifeCycle & WithAddedToServiceDateTime(const Aws::String &value)
Definition LifeCycle.h:50
void SetElapsedReplicationDuration(Aws::String &&value)
Definition LifeCycle.h:62
void SetLastLaunch(const LifeCycleLastLaunch &value)
Definition LifeCycle.h:91
const Aws::String & GetElapsedReplicationDuration() const
Definition LifeCycle.h:59
LifeCycle & WithLastSeenByServiceDateTime(const Aws::String &value)
Definition LifeCycle.h:106
void SetFirstByteDateTime(Aws::String &&value)
Definition LifeCycle.h:77
void SetAddedToServiceDateTime(const char *value)
Definition LifeCycle.h:49
LifeCycle & WithAddedToServiceDateTime(const char *value)
Definition LifeCycle.h:52
LifeCycle & WithLastLaunch(const LifeCycleLastLaunch &value)
Definition LifeCycle.h:93
bool ElapsedReplicationDurationHasBeenSet() const
Definition LifeCycle.h:60
void SetAddedToServiceDateTime(Aws::String &&value)
Definition LifeCycle.h:48
LifeCycle & WithFirstByteDateTime(const Aws::String &value)
Definition LifeCycle.h:79
AWS_DRS_API LifeCycle & operator=(Aws::Utils::Json::JsonView jsonValue)
LifeCycle & WithLastSeenByServiceDateTime(const char *value)
Definition LifeCycle.h:108
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
LifeCycle & WithAddedToServiceDateTime(Aws::String &&value)
Definition LifeCycle.h:51
LifeCycle & WithFirstByteDateTime(Aws::String &&value)
Definition LifeCycle.h:80
void SetFirstByteDateTime(const char *value)
Definition LifeCycle.h:78
void SetElapsedReplicationDuration(const Aws::String &value)
Definition LifeCycle.h:61
LifeCycle & WithLastLaunch(LifeCycleLastLaunch &&value)
Definition LifeCycle.h:94
const Aws::String & GetFirstByteDateTime() const
Definition LifeCycle.h:74
void SetLastSeenByServiceDateTime(Aws::String &&value)
Definition LifeCycle.h:104
LifeCycle & WithElapsedReplicationDuration(const char *value)
Definition LifeCycle.h:66
AWS_DRS_API LifeCycle(Aws::Utils::Json::JsonView jsonValue)
void SetLastSeenByServiceDateTime(const char *value)
Definition LifeCycle.h:105
LifeCycle & WithLastSeenByServiceDateTime(Aws::String &&value)
Definition LifeCycle.h:107
LifeCycle & WithElapsedReplicationDuration(Aws::String &&value)
Definition LifeCycle.h:65
LifeCycle & WithFirstByteDateTime(const char *value)
Definition LifeCycle.h:81
const LifeCycleLastLaunch & GetLastLaunch() const
Definition LifeCycle.h:89
bool FirstByteDateTimeHasBeenSet() const
Definition LifeCycle.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue