AWS SDK for C++  0.14.3
AWS SDK for C++
DataTransfer.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
17 
18 namespace Aws
19 {
20 namespace Utils
21 {
22 namespace Json
23 {
24  class JsonValue;
25 } // namespace Json
26 } // namespace Utils
27 namespace Snowball
28 {
29 namespace Model
30 {
31 
39  {
40  public:
41  DataTransfer();
42  DataTransfer(const Aws::Utils::Json::JsonValue& jsonValue);
43  DataTransfer& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline long long GetBytesTransferred() const{ return m_bytesTransferred; }
50 
54  inline void SetBytesTransferred(long long value) { m_bytesTransferredHasBeenSet = true; m_bytesTransferred = value; }
55 
59  inline DataTransfer& WithBytesTransferred(long long value) { SetBytesTransferred(value); return *this;}
60 
64  inline long long GetObjectsTransferred() const{ return m_objectsTransferred; }
65 
69  inline void SetObjectsTransferred(long long value) { m_objectsTransferredHasBeenSet = true; m_objectsTransferred = value; }
70 
74  inline DataTransfer& WithObjectsTransferred(long long value) { SetObjectsTransferred(value); return *this;}
75 
81  inline long long GetTotalBytes() const{ return m_totalBytes; }
82 
88  inline void SetTotalBytes(long long value) { m_totalBytesHasBeenSet = true; m_totalBytes = value; }
89 
95  inline DataTransfer& WithTotalBytes(long long value) { SetTotalBytes(value); return *this;}
96 
102  inline long long GetTotalObjects() const{ return m_totalObjects; }
103 
109  inline void SetTotalObjects(long long value) { m_totalObjectsHasBeenSet = true; m_totalObjects = value; }
110 
116  inline DataTransfer& WithTotalObjects(long long value) { SetTotalObjects(value); return *this;}
117 
118  private:
119  long long m_bytesTransferred;
120  bool m_bytesTransferredHasBeenSet;
121  long long m_objectsTransferred;
122  bool m_objectsTransferredHasBeenSet;
123  long long m_totalBytes;
124  bool m_totalBytesHasBeenSet;
125  long long m_totalObjects;
126  bool m_totalObjectsHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace Snowball
131 } // namespace Aws
DataTransfer & WithBytesTransferred(long long value)
Definition: DataTransfer.h:59
DataTransfer & WithTotalBytes(long long value)
Definition: DataTransfer.h:95
long long GetTotalObjects() const
Definition: DataTransfer.h:102
long long GetBytesTransferred() const
Definition: DataTransfer.h:49
void SetTotalObjects(long long value)
Definition: DataTransfer.h:109
void SetTotalBytes(long long value)
Definition: DataTransfer.h:88
long long GetTotalBytes() const
Definition: DataTransfer.h:81
#define AWS_SNOWBALL_API
long long GetObjectsTransferred() const
Definition: DataTransfer.h:64
void SetBytesTransferred(long long value)
Definition: DataTransfer.h:54
DataTransfer & WithTotalObjects(long long value)
Definition: DataTransfer.h:116
void SetObjectsTransferred(long long value)
Definition: DataTransfer.h:69
DataTransfer & WithObjectsTransferred(long long value)
Definition: DataTransfer.h:74
JSON (JavaScript Object Notation).