AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
ReplicationBackfillProgress.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecr/ECR_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECR {
21namespace Model {
22
30 public:
31 AWS_ECR_API ReplicationBackfillProgress() = default;
35
37
41 inline int GetTotalReplicationCount() const { return m_totalReplicationCount; }
42 inline bool TotalReplicationCountHasBeenSet() const { return m_totalReplicationCountHasBeenSet; }
43 inline void SetTotalReplicationCount(int value) {
44 m_totalReplicationCountHasBeenSet = true;
45 m_totalReplicationCount = value;
46 }
49 return *this;
50 }
52
54
57 inline int GetCompletedReplicationCount() const { return m_completedReplicationCount; }
58 inline bool CompletedReplicationCountHasBeenSet() const { return m_completedReplicationCountHasBeenSet; }
59 inline void SetCompletedReplicationCount(int value) {
60 m_completedReplicationCountHasBeenSet = true;
61 m_completedReplicationCount = value;
62 }
65 return *this;
66 }
68
70
73 inline int GetFailedReplicationCount() const { return m_failedReplicationCount; }
74 inline bool FailedReplicationCountHasBeenSet() const { return m_failedReplicationCountHasBeenSet; }
75 inline void SetFailedReplicationCount(int value) {
76 m_failedReplicationCountHasBeenSet = true;
77 m_failedReplicationCount = value;
78 }
81 return *this;
82 }
84
86
91 inline const Aws::Vector<Aws::String>& GetFailureCodes() const { return m_failureCodes; }
92 inline bool FailureCodesHasBeenSet() const { return m_failureCodesHasBeenSet; }
93 template <typename FailureCodesT = Aws::Vector<Aws::String>>
94 void SetFailureCodes(FailureCodesT&& value) {
95 m_failureCodesHasBeenSet = true;
96 m_failureCodes = std::forward<FailureCodesT>(value);
97 }
98 template <typename FailureCodesT = Aws::Vector<Aws::String>>
100 SetFailureCodes(std::forward<FailureCodesT>(value));
101 return *this;
102 }
103 template <typename FailureCodesT = Aws::String>
105 m_failureCodesHasBeenSet = true;
106 m_failureCodes.emplace_back(std::forward<FailureCodesT>(value));
107 return *this;
108 }
110 private:
111 int m_totalReplicationCount{0};
112
113 int m_completedReplicationCount{0};
114
115 int m_failedReplicationCount{0};
116
117 Aws::Vector<Aws::String> m_failureCodes;
118 bool m_totalReplicationCountHasBeenSet = false;
119 bool m_completedReplicationCountHasBeenSet = false;
120 bool m_failedReplicationCountHasBeenSet = false;
121 bool m_failureCodesHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace ECR
126} // namespace Aws
AWS_ECR_API ReplicationBackfillProgress & operator=(Aws::Utils::Json::JsonView jsonValue)
ReplicationBackfillProgress & WithTotalReplicationCount(int value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
ReplicationBackfillProgress & AddFailureCodes(FailureCodesT &&value)
AWS_ECR_API ReplicationBackfillProgress()=default
ReplicationBackfillProgress & WithFailureCodes(FailureCodesT &&value)
ReplicationBackfillProgress & WithCompletedReplicationCount(int value)
const Aws::Vector< Aws::String > & GetFailureCodes() const
AWS_ECR_API ReplicationBackfillProgress(Aws::Utils::Json::JsonView jsonValue)
ReplicationBackfillProgress & WithFailedReplicationCount(int value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue