AWS SDK for C++  0.14.3
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 
36  {
37  public:
40  ReplicationTaskStats& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
41  Aws::Utils::Json::JsonValue Jsonize() const;
42 
46  inline int GetFullLoadProgressPercent() const{ return m_fullLoadProgressPercent; }
47 
51  inline void SetFullLoadProgressPercent(int value) { m_fullLoadProgressPercentHasBeenSet = true; m_fullLoadProgressPercent = value; }
52 
56  inline ReplicationTaskStats& WithFullLoadProgressPercent(int value) { SetFullLoadProgressPercent(value); return *this;}
57 
61  inline long long GetElapsedTimeMillis() const{ return m_elapsedTimeMillis; }
62 
66  inline void SetElapsedTimeMillis(long long value) { m_elapsedTimeMillisHasBeenSet = true; m_elapsedTimeMillis = value; }
67 
71  inline ReplicationTaskStats& WithElapsedTimeMillis(long long value) { SetElapsedTimeMillis(value); return *this;}
72 
76  inline int GetTablesLoaded() const{ return m_tablesLoaded; }
77 
81  inline void SetTablesLoaded(int value) { m_tablesLoadedHasBeenSet = true; m_tablesLoaded = value; }
82 
86  inline ReplicationTaskStats& WithTablesLoaded(int value) { SetTablesLoaded(value); return *this;}
87 
91  inline int GetTablesLoading() const{ return m_tablesLoading; }
92 
96  inline void SetTablesLoading(int value) { m_tablesLoadingHasBeenSet = true; m_tablesLoading = value; }
97 
101  inline ReplicationTaskStats& WithTablesLoading(int value) { SetTablesLoading(value); return *this;}
102 
106  inline int GetTablesQueued() const{ return m_tablesQueued; }
107 
111  inline void SetTablesQueued(int value) { m_tablesQueuedHasBeenSet = true; m_tablesQueued = value; }
112 
116  inline ReplicationTaskStats& WithTablesQueued(int value) { SetTablesQueued(value); return *this;}
117 
121  inline int GetTablesErrored() const{ return m_tablesErrored; }
122 
126  inline void SetTablesErrored(int value) { m_tablesErroredHasBeenSet = true; m_tablesErrored = value; }
127 
131  inline ReplicationTaskStats& WithTablesErrored(int value) { SetTablesErrored(value); return *this;}
132 
133  private:
134  int m_fullLoadProgressPercent;
135  bool m_fullLoadProgressPercentHasBeenSet;
136  long long m_elapsedTimeMillis;
137  bool m_elapsedTimeMillisHasBeenSet;
138  int m_tablesLoaded;
139  bool m_tablesLoadedHasBeenSet;
140  int m_tablesLoading;
141  bool m_tablesLoadingHasBeenSet;
142  int m_tablesQueued;
143  bool m_tablesQueuedHasBeenSet;
144  int m_tablesErrored;
145  bool m_tablesErroredHasBeenSet;
146  };
147 
148 } // namespace Model
149 } // namespace DatabaseMigrationService
150 } // namespace Aws
ReplicationTaskStats & WithElapsedTimeMillis(long long value)
#define AWS_DATABASEMIGRATIONSERVICE_API
JSON (JavaScript Object Notation).