/* * Copyright 2018-2023 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; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Provides a collection of table statistics in response to a request by the DescribeTableStatistics * operation. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TableStatistics implements Serializable, Cloneable, StructuredPojo { /** *

* 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 insert actions applied on a target table. *

*/ private Long appliedInserts; /** *

* The number of delete actions applied on a target table. *

*/ private Long appliedDeletes; /** *

* The number of update actions applied on a target table. *

*/ private Long appliedUpdates; /** *

* The number of data definition language (DDL) statements used to build and modify the structure of your tables * applied on the target. *

*/ private Long appliedDdls; /** *

* The number of rows added during the full load operation. *

*/ private Long fullLoadRows; /** *

* The number of rows that failed conditional checks during the full load operation (valid only for migrations where * DynamoDB is the target). *

*/ private Long fullLoadCondtnlChkFailedRows; /** *

* The number of rows that failed to load during the full load operation (valid only for migrations where DynamoDB * is the target). *

*/ private Long fullLoadErrorRows; /** *

* The time when the full load operation started. *

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

* The time when the full load operation completed. *

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

* A value that indicates if the table was reloaded (true) or loaded as part of a new full load * operation (false). *

*/ private Boolean fullLoadReloaded; /** *

* The last time a table was updated. *

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

* The state of the tables described. *

*

* Valid states: Table does not exist | Before load | Full load | Table completed | Table cancelled | Table error | * Table is being reloaded *

*/ private String tableState; /** *

* The number of records that have yet to be validated. *

*/ private Long validationPendingRecords; /** *

* The number of records that failed validation. *

*/ private Long validationFailedRecords; /** *

* The number of records that couldn't be validated. *

*/ private Long validationSuspendedRecords; /** *

* The validation state of the table. *

*

* This parameter can have the following values: *

* */ private String validationState; /** *

* Additional details about the state of validation. *

*/ private String validationStateDetails; /** *

* 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 insert actions applied on a target table. *

* * @param appliedInserts * The number of insert actions applied on a target table. */ public void setAppliedInserts(Long appliedInserts) { this.appliedInserts = appliedInserts; } /** *

* The number of insert actions applied on a target table. *

* * @return The number of insert actions applied on a target table. */ public Long getAppliedInserts() { return this.appliedInserts; } /** *

* The number of insert actions applied on a target table. *

* * @param appliedInserts * The number of insert actions applied on a target table. * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withAppliedInserts(Long appliedInserts) { setAppliedInserts(appliedInserts); return this; } /** *

* The number of delete actions applied on a target table. *

* * @param appliedDeletes * The number of delete actions applied on a target table. */ public void setAppliedDeletes(Long appliedDeletes) { this.appliedDeletes = appliedDeletes; } /** *

* The number of delete actions applied on a target table. *

* * @return The number of delete actions applied on a target table. */ public Long getAppliedDeletes() { return this.appliedDeletes; } /** *

* The number of delete actions applied on a target table. *

* * @param appliedDeletes * The number of delete actions applied on a target table. * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withAppliedDeletes(Long appliedDeletes) { setAppliedDeletes(appliedDeletes); return this; } /** *

* The number of update actions applied on a target table. *

* * @param appliedUpdates * The number of update actions applied on a target table. */ public void setAppliedUpdates(Long appliedUpdates) { this.appliedUpdates = appliedUpdates; } /** *

* The number of update actions applied on a target table. *

* * @return The number of update actions applied on a target table. */ public Long getAppliedUpdates() { return this.appliedUpdates; } /** *

* The number of update actions applied on a target table. *

* * @param appliedUpdates * The number of update actions applied on a target table. * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withAppliedUpdates(Long appliedUpdates) { setAppliedUpdates(appliedUpdates); return this; } /** *

* The number of data definition language (DDL) statements used to build and modify the structure of your tables * applied on the target. *

* * @param appliedDdls * The number of data definition language (DDL) statements used to build and modify the structure of your * tables applied on the target. */ public void setAppliedDdls(Long appliedDdls) { this.appliedDdls = appliedDdls; } /** *

* The number of data definition language (DDL) statements used to build and modify the structure of your tables * applied on the target. *

* * @return The number of data definition language (DDL) statements used to build and modify the structure of your * tables applied on the target. */ public Long getAppliedDdls() { return this.appliedDdls; } /** *

* The number of data definition language (DDL) statements used to build and modify the structure of your tables * applied on the target. *

* * @param appliedDdls * The number of data definition language (DDL) statements used to build and modify the structure of your * tables applied on the target. * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withAppliedDdls(Long appliedDdls) { setAppliedDdls(appliedDdls); 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 number of rows that failed conditional checks during the full load operation (valid only for migrations where * DynamoDB is the target). *

* * @param fullLoadCondtnlChkFailedRows * The number of rows that failed conditional checks during the full load operation (valid only for * migrations where DynamoDB is the target). */ public void setFullLoadCondtnlChkFailedRows(Long fullLoadCondtnlChkFailedRows) { this.fullLoadCondtnlChkFailedRows = fullLoadCondtnlChkFailedRows; } /** *

* The number of rows that failed conditional checks during the full load operation (valid only for migrations where * DynamoDB is the target). *

* * @return The number of rows that failed conditional checks during the full load operation (valid only for * migrations where DynamoDB is the target). */ public Long getFullLoadCondtnlChkFailedRows() { return this.fullLoadCondtnlChkFailedRows; } /** *

* The number of rows that failed conditional checks during the full load operation (valid only for migrations where * DynamoDB is the target). *

* * @param fullLoadCondtnlChkFailedRows * The number of rows that failed conditional checks during the full load operation (valid only for * migrations where DynamoDB is the target). * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withFullLoadCondtnlChkFailedRows(Long fullLoadCondtnlChkFailedRows) { setFullLoadCondtnlChkFailedRows(fullLoadCondtnlChkFailedRows); return this; } /** *

* The number of rows that failed to load during the full load operation (valid only for migrations where DynamoDB * is the target). *

* * @param fullLoadErrorRows * The number of rows that failed to load during the full load operation (valid only for migrations where * DynamoDB is the target). */ public void setFullLoadErrorRows(Long fullLoadErrorRows) { this.fullLoadErrorRows = fullLoadErrorRows; } /** *

* The number of rows that failed to load during the full load operation (valid only for migrations where DynamoDB * is the target). *

* * @return The number of rows that failed to load during the full load operation (valid only for migrations where * DynamoDB is the target). */ public Long getFullLoadErrorRows() { return this.fullLoadErrorRows; } /** *

* The number of rows that failed to load during the full load operation (valid only for migrations where DynamoDB * is the target). *

* * @param fullLoadErrorRows * The number of rows that failed to load during the full load operation (valid only for migrations where * DynamoDB is the target). * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withFullLoadErrorRows(Long fullLoadErrorRows) { setFullLoadErrorRows(fullLoadErrorRows); return this; } /** *

* The time when the full load operation started. *

* * @param fullLoadStartTime * The time when the full load operation started. */ public void setFullLoadStartTime(java.util.Date fullLoadStartTime) { this.fullLoadStartTime = fullLoadStartTime; } /** *

* The time when the full load operation started. *

* * @return The time when the full load operation started. */ public java.util.Date getFullLoadStartTime() { return this.fullLoadStartTime; } /** *

* The time when the full load operation started. *

* * @param fullLoadStartTime * The time when the full load operation started. * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withFullLoadStartTime(java.util.Date fullLoadStartTime) { setFullLoadStartTime(fullLoadStartTime); return this; } /** *

* The time when the full load operation completed. *

* * @param fullLoadEndTime * The time when the full load operation completed. */ public void setFullLoadEndTime(java.util.Date fullLoadEndTime) { this.fullLoadEndTime = fullLoadEndTime; } /** *

* The time when the full load operation completed. *

* * @return The time when the full load operation completed. */ public java.util.Date getFullLoadEndTime() { return this.fullLoadEndTime; } /** *

* The time when the full load operation completed. *

* * @param fullLoadEndTime * The time when the full load operation completed. * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withFullLoadEndTime(java.util.Date fullLoadEndTime) { setFullLoadEndTime(fullLoadEndTime); return this; } /** *

* A value that indicates if the table was reloaded (true) or loaded as part of a new full load * operation (false). *

* * @param fullLoadReloaded * A value that indicates if the table was reloaded (true) or loaded as part of a new full load * operation (false). */ public void setFullLoadReloaded(Boolean fullLoadReloaded) { this.fullLoadReloaded = fullLoadReloaded; } /** *

* A value that indicates if the table was reloaded (true) or loaded as part of a new full load * operation (false). *

* * @return A value that indicates if the table was reloaded (true) or loaded as part of a new full load * operation (false). */ public Boolean getFullLoadReloaded() { return this.fullLoadReloaded; } /** *

* A value that indicates if the table was reloaded (true) or loaded as part of a new full load * operation (false). *

* * @param fullLoadReloaded * A value that indicates if the table was reloaded (true) or loaded as part of a new full load * operation (false). * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withFullLoadReloaded(Boolean fullLoadReloaded) { setFullLoadReloaded(fullLoadReloaded); return this; } /** *

* A value that indicates if the table was reloaded (true) or loaded as part of a new full load * operation (false). *

* * @return A value that indicates if the table was reloaded (true) or loaded as part of a new full load * operation (false). */ public Boolean isFullLoadReloaded() { return this.fullLoadReloaded; } /** *

* The last time a table was updated. *

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

* The last time a table was updated. *

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

* The last time a table was updated. *

* * @param lastUpdateTime * The last time a 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 tables described. *

*

* Valid states: Table does not exist | Before load | Full load | Table completed | Table cancelled | Table error | * Table is being reloaded *

* * @param tableState * The state of the tables described.

*

* Valid states: Table does not exist | Before load | Full load | Table completed | Table cancelled | Table * error | Table is being reloaded */ public void setTableState(String tableState) { this.tableState = tableState; } /** *

* The state of the tables described. *

*

* Valid states: Table does not exist | Before load | Full load | Table completed | Table cancelled | Table error | * Table is being reloaded *

* * @return The state of the tables described.

*

* Valid states: Table does not exist | Before load | Full load | Table completed | Table cancelled | Table * error | Table is being reloaded */ public String getTableState() { return this.tableState; } /** *

* The state of the tables described. *

*

* Valid states: Table does not exist | Before load | Full load | Table completed | Table cancelled | Table error | * Table is being reloaded *

* * @param tableState * The state of the tables described.

*

* Valid states: Table does not exist | Before load | Full load | Table completed | Table cancelled | Table * error | Table is being reloaded * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withTableState(String tableState) { setTableState(tableState); return this; } /** *

* The number of records that have yet to be validated. *

* * @param validationPendingRecords * The number of records that have yet to be validated. */ public void setValidationPendingRecords(Long validationPendingRecords) { this.validationPendingRecords = validationPendingRecords; } /** *

* The number of records that have yet to be validated. *

* * @return The number of records that have yet to be validated. */ public Long getValidationPendingRecords() { return this.validationPendingRecords; } /** *

* The number of records that have yet to be validated. *

* * @param validationPendingRecords * The number of records that have yet to be validated. * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withValidationPendingRecords(Long validationPendingRecords) { setValidationPendingRecords(validationPendingRecords); return this; } /** *

* The number of records that failed validation. *

* * @param validationFailedRecords * The number of records that failed validation. */ public void setValidationFailedRecords(Long validationFailedRecords) { this.validationFailedRecords = validationFailedRecords; } /** *

* The number of records that failed validation. *

* * @return The number of records that failed validation. */ public Long getValidationFailedRecords() { return this.validationFailedRecords; } /** *

* The number of records that failed validation. *

* * @param validationFailedRecords * The number of records that failed validation. * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withValidationFailedRecords(Long validationFailedRecords) { setValidationFailedRecords(validationFailedRecords); return this; } /** *

* The number of records that couldn't be validated. *

* * @param validationSuspendedRecords * The number of records that couldn't be validated. */ public void setValidationSuspendedRecords(Long validationSuspendedRecords) { this.validationSuspendedRecords = validationSuspendedRecords; } /** *

* The number of records that couldn't be validated. *

* * @return The number of records that couldn't be validated. */ public Long getValidationSuspendedRecords() { return this.validationSuspendedRecords; } /** *

* The number of records that couldn't be validated. *

* * @param validationSuspendedRecords * The number of records that couldn't be validated. * @return Returns a reference to this object so that method calls can be chained together. */ public TableStatistics withValidationSuspendedRecords(Long validationSuspendedRecords) { setValidationSuspendedRecords(validationSuspendedRecords); return this; } /** *

* The validation state of the table. *

*

* This parameter can have the following values: *

* * * @param validationState * The validation state of the table.

*

* This parameter can have the following values: *

*