AWS SDK for C++  0.14.3
AWS SDK for C++
TableStatistics.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
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace DatabaseMigrationService
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  TableStatistics& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetSchemaName() const{ return m_schemaName; }
49 
53  inline void SetSchemaName(const Aws::String& value) { m_schemaNameHasBeenSet = true; m_schemaName = value; }
54 
58  inline void SetSchemaName(Aws::String&& value) { m_schemaNameHasBeenSet = true; m_schemaName = value; }
59 
63  inline void SetSchemaName(const char* value) { m_schemaNameHasBeenSet = true; m_schemaName.assign(value); }
64 
68  inline TableStatistics& WithSchemaName(const Aws::String& value) { SetSchemaName(value); return *this;}
69 
73  inline TableStatistics& WithSchemaName(Aws::String&& value) { SetSchemaName(value); return *this;}
74 
78  inline TableStatistics& WithSchemaName(const char* value) { SetSchemaName(value); return *this;}
79 
83  inline const Aws::String& GetTableName() const{ return m_tableName; }
84 
88  inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
89 
93  inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
94 
98  inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
99 
103  inline TableStatistics& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
104 
108  inline TableStatistics& WithTableName(Aws::String&& value) { SetTableName(value); return *this;}
109 
113  inline TableStatistics& WithTableName(const char* value) { SetTableName(value); return *this;}
114 
118  inline long long GetInserts() const{ return m_inserts; }
119 
123  inline void SetInserts(long long value) { m_insertsHasBeenSet = true; m_inserts = value; }
124 
128  inline TableStatistics& WithInserts(long long value) { SetInserts(value); return *this;}
129 
133  inline long long GetDeletes() const{ return m_deletes; }
134 
138  inline void SetDeletes(long long value) { m_deletesHasBeenSet = true; m_deletes = value; }
139 
143  inline TableStatistics& WithDeletes(long long value) { SetDeletes(value); return *this;}
144 
148  inline long long GetUpdates() const{ return m_updates; }
149 
153  inline void SetUpdates(long long value) { m_updatesHasBeenSet = true; m_updates = value; }
154 
158  inline TableStatistics& WithUpdates(long long value) { SetUpdates(value); return *this;}
159 
164  inline long long GetDdls() const{ return m_ddls; }
165 
170  inline void SetDdls(long long value) { m_ddlsHasBeenSet = true; m_ddls = value; }
171 
176  inline TableStatistics& WithDdls(long long value) { SetDdls(value); return *this;}
177 
181  inline long long GetFullLoadRows() const{ return m_fullLoadRows; }
182 
186  inline void SetFullLoadRows(long long value) { m_fullLoadRowsHasBeenSet = true; m_fullLoadRows = value; }
187 
191  inline TableStatistics& WithFullLoadRows(long long value) { SetFullLoadRows(value); return *this;}
192 
196  inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; }
197 
201  inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
202 
206  inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
207 
211  inline TableStatistics& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;}
212 
216  inline TableStatistics& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(value); return *this;}
217 
221  inline const Aws::String& GetTableState() const{ return m_tableState; }
222 
226  inline void SetTableState(const Aws::String& value) { m_tableStateHasBeenSet = true; m_tableState = value; }
227 
231  inline void SetTableState(Aws::String&& value) { m_tableStateHasBeenSet = true; m_tableState = value; }
232 
236  inline void SetTableState(const char* value) { m_tableStateHasBeenSet = true; m_tableState.assign(value); }
237 
241  inline TableStatistics& WithTableState(const Aws::String& value) { SetTableState(value); return *this;}
242 
246  inline TableStatistics& WithTableState(Aws::String&& value) { SetTableState(value); return *this;}
247 
251  inline TableStatistics& WithTableState(const char* value) { SetTableState(value); return *this;}
252 
253  private:
254  Aws::String m_schemaName;
255  bool m_schemaNameHasBeenSet;
256  Aws::String m_tableName;
257  bool m_tableNameHasBeenSet;
258  long long m_inserts;
259  bool m_insertsHasBeenSet;
260  long long m_deletes;
261  bool m_deletesHasBeenSet;
262  long long m_updates;
263  bool m_updatesHasBeenSet;
264  long long m_ddls;
265  bool m_ddlsHasBeenSet;
266  long long m_fullLoadRows;
267  bool m_fullLoadRowsHasBeenSet;
268  Aws::Utils::DateTime m_lastUpdateTime;
269  bool m_lastUpdateTimeHasBeenSet;
270  Aws::String m_tableState;
271  bool m_tableStateHasBeenSet;
272  };
273 
274 } // namespace Model
275 } // namespace DatabaseMigrationService
276 } // namespace Aws
TableStatistics & WithTableState(Aws::String &&value)
void SetLastUpdateTime(const Aws::Utils::DateTime &value)
TableStatistics & WithLastUpdateTime(const Aws::Utils::DateTime &value)
TableStatistics & WithSchemaName(const char *value)
const Aws::Utils::DateTime & GetLastUpdateTime() const
TableStatistics & WithTableState(const char *value)
TableStatistics & WithTableName(const char *value)
TableStatistics & WithUpdates(long long value)
#define AWS_DATABASEMIGRATIONSERVICE_API
TableStatistics & WithSchemaName(const Aws::String &value)
TableStatistics & WithSchemaName(Aws::String &&value)
TableStatistics & WithDeletes(long long value)
TableStatistics & WithTableState(const Aws::String &value)
void SetLastUpdateTime(Aws::Utils::DateTime &&value)
TableStatistics & WithLastUpdateTime(Aws::Utils::DateTime &&value)
TableStatistics & WithInserts(long long value)
TableStatistics & WithTableName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TableStatistics & WithTableName(Aws::String &&value)
TableStatistics & WithFullLoadRows(long long value)
JSON (JavaScript Object Notation).