AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DataReplicationInfo.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/mgn/model/DataReplicationError.h>
9#include <aws/mgn/model/DataReplicationInitiation.h>
10#include <aws/mgn/model/DataReplicationState.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/mgn/model/DataReplicationInfoReplicatedDisk.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace mgn
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_MGN_API DataReplicationInfo();
43
44
46
49 inline const DataReplicationError& GetDataReplicationError() const{ return m_dataReplicationError; }
50 inline bool DataReplicationErrorHasBeenSet() const { return m_dataReplicationErrorHasBeenSet; }
51 inline void SetDataReplicationError(const DataReplicationError& value) { m_dataReplicationErrorHasBeenSet = true; m_dataReplicationError = value; }
52 inline void SetDataReplicationError(DataReplicationError&& value) { m_dataReplicationErrorHasBeenSet = true; m_dataReplicationError = std::move(value); }
56
58
61 inline const DataReplicationInitiation& GetDataReplicationInitiation() const{ return m_dataReplicationInitiation; }
62 inline bool DataReplicationInitiationHasBeenSet() const { return m_dataReplicationInitiationHasBeenSet; }
63 inline void SetDataReplicationInitiation(const DataReplicationInitiation& value) { m_dataReplicationInitiationHasBeenSet = true; m_dataReplicationInitiation = value; }
64 inline void SetDataReplicationInitiation(DataReplicationInitiation&& value) { m_dataReplicationInitiationHasBeenSet = true; m_dataReplicationInitiation = std::move(value); }
68
70
73 inline const DataReplicationState& GetDataReplicationState() const{ return m_dataReplicationState; }
74 inline bool DataReplicationStateHasBeenSet() const { return m_dataReplicationStateHasBeenSet; }
75 inline void SetDataReplicationState(const DataReplicationState& value) { m_dataReplicationStateHasBeenSet = true; m_dataReplicationState = value; }
76 inline void SetDataReplicationState(DataReplicationState&& value) { m_dataReplicationStateHasBeenSet = true; m_dataReplicationState = std::move(value); }
80
82
85 inline const Aws::String& GetEtaDateTime() const{ return m_etaDateTime; }
86 inline bool EtaDateTimeHasBeenSet() const { return m_etaDateTimeHasBeenSet; }
87 inline void SetEtaDateTime(const Aws::String& value) { m_etaDateTimeHasBeenSet = true; m_etaDateTime = value; }
88 inline void SetEtaDateTime(Aws::String&& value) { m_etaDateTimeHasBeenSet = true; m_etaDateTime = std::move(value); }
89 inline void SetEtaDateTime(const char* value) { m_etaDateTimeHasBeenSet = true; m_etaDateTime.assign(value); }
90 inline DataReplicationInfo& WithEtaDateTime(const Aws::String& value) { SetEtaDateTime(value); return *this;}
91 inline DataReplicationInfo& WithEtaDateTime(Aws::String&& value) { SetEtaDateTime(std::move(value)); return *this;}
92 inline DataReplicationInfo& WithEtaDateTime(const char* value) { SetEtaDateTime(value); return *this;}
94
96
99 inline const Aws::String& GetLagDuration() const{ return m_lagDuration; }
100 inline bool LagDurationHasBeenSet() const { return m_lagDurationHasBeenSet; }
101 inline void SetLagDuration(const Aws::String& value) { m_lagDurationHasBeenSet = true; m_lagDuration = value; }
102 inline void SetLagDuration(Aws::String&& value) { m_lagDurationHasBeenSet = true; m_lagDuration = std::move(value); }
103 inline void SetLagDuration(const char* value) { m_lagDurationHasBeenSet = true; m_lagDuration.assign(value); }
104 inline DataReplicationInfo& WithLagDuration(const Aws::String& value) { SetLagDuration(value); return *this;}
105 inline DataReplicationInfo& WithLagDuration(Aws::String&& value) { SetLagDuration(std::move(value)); return *this;}
106 inline DataReplicationInfo& WithLagDuration(const char* value) { SetLagDuration(value); return *this;}
108
110
113 inline const Aws::String& GetLastSnapshotDateTime() const{ return m_lastSnapshotDateTime; }
114 inline bool LastSnapshotDateTimeHasBeenSet() const { return m_lastSnapshotDateTimeHasBeenSet; }
115 inline void SetLastSnapshotDateTime(const Aws::String& value) { m_lastSnapshotDateTimeHasBeenSet = true; m_lastSnapshotDateTime = value; }
116 inline void SetLastSnapshotDateTime(Aws::String&& value) { m_lastSnapshotDateTimeHasBeenSet = true; m_lastSnapshotDateTime = std::move(value); }
117 inline void SetLastSnapshotDateTime(const char* value) { m_lastSnapshotDateTimeHasBeenSet = true; m_lastSnapshotDateTime.assign(value); }
119 inline DataReplicationInfo& WithLastSnapshotDateTime(Aws::String&& value) { SetLastSnapshotDateTime(std::move(value)); return *this;}
120 inline DataReplicationInfo& WithLastSnapshotDateTime(const char* value) { SetLastSnapshotDateTime(value); return *this;}
122
124
127 inline const Aws::Vector<DataReplicationInfoReplicatedDisk>& GetReplicatedDisks() const{ return m_replicatedDisks; }
128 inline bool ReplicatedDisksHasBeenSet() const { return m_replicatedDisksHasBeenSet; }
129 inline void SetReplicatedDisks(const Aws::Vector<DataReplicationInfoReplicatedDisk>& value) { m_replicatedDisksHasBeenSet = true; m_replicatedDisks = value; }
130 inline void SetReplicatedDisks(Aws::Vector<DataReplicationInfoReplicatedDisk>&& value) { m_replicatedDisksHasBeenSet = true; m_replicatedDisks = std::move(value); }
133 inline DataReplicationInfo& AddReplicatedDisks(const DataReplicationInfoReplicatedDisk& value) { m_replicatedDisksHasBeenSet = true; m_replicatedDisks.push_back(value); return *this; }
134 inline DataReplicationInfo& AddReplicatedDisks(DataReplicationInfoReplicatedDisk&& value) { m_replicatedDisksHasBeenSet = true; m_replicatedDisks.push_back(std::move(value)); return *this; }
136 private:
137
138 DataReplicationError m_dataReplicationError;
139 bool m_dataReplicationErrorHasBeenSet = false;
140
141 DataReplicationInitiation m_dataReplicationInitiation;
142 bool m_dataReplicationInitiationHasBeenSet = false;
143
144 DataReplicationState m_dataReplicationState;
145 bool m_dataReplicationStateHasBeenSet = false;
146
147 Aws::String m_etaDateTime;
148 bool m_etaDateTimeHasBeenSet = false;
149
150 Aws::String m_lagDuration;
151 bool m_lagDurationHasBeenSet = false;
152
153 Aws::String m_lastSnapshotDateTime;
154 bool m_lastSnapshotDateTimeHasBeenSet = false;
155
157 bool m_replicatedDisksHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace mgn
162} // namespace Aws
DataReplicationInfo & AddReplicatedDisks(const DataReplicationInfoReplicatedDisk &value)
const DataReplicationState & GetDataReplicationState() const
void SetLagDuration(const Aws::String &value)
DataReplicationInfo & WithEtaDateTime(const char *value)
const Aws::Vector< DataReplicationInfoReplicatedDisk > & GetReplicatedDisks() const
DataReplicationInfo & WithDataReplicationState(DataReplicationState &&value)
void SetDataReplicationError(const DataReplicationError &value)
AWS_MGN_API DataReplicationInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
const DataReplicationInitiation & GetDataReplicationInitiation() const
DataReplicationInfo & WithDataReplicationState(const DataReplicationState &value)
void SetLastSnapshotDateTime(Aws::String &&value)
DataReplicationInfo & WithDataReplicationError(DataReplicationError &&value)
DataReplicationInfo & WithDataReplicationInitiation(DataReplicationInitiation &&value)
DataReplicationInfo & WithEtaDateTime(const Aws::String &value)
AWS_MGN_API DataReplicationInfo(Aws::Utils::Json::JsonView jsonValue)
DataReplicationInfo & WithEtaDateTime(Aws::String &&value)
const Aws::String & GetLagDuration() const
void SetDataReplicationError(DataReplicationError &&value)
void SetLastSnapshotDateTime(const Aws::String &value)
DataReplicationInfo & WithLastSnapshotDateTime(Aws::String &&value)
void SetDataReplicationState(DataReplicationState &&value)
const Aws::String & GetLastSnapshotDateTime() const
const Aws::String & GetEtaDateTime() const
DataReplicationInfo & AddReplicatedDisks(DataReplicationInfoReplicatedDisk &&value)
DataReplicationInfo & WithLagDuration(const Aws::String &value)
void SetEtaDateTime(Aws::String &&value)
DataReplicationInfo & WithLagDuration(Aws::String &&value)
void SetReplicatedDisks(const Aws::Vector< DataReplicationInfoReplicatedDisk > &value)
void SetDataReplicationInitiation(DataReplicationInitiation &&value)
DataReplicationInfo & WithReplicatedDisks(Aws::Vector< DataReplicationInfoReplicatedDisk > &&value)
DataReplicationInfo & WithDataReplicationInitiation(const DataReplicationInitiation &value)
DataReplicationInfo & WithLagDuration(const char *value)
DataReplicationInfo & WithDataReplicationError(const DataReplicationError &value)
DataReplicationInfo & WithReplicatedDisks(const Aws::Vector< DataReplicationInfoReplicatedDisk > &value)
void SetLastSnapshotDateTime(const char *value)
DataReplicationInfo & WithLastSnapshotDateTime(const char *value)
void SetDataReplicationInitiation(const DataReplicationInitiation &value)
void SetReplicatedDisks(Aws::Vector< DataReplicationInfoReplicatedDisk > &&value)
void SetDataReplicationState(const DataReplicationState &value)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
const DataReplicationError & GetDataReplicationError() const
void SetEtaDateTime(const Aws::String &value)
DataReplicationInfo & WithLastSnapshotDateTime(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue