AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
ReplicationBackfillSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecr/ECR_EXPORTS.h>
10#include <aws/ecr/model/ReplicationBackfillProgress.h>
11#include <aws/ecr/model/ReplicationBackfillStatus.h>
12#include <aws/ecr/model/ReplicationDestination.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECR {
24namespace Model {
25
34 public:
35 AWS_ECR_API ReplicationBackfillSummary() = default;
39
41
44 inline const Aws::String& GetReplicationBackfillId() const { return m_replicationBackfillId; }
45 inline bool ReplicationBackfillIdHasBeenSet() const { return m_replicationBackfillIdHasBeenSet; }
46 template <typename ReplicationBackfillIdT = Aws::String>
47 void SetReplicationBackfillId(ReplicationBackfillIdT&& value) {
48 m_replicationBackfillIdHasBeenSet = true;
49 m_replicationBackfillId = std::forward<ReplicationBackfillIdT>(value);
50 }
51 template <typename ReplicationBackfillIdT = Aws::String>
52 ReplicationBackfillSummary& WithReplicationBackfillId(ReplicationBackfillIdT&& value) {
53 SetReplicationBackfillId(std::forward<ReplicationBackfillIdT>(value));
54 return *this;
55 }
57
59
62 inline const ReplicationDestination& GetDestination() const { return m_destination; }
63 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
64 template <typename DestinationT = ReplicationDestination>
65 void SetDestination(DestinationT&& value) {
66 m_destinationHasBeenSet = true;
67 m_destination = std::forward<DestinationT>(value);
68 }
69 template <typename DestinationT = ReplicationDestination>
71 SetDestination(std::forward<DestinationT>(value));
72 return *this;
73 }
75
77
80 inline ReplicationBackfillStatus GetStatus() const { return m_status; }
81 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
83 m_statusHasBeenSet = true;
84 m_status = value;
85 }
87 SetStatus(value);
88 return *this;
89 }
91
93
96 inline const Aws::String& GetFailureCode() const { return m_failureCode; }
97 inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; }
98 template <typename FailureCodeT = Aws::String>
99 void SetFailureCode(FailureCodeT&& value) {
100 m_failureCodeHasBeenSet = true;
101 m_failureCode = std::forward<FailureCodeT>(value);
102 }
103 template <typename FailureCodeT = Aws::String>
105 SetFailureCode(std::forward<FailureCodeT>(value));
106 return *this;
107 }
109
111
119 inline const ReplicationBackfillProgress& GetProgress() const { return m_progress; }
120 inline bool ProgressHasBeenSet() const { return m_progressHasBeenSet; }
121 template <typename ProgressT = ReplicationBackfillProgress>
122 void SetProgress(ProgressT&& value) {
123 m_progressHasBeenSet = true;
124 m_progress = std::forward<ProgressT>(value);
125 }
126 template <typename ProgressT = ReplicationBackfillProgress>
128 SetProgress(std::forward<ProgressT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
139 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
140 template <typename StartedAtT = Aws::Utils::DateTime>
141 void SetStartedAt(StartedAtT&& value) {
142 m_startedAtHasBeenSet = true;
143 m_startedAt = std::forward<StartedAtT>(value);
144 }
145 template <typename StartedAtT = Aws::Utils::DateTime>
147 SetStartedAt(std::forward<StartedAtT>(value));
148 return *this;
149 }
151
153
158 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
159 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
160 template <typename EndedAtT = Aws::Utils::DateTime>
161 void SetEndedAt(EndedAtT&& value) {
162 m_endedAtHasBeenSet = true;
163 m_endedAt = std::forward<EndedAtT>(value);
164 }
165 template <typename EndedAtT = Aws::Utils::DateTime>
167 SetEndedAt(std::forward<EndedAtT>(value));
168 return *this;
169 }
171 private:
172 Aws::String m_replicationBackfillId;
173
174 ReplicationDestination m_destination;
175
177
178 Aws::String m_failureCode;
179
180 ReplicationBackfillProgress m_progress;
181
182 Aws::Utils::DateTime m_startedAt{};
183
184 Aws::Utils::DateTime m_endedAt{};
185 bool m_replicationBackfillIdHasBeenSet = false;
186 bool m_destinationHasBeenSet = false;
187 bool m_statusHasBeenSet = false;
188 bool m_failureCodeHasBeenSet = false;
189 bool m_progressHasBeenSet = false;
190 bool m_startedAtHasBeenSet = false;
191 bool m_endedAtHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace ECR
196} // namespace Aws
const ReplicationDestination & GetDestination() const
const ReplicationBackfillProgress & GetProgress() const
ReplicationBackfillSummary & WithDestination(DestinationT &&value)
AWS_ECR_API ReplicationBackfillSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECR_API ReplicationBackfillSummary(Aws::Utils::Json::JsonView jsonValue)
ReplicationBackfillSummary & WithStartedAt(StartedAtT &&value)
AWS_ECR_API ReplicationBackfillSummary()=default
ReplicationBackfillSummary & WithFailureCode(FailureCodeT &&value)
void SetStatus(ReplicationBackfillStatus value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetEndedAt() const
const Aws::Utils::DateTime & GetStartedAt() const
ReplicationBackfillSummary & WithProgress(ProgressT &&value)
ReplicationBackfillSummary & WithEndedAt(EndedAtT &&value)
ReplicationBackfillSummary & WithReplicationBackfillId(ReplicationBackfillIdT &&value)
ReplicationBackfillSummary & WithStatus(ReplicationBackfillStatus value)
void SetReplicationBackfillId(ReplicationBackfillIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue