All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.databasemigrationservice.model.TableStatistics Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Database Migration Service module holds the client classes that are used for communicating with AWS Database Migration Service.

There is a newer version: 1.12.782
Show newest version
/*
 * Copyright 2011-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.databasemigrationservice.model;

import java.io.Serializable;

/**
 * 

*/ public class TableStatistics implements Serializable, Cloneable { /** *

* The schema name. *

*/ private String schemaName; /** *

* The name of the table. *

*/ private String tableName; /** *

* The number of insert actions performed on a table. *

*/ private Long inserts; /** *

* The number of delete actions performed on a table. *

*/ private Long deletes; /** *

* The number of update actions performed on a table. *

*/ private Long updates; /** *

* The Data Definition Language (DDL) used to build and modify the structure of your tables. *

*/ private Long ddls; /** *

* The number of rows added during the Full Load operation. *

*/ private Long fullLoadRows; /** *

* The last time the table was updated. *

*/ private java.util.Date lastUpdateTime; /** *

* The state of the table. *

*/ private String tableState; /** *

* The schema name. *

* * @param schemaName * The schema name. */ public void setSchemaName(String schemaName) { this.schemaName = schemaName; } /** *

* The schema name. *

* * @return The schema name. */ public String getSchemaName() { return this.schemaName; } /** *

* The schema name. *

* * @param schemaName * The schema name. * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withSchemaName(String schemaName) { setSchemaName(schemaName); return this; } /** *

* The name of the table. *

* * @param tableName * The name of the table. */ public void setTableName(String tableName) { this.tableName = tableName; } /** *

* The name of the table. *

* * @return The name of the table. */ public String getTableName() { return this.tableName; } /** *

* The name of the table. *

* * @param tableName * The name of the table. * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withTableName(String tableName) { setTableName(tableName); return this; } /** *

* The number of insert actions performed on a table. *

* * @param inserts * The number of insert actions performed on a table. */ public void setInserts(Long inserts) { this.inserts = inserts; } /** *

* The number of insert actions performed on a table. *

* * @return The number of insert actions performed on a table. */ public Long getInserts() { return this.inserts; } /** *

* The number of insert actions performed on a table. *

* * @param inserts * The number of insert actions performed on a table. * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withInserts(Long inserts) { setInserts(inserts); return this; } /** *

* The number of delete actions performed on a table. *

* * @param deletes * The number of delete actions performed on a table. */ public void setDeletes(Long deletes) { this.deletes = deletes; } /** *

* The number of delete actions performed on a table. *

* * @return The number of delete actions performed on a table. */ public Long getDeletes() { return this.deletes; } /** *

* The number of delete actions performed on a table. *

* * @param deletes * The number of delete actions performed on a table. * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withDeletes(Long deletes) { setDeletes(deletes); return this; } /** *

* The number of update actions performed on a table. *

* * @param updates * The number of update actions performed on a table. */ public void setUpdates(Long updates) { this.updates = updates; } /** *

* The number of update actions performed on a table. *

* * @return The number of update actions performed on a table. */ public Long getUpdates() { return this.updates; } /** *

* The number of update actions performed on a table. *

* * @param updates * The number of update actions performed on a table. * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withUpdates(Long updates) { setUpdates(updates); return this; } /** *

* The Data Definition Language (DDL) used to build and modify the structure of your tables. *

* * @param ddls * The Data Definition Language (DDL) used to build and modify the structure of your tables. */ public void setDdls(Long ddls) { this.ddls = ddls; } /** *

* The Data Definition Language (DDL) used to build and modify the structure of your tables. *

* * @return The Data Definition Language (DDL) used to build and modify the structure of your tables. */ public Long getDdls() { return this.ddls; } /** *

* The Data Definition Language (DDL) used to build and modify the structure of your tables. *

* * @param ddls * The Data Definition Language (DDL) used to build and modify the structure of your tables. * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withDdls(Long ddls) { setDdls(ddls); return this; } /** *

* The number of rows added during the Full Load operation. *

* * @param fullLoadRows * The number of rows added during the Full Load operation. */ public void setFullLoadRows(Long fullLoadRows) { this.fullLoadRows = fullLoadRows; } /** *

* The number of rows added during the Full Load operation. *

* * @return The number of rows added during the Full Load operation. */ public Long getFullLoadRows() { return this.fullLoadRows; } /** *

* The number of rows added during the Full Load operation. *

* * @param fullLoadRows * The number of rows added during the Full Load operation. * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withFullLoadRows(Long fullLoadRows) { setFullLoadRows(fullLoadRows); return this; } /** *

* The last time the table was updated. *

* * @param lastUpdateTime * The last time the table was updated. */ public void setLastUpdateTime(java.util.Date lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } /** *

* The last time the table was updated. *

* * @return The last time the table was updated. */ public java.util.Date getLastUpdateTime() { return this.lastUpdateTime; } /** *

* The last time the table was updated. *

* * @param lastUpdateTime * The last time the table was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withLastUpdateTime(java.util.Date lastUpdateTime) { setLastUpdateTime(lastUpdateTime); return this; } /** *

* The state of the table. *

* * @param tableState * The state of the table. */ public void setTableState(String tableState) { this.tableState = tableState; } /** *

* The state of the table. *

* * @return The state of the table. */ public String getTableState() { return this.tableState; } /** *

* The state of the table. *

* * @param tableState * The state of the table. * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withTableState(String tableState) { setTableState(tableState); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getSchemaName() != null) sb.append("SchemaName: " + getSchemaName() + ","); if (getTableName() != null) sb.append("TableName: " + getTableName() + ","); if (getInserts() != null) sb.append("Inserts: " + getInserts() + ","); if (getDeletes() != null) sb.append("Deletes: " + getDeletes() + ","); if (getUpdates() != null) sb.append("Updates: " + getUpdates() + ","); if (getDdls() != null) sb.append("Ddls: " + getDdls() + ","); if (getFullLoadRows() != null) sb.append("FullLoadRows: " + getFullLoadRows() + ","); if (getLastUpdateTime() != null) sb.append("LastUpdateTime: " + getLastUpdateTime() + ","); if (getTableState() != null) sb.append("TableState: " + getTableState()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof TableStatistics == false) return false; TableStatistics other = (TableStatistics) obj; if (other.getSchemaName() == null ^ this.getSchemaName() == null) return false; if (other.getSchemaName() != null && other.getSchemaName().equals(this.getSchemaName()) == false) return false; if (other.getTableName() == null ^ this.getTableName() == null) return false; if (other.getTableName() != null && other.getTableName().equals(this.getTableName()) == false) return false; if (other.getInserts() == null ^ this.getInserts() == null) return false; if (other.getInserts() != null && other.getInserts().equals(this.getInserts()) == false) return false; if (other.getDeletes() == null ^ this.getDeletes() == null) return false; if (other.getDeletes() != null && other.getDeletes().equals(this.getDeletes()) == false) return false; if (other.getUpdates() == null ^ this.getUpdates() == null) return false; if (other.getUpdates() != null && other.getUpdates().equals(this.getUpdates()) == false) return false; if (other.getDdls() == null ^ this.getDdls() == null) return false; if (other.getDdls() != null && other.getDdls().equals(this.getDdls()) == false) return false; if (other.getFullLoadRows() == null ^ this.getFullLoadRows() == null) return false; if (other.getFullLoadRows() != null && other.getFullLoadRows().equals(this.getFullLoadRows()) == false) return false; if (other.getLastUpdateTime() == null ^ this.getLastUpdateTime() == null) return false; if (other.getLastUpdateTime() != null && other.getLastUpdateTime().equals(this.getLastUpdateTime()) == false) return false; if (other.getTableState() == null ^ this.getTableState() == null) return false; if (other.getTableState() != null && other.getTableState().equals(this.getTableState()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSchemaName() == null) ? 0 : getSchemaName().hashCode()); hashCode = prime * hashCode + ((getTableName() == null) ? 0 : getTableName().hashCode()); hashCode = prime * hashCode + ((getInserts() == null) ? 0 : getInserts().hashCode()); hashCode = prime * hashCode + ((getDeletes() == null) ? 0 : getDeletes().hashCode()); hashCode = prime * hashCode + ((getUpdates() == null) ? 0 : getUpdates().hashCode()); hashCode = prime * hashCode + ((getDdls() == null) ? 0 : getDdls().hashCode()); hashCode = prime * hashCode + ((getFullLoadRows() == null) ? 0 : getFullLoadRows().hashCode()); hashCode = prime * hashCode + ((getLastUpdateTime() == null) ? 0 : getLastUpdateTime().hashCode()); hashCode = prime * hashCode + ((getTableState() == null) ? 0 : getTableState().hashCode()); return hashCode; } @Override public TableStatistics clone() { try { return (TableStatistics) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy