AWS SDK for C++

AWS SDK for C++ Version 1.11.887

Loading...
Searching...
No Matches
UploadProgress.h
1
6#pragma once
7#include <aws/support/Support_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Support {
17namespace Model {
18
26 public:
27 AWS_SUPPORT_API UploadProgress() = default;
28 AWS_SUPPORT_API UploadProgress(Aws::Utils::Json::JsonView jsonValue);
30 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline int GetTotalParts() const { return m_totalParts; }
37 inline bool TotalPartsHasBeenSet() const { return m_totalPartsHasBeenSet; }
38 inline void SetTotalParts(int value) {
39 m_totalPartsHasBeenSet = true;
40 m_totalParts = value;
41 }
42 inline UploadProgress& WithTotalParts(int value) {
43 SetTotalParts(value);
44 return *this;
45 }
47
49
52 inline int GetCompletedPartsCount() const { return m_completedPartsCount; }
53 inline bool CompletedPartsCountHasBeenSet() const { return m_completedPartsCountHasBeenSet; }
54 inline void SetCompletedPartsCount(int value) {
55 m_completedPartsCountHasBeenSet = true;
56 m_completedPartsCount = value;
57 }
60 return *this;
61 }
63 private:
64 int m_totalParts{0};
65
66 int m_completedPartsCount{0};
67 bool m_totalPartsHasBeenSet = false;
68 bool m_completedPartsCountHasBeenSet = false;
69};
70
71} // namespace Model
72} // namespace Support
73} // namespace Aws
AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SUPPORT_API UploadProgress()=default
AWS_SUPPORT_API UploadProgress & operator=(Aws::Utils::Json::JsonView jsonValue)
UploadProgress & WithTotalParts(int value)
UploadProgress & WithCompletedPartsCount(int value)
AWS_SUPPORT_API UploadProgress(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue