AWS SDK for C++  0.12.9
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 
35  {
36  public:
39  TableStatistics& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
40  Aws::Utils::Json::JsonValue Jsonize() const;
41 
45  inline const Aws::String& GetSchemaName() const{ return m_schemaName; }
46 
50  inline void SetSchemaName(const Aws::String& value) { m_schemaNameHasBeenSet = true; m_schemaName = value; }
51 
55  inline void SetSchemaName(Aws::String&& value) { m_schemaNameHasBeenSet = true; m_schemaName = value; }
56 
60  inline void SetSchemaName(const char* value) { m_schemaNameHasBeenSet = true; m_schemaName.assign(value); }
61 
65  inline TableStatistics& WithSchemaName(const Aws::String& value) { SetSchemaName(value); return *this;}
66 
70  inline TableStatistics& WithSchemaName(Aws::String&& value) { SetSchemaName(value); return *this;}
71 
75  inline TableStatistics& WithSchemaName(const char* value) { SetSchemaName(value); return *this;}
76 
80  inline const Aws::String& GetTableName() const{ return m_tableName; }
81 
85  inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
86 
90  inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
91 
95  inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
96 
100  inline TableStatistics& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
101 
105  inline TableStatistics& WithTableName(Aws::String&& value) { SetTableName(value); return *this;}
106 
110  inline TableStatistics& WithTableName(const char* value) { SetTableName(value); return *this;}
111 
115  inline long long GetInserts() const{ return m_inserts; }
116 
120  inline void SetInserts(long long value) { m_insertsHasBeenSet = true; m_inserts = value; }
121 
125  inline TableStatistics& WithInserts(long long value) { SetInserts(value); return *this;}
126 
130  inline long long GetDeletes() const{ return m_deletes; }
131 
135  inline void SetDeletes(long long value) { m_deletesHasBeenSet = true; m_deletes = value; }
136 
140  inline TableStatistics& WithDeletes(long long value) { SetDeletes(value); return *this;}
141 
145  inline long long GetUpdates() const{ return m_updates; }
146 
150  inline void SetUpdates(long long value) { m_updatesHasBeenSet = true; m_updates = value; }
151 
155  inline TableStatistics& WithUpdates(long long value) { SetUpdates(value); return *this;}
156 
161  inline long long GetDdls() const{ return m_ddls; }
162 
167  inline void SetDdls(long long value) { m_ddlsHasBeenSet = true; m_ddls = value; }
168 
173  inline TableStatistics& WithDdls(long long value) { SetDdls(value); return *this;}
174 
178  inline long long GetFullLoadRows() const{ return m_fullLoadRows; }
179 
183  inline void SetFullLoadRows(long long value) { m_fullLoadRowsHasBeenSet = true; m_fullLoadRows = value; }
184 
188  inline TableStatistics& WithFullLoadRows(long long value) { SetFullLoadRows(value); return *this;}
189 
193  inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; }
194 
198  inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
199 
203  inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
204 
208  inline TableStatistics& WithLastUpdateTime(const Aws::Utils::DateTime& value) { SetLastUpdateTime(value); return *this;}
209 
213  inline TableStatistics& WithLastUpdateTime(Aws::Utils::DateTime&& value) { SetLastUpdateTime(value); return *this;}
214 
218  inline const Aws::String& GetTableState() const{ return m_tableState; }
219 
223  inline void SetTableState(const Aws::String& value) { m_tableStateHasBeenSet = true; m_tableState = value; }
224 
228  inline void SetTableState(Aws::String&& value) { m_tableStateHasBeenSet = true; m_tableState = value; }
229 
233  inline void SetTableState(const char* value) { m_tableStateHasBeenSet = true; m_tableState.assign(value); }
234 
238  inline TableStatistics& WithTableState(const Aws::String& value) { SetTableState(value); return *this;}
239 
243  inline TableStatistics& WithTableState(Aws::String&& value) { SetTableState(value); return *this;}
244 
248  inline TableStatistics& WithTableState(const char* value) { SetTableState(value); return *this;}
249 
250  private:
251  Aws::String m_schemaName;
252  bool m_schemaNameHasBeenSet;
253  Aws::String m_tableName;
254  bool m_tableNameHasBeenSet;
255  long long m_inserts;
256  bool m_insertsHasBeenSet;
257  long long m_deletes;
258  bool m_deletesHasBeenSet;
259  long long m_updates;
260  bool m_updatesHasBeenSet;
261  long long m_ddls;
262  bool m_ddlsHasBeenSet;
263  long long m_fullLoadRows;
264  bool m_fullLoadRowsHasBeenSet;
265  Aws::Utils::DateTime m_lastUpdateTime;
266  bool m_lastUpdateTimeHasBeenSet;
267  Aws::String m_tableState;
268  bool m_tableStateHasBeenSet;
269  };
270 
271 } // namespace Model
272 } // namespace DatabaseMigrationService
273 } // 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).