AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DataRepositoryTaskStatus.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/fsx/FSx_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace FSx {
20namespace Model {
21
30 public:
31 AWS_FSX_API DataRepositoryTaskStatus() = default;
35
37
44 inline long long GetTotalCount() const { return m_totalCount; }
45 inline bool TotalCountHasBeenSet() const { return m_totalCountHasBeenSet; }
46 inline void SetTotalCount(long long value) {
47 m_totalCountHasBeenSet = true;
48 m_totalCount = value;
49 }
50 inline DataRepositoryTaskStatus& WithTotalCount(long long value) {
51 SetTotalCount(value);
52 return *this;
53 }
55
57
61 inline long long GetSucceededCount() const { return m_succeededCount; }
62 inline bool SucceededCountHasBeenSet() const { return m_succeededCountHasBeenSet; }
63 inline void SetSucceededCount(long long value) {
64 m_succeededCountHasBeenSet = true;
65 m_succeededCount = value;
66 }
68 SetSucceededCount(value);
69 return *this;
70 }
72
74
77 inline long long GetFailedCount() const { return m_failedCount; }
78 inline bool FailedCountHasBeenSet() const { return m_failedCountHasBeenSet; }
79 inline void SetFailedCount(long long value) {
80 m_failedCountHasBeenSet = true;
81 m_failedCount = value;
82 }
83 inline DataRepositoryTaskStatus& WithFailedCount(long long value) {
84 SetFailedCount(value);
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
94 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
95 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
96 void SetLastUpdatedTime(LastUpdatedTimeT&& value) {
97 m_lastUpdatedTimeHasBeenSet = true;
98 m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value);
99 }
100 template <typename LastUpdatedTimeT = Aws::Utils::DateTime>
102 SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value));
103 return *this;
104 }
106
108
112 inline long long GetReleasedCapacity() const { return m_releasedCapacity; }
113 inline bool ReleasedCapacityHasBeenSet() const { return m_releasedCapacityHasBeenSet; }
114 inline void SetReleasedCapacity(long long value) {
115 m_releasedCapacityHasBeenSet = true;
116 m_releasedCapacity = value;
117 }
119 SetReleasedCapacity(value);
120 return *this;
121 }
123 private:
124 long long m_totalCount{0};
125
126 long long m_succeededCount{0};
127
128 long long m_failedCount{0};
129
130 Aws::Utils::DateTime m_lastUpdatedTime{};
131
132 long long m_releasedCapacity{0};
133 bool m_totalCountHasBeenSet = false;
134 bool m_succeededCountHasBeenSet = false;
135 bool m_failedCountHasBeenSet = false;
136 bool m_lastUpdatedTimeHasBeenSet = false;
137 bool m_releasedCapacityHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace FSx
142} // namespace Aws
AWS_FSX_API DataRepositoryTaskStatus(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
DataRepositoryTaskStatus & WithFailedCount(long long value)
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
DataRepositoryTaskStatus & WithSucceededCount(long long value)
DataRepositoryTaskStatus & WithReleasedCapacity(long long value)
AWS_FSX_API DataRepositoryTaskStatus()=default
DataRepositoryTaskStatus & WithLastUpdatedTime(LastUpdatedTimeT &&value)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FSX_API DataRepositoryTaskStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
DataRepositoryTaskStatus & WithTotalCount(long long value)
Aws::Utils::Json::JsonValue JsonValue