AWS SDK for C++  0.12.9
AWS SDK for C++
ReplicationTaskStats.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 DatabaseMigrationService
28 {
29 namespace Model
30 {
31 
33  {
34  public:
37  ReplicationTaskStats& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
38  Aws::Utils::Json::JsonValue Jsonize() const;
39 
43  inline long GetFullLoadProgressPercent() const{ return m_fullLoadProgressPercent; }
44 
48  inline void SetFullLoadProgressPercent(long value) { m_fullLoadProgressPercentHasBeenSet = true; m_fullLoadProgressPercent = value; }
49 
53  inline ReplicationTaskStats& WithFullLoadProgressPercent(long value) { SetFullLoadProgressPercent(value); return *this;}
54 
58  inline long long GetElapsedTimeMillis() const{ return m_elapsedTimeMillis; }
59 
63  inline void SetElapsedTimeMillis(long long value) { m_elapsedTimeMillisHasBeenSet = true; m_elapsedTimeMillis = value; }
64 
68  inline ReplicationTaskStats& WithElapsedTimeMillis(long long value) { SetElapsedTimeMillis(value); return *this;}
69 
73  inline long GetTablesLoaded() const{ return m_tablesLoaded; }
74 
78  inline void SetTablesLoaded(long value) { m_tablesLoadedHasBeenSet = true; m_tablesLoaded = value; }
79 
83  inline ReplicationTaskStats& WithTablesLoaded(long value) { SetTablesLoaded(value); return *this;}
84 
88  inline long GetTablesLoading() const{ return m_tablesLoading; }
89 
93  inline void SetTablesLoading(long value) { m_tablesLoadingHasBeenSet = true; m_tablesLoading = value; }
94 
98  inline ReplicationTaskStats& WithTablesLoading(long value) { SetTablesLoading(value); return *this;}
99 
103  inline long GetTablesQueued() const{ return m_tablesQueued; }
104 
108  inline void SetTablesQueued(long value) { m_tablesQueuedHasBeenSet = true; m_tablesQueued = value; }
109 
113  inline ReplicationTaskStats& WithTablesQueued(long value) { SetTablesQueued(value); return *this;}
114 
118  inline long GetTablesErrored() const{ return m_tablesErrored; }
119 
123  inline void SetTablesErrored(long value) { m_tablesErroredHasBeenSet = true; m_tablesErrored = value; }
124 
128  inline ReplicationTaskStats& WithTablesErrored(long value) { SetTablesErrored(value); return *this;}
129 
130  private:
131  long m_fullLoadProgressPercent;
132  bool m_fullLoadProgressPercentHasBeenSet;
133  long long m_elapsedTimeMillis;
134  bool m_elapsedTimeMillisHasBeenSet;
135  long m_tablesLoaded;
136  bool m_tablesLoadedHasBeenSet;
137  long m_tablesLoading;
138  bool m_tablesLoadingHasBeenSet;
139  long m_tablesQueued;
140  bool m_tablesQueuedHasBeenSet;
141  long m_tablesErrored;
142  bool m_tablesErroredHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace DatabaseMigrationService
147 } // namespace Aws
ReplicationTaskStats & WithElapsedTimeMillis(long long value)
#define AWS_DATABASEMIGRATIONSERVICE_API
JSON (JavaScript Object Notation).