AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DataTransfer.h
1
6#pragma once
7#include <aws/snowball/Snowball_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Snowball {
17namespace Model {
18
28 public:
29 AWS_SNOWBALL_API DataTransfer() = default;
30 AWS_SNOWBALL_API DataTransfer(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline long long GetBytesTransferred() const { return m_bytesTransferred; }
39 inline bool BytesTransferredHasBeenSet() const { return m_bytesTransferredHasBeenSet; }
40 inline void SetBytesTransferred(long long value) {
41 m_bytesTransferredHasBeenSet = true;
42 m_bytesTransferred = value;
43 }
44 inline DataTransfer& WithBytesTransferred(long long value) {
46 return *this;
47 }
49
51
54 inline long long GetObjectsTransferred() const { return m_objectsTransferred; }
55 inline bool ObjectsTransferredHasBeenSet() const { return m_objectsTransferredHasBeenSet; }
56 inline void SetObjectsTransferred(long long value) {
57 m_objectsTransferredHasBeenSet = true;
58 m_objectsTransferred = value;
59 }
60 inline DataTransfer& WithObjectsTransferred(long long value) {
62 return *this;
63 }
65
67
72 inline long long GetTotalBytes() const { return m_totalBytes; }
73 inline bool TotalBytesHasBeenSet() const { return m_totalBytesHasBeenSet; }
74 inline void SetTotalBytes(long long value) {
75 m_totalBytesHasBeenSet = true;
76 m_totalBytes = value;
77 }
78 inline DataTransfer& WithTotalBytes(long long value) {
79 SetTotalBytes(value);
80 return *this;
81 }
83
85
90 inline long long GetTotalObjects() const { return m_totalObjects; }
91 inline bool TotalObjectsHasBeenSet() const { return m_totalObjectsHasBeenSet; }
92 inline void SetTotalObjects(long long value) {
93 m_totalObjectsHasBeenSet = true;
94 m_totalObjects = value;
95 }
96 inline DataTransfer& WithTotalObjects(long long value) {
97 SetTotalObjects(value);
98 return *this;
99 }
101 private:
102 long long m_bytesTransferred{0};
103
104 long long m_objectsTransferred{0};
105
106 long long m_totalBytes{0};
107
108 long long m_totalObjects{0};
109 bool m_bytesTransferredHasBeenSet = false;
110 bool m_objectsTransferredHasBeenSet = false;
111 bool m_totalBytesHasBeenSet = false;
112 bool m_totalObjectsHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace Snowball
117} // namespace Aws
long long GetBytesTransferred() const
AWS_SNOWBALL_API DataTransfer()=default
AWS_SNOWBALL_API DataTransfer & operator=(Aws::Utils::Json::JsonView jsonValue)
DataTransfer & WithObjectsTransferred(long long value)
void SetObjectsTransferred(long long value)
DataTransfer & WithTotalObjects(long long value)
DataTransfer & WithBytesTransferred(long long value)
void SetBytesTransferred(long long value)
AWS_SNOWBALL_API DataTransfer(Aws::Utils::Json::JsonView jsonValue)
void SetTotalBytes(long long value)
long long GetObjectsTransferred() const
void SetTotalObjects(long long value)
AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const
DataTransfer & WithTotalBytes(long long value)
Aws::Utils::Json::JsonValue JsonValue