AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Progress.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Xml {
12class XmlNode;
13} // namespace Xml
14} // namespace Utils
15namespace S3 {
16namespace Model {
17
24class Progress {
25 public:
26 AWS_S3_API Progress() = default;
27 AWS_S3_API Progress(const Aws::Utils::Xml::XmlNode& xmlNode);
28 AWS_S3_API Progress& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
29
30 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
31
33
36 inline long long GetBytesScanned() const { return m_bytesScanned; }
37 inline bool BytesScannedHasBeenSet() const { return m_bytesScannedHasBeenSet; }
38 inline void SetBytesScanned(long long value) {
39 m_bytesScannedHasBeenSet = true;
40 m_bytesScanned = value;
41 }
42 inline Progress& WithBytesScanned(long long value) {
43 SetBytesScanned(value);
44 return *this;
45 }
47
49
52 inline long long GetBytesProcessed() const { return m_bytesProcessed; }
53 inline bool BytesProcessedHasBeenSet() const { return m_bytesProcessedHasBeenSet; }
54 inline void SetBytesProcessed(long long value) {
55 m_bytesProcessedHasBeenSet = true;
56 m_bytesProcessed = value;
57 }
58 inline Progress& WithBytesProcessed(long long value) {
59 SetBytesProcessed(value);
60 return *this;
61 }
63
65
68 inline long long GetBytesReturned() const { return m_bytesReturned; }
69 inline bool BytesReturnedHasBeenSet() const { return m_bytesReturnedHasBeenSet; }
70 inline void SetBytesReturned(long long value) {
71 m_bytesReturnedHasBeenSet = true;
72 m_bytesReturned = value;
73 }
74 inline Progress& WithBytesReturned(long long value) {
75 SetBytesReturned(value);
76 return *this;
77 }
79 private:
80 long long m_bytesScanned{0};
81
82 long long m_bytesProcessed{0};
83
84 long long m_bytesReturned{0};
85 bool m_bytesScannedHasBeenSet = false;
86 bool m_bytesProcessedHasBeenSet = false;
87 bool m_bytesReturnedHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace S3
92} // namespace Aws
Progress & WithBytesReturned(long long value)
Definition Progress.h:74
void SetBytesProcessed(long long value)
Definition Progress.h:54
long long GetBytesScanned() const
Definition Progress.h:36
bool BytesScannedHasBeenSet() const
Definition Progress.h:37
AWS_S3_API Progress(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3_API Progress & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Progress & WithBytesScanned(long long value)
Definition Progress.h:42
Progress & WithBytesProcessed(long long value)
Definition Progress.h:58
void SetBytesScanned(long long value)
Definition Progress.h:38
long long GetBytesReturned() const
Definition Progress.h:68
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
long long GetBytesProcessed() const
Definition Progress.h:52
bool BytesProcessedHasBeenSet() const
Definition Progress.h:53
bool BytesReturnedHasBeenSet() const
Definition Progress.h:69
void SetBytesReturned(long long value)
Definition Progress.h:70
AWS_S3_API Progress()=default