Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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.redshift.model;
 

Describes the result of a cluster resize operation.

 
 public class DescribeResizeResult implements SerializableCloneable {

    
The node type that the cluster will have after the resize operation is complete.
 
     private String targetNodeType;

    
The number of nodes that the cluster will have after the resize operation is complete.
 
     private Integer targetNumberOfNodes;

    
The cluster type after the resize operation is complete.

Valid Values: multi-node | single-node

 
     private String targetClusterType;

    
The status of the resize operation.

Valid Values: NONE | IN_PROGRESS | FAILED | SUCCEEDED

 
     private String status;

    
The names of tables that have been completely imported .

Valid Values: List of table names.

 
The names of tables that are being currently imported.

Valid Values: List of table names.

 
The names of tables that have not been yet imported.

Valid Values: List of table names

 
The average rate of the resize operation over the last few minutes, measured in megabytes per second. After the resize operation completes, this value shows the average rate of the entire resize operation.
 
     private Double avgResizeRateInMegaBytesPerSecond;

    
The estimated total amount of data, in megabytes, on the cluster before the resize operation began.
 
     private Long totalResizeDataInMegaBytes;

    
While the resize operation is in progress, this value shows the current amount of data, in megabytes, that has been processed so far. When the resize operation is complete, this value shows the total amount of data, in megabytes, on the cluster, which may be more or less than TotalResizeDataInMegaBytes (the estimated total amount of data before resize).
 
     private Long progressInMegaBytes;

    
The amount of seconds that have elapsed since the resize operation began. After the resize operation completes, this value shows the total actual time, in seconds, for the resize operation.
 
     private Long elapsedTimeInSeconds;

    
The estimated time remaining, in seconds, until the resize operation is complete. This value is calculated based on the average resize rate and the estimated amount of data remaining to be processed. Once the resize operation is complete, this value will be 0.
    private Long estimatedTimeToCompletionInSeconds;

    
The node type that the cluster will have after the resize operation is complete.

Returns:
The node type that the cluster will have after the resize operation is complete.
    public String getTargetNodeType() {
        return ;
    }
    
    
The node type that the cluster will have after the resize operation is complete.

Parameters:
targetNodeType The node type that the cluster will have after the resize operation is complete.
    public void setTargetNodeType(String targetNodeType) {
        this. = targetNodeType;
    }
    
    
The node type that the cluster will have after the resize operation is complete.

Returns a reference to this object so that method calls can be chained together.

Parameters:
targetNodeType The node type that the cluster will have after the resize operation is complete.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeResizeResult withTargetNodeType(String targetNodeType) {
        this. = targetNodeType;
        return this;
    }

    
The number of nodes that the cluster will have after the resize operation is complete.

Returns:
The number of nodes that the cluster will have after the resize operation is complete.
    public Integer getTargetNumberOfNodes() {
        return ;
    }
    
    
The number of nodes that the cluster will have after the resize operation is complete.

Parameters:
targetNumberOfNodes The number of nodes that the cluster will have after the resize operation is complete.
    public void setTargetNumberOfNodes(Integer targetNumberOfNodes) {
        this. = targetNumberOfNodes;
    }
    
    
The number of nodes that the cluster will have after the resize operation is complete.

Returns a reference to this object so that method calls can be chained together.

Parameters:
targetNumberOfNodes The number of nodes that the cluster will have after the resize operation is complete.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeResizeResult withTargetNumberOfNodes(Integer targetNumberOfNodes) {
        this. = targetNumberOfNodes;
        return this;
    }

    
The cluster type after the resize operation is complete.

Valid Values: multi-node | single-node

Returns:
The cluster type after the resize operation is complete.

Valid Values: multi-node | single-node

    public String getTargetClusterType() {
        return ;
    }
    
    
The cluster type after the resize operation is complete.

Valid Values: multi-node | single-node

Parameters:
targetClusterType The cluster type after the resize operation is complete.

Valid Values: multi-node | single-node

    public void setTargetClusterType(String targetClusterType) {
        this. = targetClusterType;
    }
    
    
The cluster type after the resize operation is complete.

Valid Values: multi-node | single-node

Returns a reference to this object so that method calls can be chained together.

Parameters:
targetClusterType The cluster type after the resize operation is complete.

Valid Values: multi-node | single-node

Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeResizeResult withTargetClusterType(String targetClusterType) {
        this. = targetClusterType;
        return this;
    }

    
The status of the resize operation.

Valid Values: NONE | IN_PROGRESS | FAILED | SUCCEEDED

Returns:
The status of the resize operation.

Valid Values: NONE | IN_PROGRESS | FAILED | SUCCEEDED

    public String getStatus() {
        return ;
    }
    
    
The status of the resize operation.

Valid Values: NONE | IN_PROGRESS | FAILED | SUCCEEDED

Parameters:
status The status of the resize operation.

Valid Values: NONE | IN_PROGRESS | FAILED | SUCCEEDED

    public void setStatus(String status) {
        this. = status;
    }
    
    
The status of the resize operation.

Valid Values: NONE | IN_PROGRESS | FAILED | SUCCEEDED

Returns a reference to this object so that method calls can be chained together.

Parameters:
status The status of the resize operation.

Valid Values: NONE | IN_PROGRESS | FAILED | SUCCEEDED

Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeResizeResult withStatus(String status) {
        this. = status;
        return this;
    }

    
The names of tables that have been completely imported .

Valid Values: List of table names.

Returns:
The names of tables that have been completely imported .

Valid Values: List of table names.

        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
The names of tables that have been completely imported .

Valid Values: List of table names.

Parameters:
importTablesCompleted The names of tables that have been completely imported .

Valid Values: List of table names.

    public void setImportTablesCompleted(java.util.Collection<StringimportTablesCompleted) {
        if (importTablesCompleted == null) {
            this. = null;
            return;
        }
        com.amazonaws.internal.ListWithAutoConstructFlag<StringimportTablesCompletedCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(importTablesCompleted.size());
        importTablesCompletedCopy.addAll(importTablesCompleted);
        this. = importTablesCompletedCopy;
    }
    
    
The names of tables that have been completely imported .

Valid Values: List of table names.

NOTE: This method appends the values to the existing list (if any). Use setImportTablesCompleted(java.util.Collection) or withImportTablesCompleted(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
importTablesCompleted The names of tables that have been completely imported .

Valid Values: List of table names.

Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeResizeResult withImportTablesCompleted(String... importTablesCompleted) {
        if (getImportTablesCompleted() == nullsetImportTablesCompleted(new java.util.ArrayList<String>(importTablesCompleted.length));
        for (String value : importTablesCompleted) {
            getImportTablesCompleted().add(value);
        }
        return this;
    }
    
    
The names of tables that have been completely imported .

Valid Values: List of table names.

Returns a reference to this object so that method calls can be chained together.

Parameters:
importTablesCompleted The names of tables that have been completely imported .

Valid Values: List of table names.

Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeResizeResult withImportTablesCompleted(java.util.Collection<StringimportTablesCompleted) {
        if (importTablesCompleted == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<StringimportTablesCompletedCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(importTablesCompleted.size());
            importTablesCompletedCopy.addAll(importTablesCompleted);
            this. = importTablesCompletedCopy;
        }
        return this;
    }

    
The names of tables that are being currently imported.

Valid Values: List of table names.

Returns:
The names of tables that are being currently imported.

Valid Values: List of table names.

        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
The names of tables that are being currently imported.

Valid Values: List of table names.

Parameters:
importTablesInProgress The names of tables that are being currently imported.

Valid Values: List of table names.

    public void setImportTablesInProgress(java.util.Collection<StringimportTablesInProgress) {
        if (importTablesInProgress == null) {
            this. = null;
            return;
        }
        com.amazonaws.internal.ListWithAutoConstructFlag<StringimportTablesInProgressCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(importTablesInProgress.size());
        importTablesInProgressCopy.addAll(importTablesInProgress);
        this. = importTablesInProgressCopy;
    }
    
    
The names of tables that are being currently imported.

Valid Values: List of table names.

NOTE: This method appends the values to the existing list (if any). Use setImportTablesInProgress(java.util.Collection) or withImportTablesInProgress(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
importTablesInProgress The names of tables that are being currently imported.

Valid Values: List of table names.

Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeResizeResult withImportTablesInProgress(String... importTablesInProgress) {
        if (getImportTablesInProgress() == nullsetImportTablesInProgress(new java.util.ArrayList<String>(importTablesInProgress.length));
        for (String value : importTablesInProgress) {
            getImportTablesInProgress().add(value);
        }
        return this;
    }
    
    
The names of tables that are being currently imported.

Valid Values: List of table names.

Returns a reference to this object so that method calls can be chained together.

Parameters:
importTablesInProgress The names of tables that are being currently imported.

Valid Values: List of table names.

Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeResizeResult withImportTablesInProgress(java.util.Collection<StringimportTablesInProgress) {
        if (importTablesInProgress == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<StringimportTablesInProgressCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(importTablesInProgress.size());
            importTablesInProgressCopy.addAll(importTablesInProgress);
            this. = importTablesInProgressCopy;
        }
        return this;
    }

    
The names of tables that have not been yet imported.

Valid Values: List of table names

Returns:
The names of tables that have not been yet imported.

Valid Values: List of table names

        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
The names of tables that have not been yet imported.

Valid Values: List of table names

Parameters:
importTablesNotStarted The names of tables that have not been yet imported.

Valid Values: List of table names

    public void setImportTablesNotStarted(java.util.Collection<StringimportTablesNotStarted) {
        if (importTablesNotStarted == null) {
            this. = null;
            return;
        }
        com.amazonaws.internal.ListWithAutoConstructFlag<StringimportTablesNotStartedCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(importTablesNotStarted.size());
        importTablesNotStartedCopy.addAll(importTablesNotStarted);
        this. = importTablesNotStartedCopy;
    }
    
    
The names of tables that have not been yet imported.

Valid Values: List of table names

NOTE: This method appends the values to the existing list (if any). Use setImportTablesNotStarted(java.util.Collection) or withImportTablesNotStarted(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
importTablesNotStarted The names of tables that have not been yet imported.

Valid Values: List of table names

Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeResizeResult withImportTablesNotStarted(String... importTablesNotStarted) {
        if (getImportTablesNotStarted() == nullsetImportTablesNotStarted(new java.util.ArrayList<String>(importTablesNotStarted.length));
        for (String value : importTablesNotStarted) {
            getImportTablesNotStarted().add(value);
        }
        return this;
    }
    
    
The names of tables that have not been yet imported.

Valid Values: List of table names

Returns a reference to this object so that method calls can be chained together.

Parameters:
importTablesNotStarted The names of tables that have not been yet imported.

Valid Values: List of table names

Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeResizeResult withImportTablesNotStarted(java.util.Collection<StringimportTablesNotStarted) {
        if (importTablesNotStarted == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<StringimportTablesNotStartedCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(importTablesNotStarted.size());
            importTablesNotStartedCopy.addAll(importTablesNotStarted);
            this. = importTablesNotStartedCopy;
        }
        return this;
    }

    
The average rate of the resize operation over the last few minutes, measured in megabytes per second. After the resize operation completes, this value shows the average rate of the entire resize operation.

Returns:
The average rate of the resize operation over the last few minutes, measured in megabytes per second. After the resize operation completes, this value shows the average rate of the entire resize operation.
        return ;
    }
    
    
The average rate of the resize operation over the last few minutes, measured in megabytes per second. After the resize operation completes, this value shows the average rate of the entire resize operation.

Parameters:
avgResizeRateInMegaBytesPerSecond The average rate of the resize operation over the last few minutes, measured in megabytes per second. After the resize operation completes, this value shows the average rate of the entire resize operation.
    public void setAvgResizeRateInMegaBytesPerSecond(Double avgResizeRateInMegaBytesPerSecond) {
        this. = avgResizeRateInMegaBytesPerSecond;
    }
    
    
The average rate of the resize operation over the last few minutes, measured in megabytes per second. After the resize operation completes, this value shows the average rate of the entire resize operation.

Returns a reference to this object so that method calls can be chained together.

Parameters:
avgResizeRateInMegaBytesPerSecond The average rate of the resize operation over the last few minutes, measured in megabytes per second. After the resize operation completes, this value shows the average rate of the entire resize operation.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeResizeResult withAvgResizeRateInMegaBytesPerSecond(Double avgResizeRateInMegaBytesPerSecond) {
        this. = avgResizeRateInMegaBytesPerSecond;
        return this;
    }

    
The estimated total amount of data, in megabytes, on the cluster before the resize operation began.

Returns:
The estimated total amount of data, in megabytes, on the cluster before the resize operation began.
        return ;
    }
    
    
The estimated total amount of data, in megabytes, on the cluster before the resize operation began.

Parameters:
totalResizeDataInMegaBytes The estimated total amount of data, in megabytes, on the cluster before the resize operation began.
    public void setTotalResizeDataInMegaBytes(Long totalResizeDataInMegaBytes) {
        this. = totalResizeDataInMegaBytes;
    }
    
    
The estimated total amount of data, in megabytes, on the cluster before the resize operation began.

Returns a reference to this object so that method calls can be chained together.

Parameters:
totalResizeDataInMegaBytes The estimated total amount of data, in megabytes, on the cluster before the resize operation began.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeResizeResult withTotalResizeDataInMegaBytes(Long totalResizeDataInMegaBytes) {
        this. = totalResizeDataInMegaBytes;
        return this;
    }

    
While the resize operation is in progress, this value shows the current amount of data, in megabytes, that has been processed so far. When the resize operation is complete, this value shows the total amount of data, in megabytes, on the cluster, which may be more or less than TotalResizeDataInMegaBytes (the estimated total amount of data before resize).

Returns:
While the resize operation is in progress, this value shows the current amount of data, in megabytes, that has been processed so far. When the resize operation is complete, this value shows the total amount of data, in megabytes, on the cluster, which may be more or less than TotalResizeDataInMegaBytes (the estimated total amount of data before resize).
    public Long getProgressInMegaBytes() {
        return ;
    }
    
    
While the resize operation is in progress, this value shows the current amount of data, in megabytes, that has been processed so far. When the resize operation is complete, this value shows the total amount of data, in megabytes, on the cluster, which may be more or less than TotalResizeDataInMegaBytes (the estimated total amount of data before resize).

Parameters:
progressInMegaBytes While the resize operation is in progress, this value shows the current amount of data, in megabytes, that has been processed so far. When the resize operation is complete, this value shows the total amount of data, in megabytes, on the cluster, which may be more or less than TotalResizeDataInMegaBytes (the estimated total amount of data before resize).
    public void setProgressInMegaBytes(Long progressInMegaBytes) {
        this. = progressInMegaBytes;
    }
    
    
While the resize operation is in progress, this value shows the current amount of data, in megabytes, that has been processed so far. When the resize operation is complete, this value shows the total amount of data, in megabytes, on the cluster, which may be more or less than TotalResizeDataInMegaBytes (the estimated total amount of data before resize).

Returns a reference to this object so that method calls can be chained together.

Parameters:
progressInMegaBytes While the resize operation is in progress, this value shows the current amount of data, in megabytes, that has been processed so far. When the resize operation is complete, this value shows the total amount of data, in megabytes, on the cluster, which may be more or less than TotalResizeDataInMegaBytes (the estimated total amount of data before resize).
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeResizeResult withProgressInMegaBytes(Long progressInMegaBytes) {
        this. = progressInMegaBytes;
        return this;
    }

    
The amount of seconds that have elapsed since the resize operation began. After the resize operation completes, this value shows the total actual time, in seconds, for the resize operation.

Returns:
The amount of seconds that have elapsed since the resize operation began. After the resize operation completes, this value shows the total actual time, in seconds, for the resize operation.
    public Long getElapsedTimeInSeconds() {
        return ;
    }
    
    
The amount of seconds that have elapsed since the resize operation began. After the resize operation completes, this value shows the total actual time, in seconds, for the resize operation.

Parameters:
elapsedTimeInSeconds The amount of seconds that have elapsed since the resize operation began. After the resize operation completes, this value shows the total actual time, in seconds, for the resize operation.
    public void setElapsedTimeInSeconds(Long elapsedTimeInSeconds) {
        this. = elapsedTimeInSeconds;
    }
    
    
The amount of seconds that have elapsed since the resize operation began. After the resize operation completes, this value shows the total actual time, in seconds, for the resize operation.

Returns a reference to this object so that method calls can be chained together.

Parameters:
elapsedTimeInSeconds The amount of seconds that have elapsed since the resize operation began. After the resize operation completes, this value shows the total actual time, in seconds, for the resize operation.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeResizeResult withElapsedTimeInSeconds(Long elapsedTimeInSeconds) {
        this. = elapsedTimeInSeconds;
        return this;
    }

    
The estimated time remaining, in seconds, until the resize operation is complete. This value is calculated based on the average resize rate and the estimated amount of data remaining to be processed. Once the resize operation is complete, this value will be 0.

Returns:
The estimated time remaining, in seconds, until the resize operation is complete. This value is calculated based on the average resize rate and the estimated amount of data remaining to be processed. Once the resize operation is complete, this value will be 0.
        return ;
    }
    
    
The estimated time remaining, in seconds, until the resize operation is complete. This value is calculated based on the average resize rate and the estimated amount of data remaining to be processed. Once the resize operation is complete, this value will be 0.

Parameters:
estimatedTimeToCompletionInSeconds The estimated time remaining, in seconds, until the resize operation is complete. This value is calculated based on the average resize rate and the estimated amount of data remaining to be processed. Once the resize operation is complete, this value will be 0.
    public void setEstimatedTimeToCompletionInSeconds(Long estimatedTimeToCompletionInSeconds) {
        this. = estimatedTimeToCompletionInSeconds;
    }
    
    
The estimated time remaining, in seconds, until the resize operation is complete. This value is calculated based on the average resize rate and the estimated amount of data remaining to be processed. Once the resize operation is complete, this value will be 0.

Returns a reference to this object so that method calls can be chained together.

Parameters:
estimatedTimeToCompletionInSeconds The estimated time remaining, in seconds, until the resize operation is complete. This value is calculated based on the average resize rate and the estimated amount of data remaining to be processed. Once the resize operation is complete, this value will be 0.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DescribeResizeResult withEstimatedTimeToCompletionInSeconds(Long estimatedTimeToCompletionInSeconds) {
        this. = estimatedTimeToCompletionInSeconds;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getTargetNodeType() != nullsb.append("TargetNodeType: " + getTargetNodeType() + ",");
        if (getTargetNumberOfNodes() != nullsb.append("TargetNumberOfNodes: " + getTargetNumberOfNodes() + ",");
        if (getTargetClusterType() != nullsb.append("TargetClusterType: " + getTargetClusterType() + ",");
        if (getStatus() != nullsb.append("Status: " + getStatus() + ",");
        if (getImportTablesCompleted() != nullsb.append("ImportTablesCompleted: " + getImportTablesCompleted() + ",");
        if (getImportTablesInProgress() != nullsb.append("ImportTablesInProgress: " + getImportTablesInProgress() + ",");
        if (getImportTablesNotStarted() != nullsb.append("ImportTablesNotStarted: " + getImportTablesNotStarted() + ",");
        if (getAvgResizeRateInMegaBytesPerSecond() != nullsb.append("AvgResizeRateInMegaBytesPerSecond: " + getAvgResizeRateInMegaBytesPerSecond() + ",");
        if (getTotalResizeDataInMegaBytes() != nullsb.append("TotalResizeDataInMegaBytes: " + getTotalResizeDataInMegaBytes() + ",");
        if (getProgressInMegaBytes() != nullsb.append("ProgressInMegaBytes: " + getProgressInMegaBytes() + ",");
        if (getElapsedTimeInSeconds() != nullsb.append("ElapsedTimeInSeconds: " + getElapsedTimeInSeconds() + ",");
        if (getEstimatedTimeToCompletionInSeconds() != nullsb.append("EstimatedTimeToCompletionInSeconds: " + getEstimatedTimeToCompletionInSeconds() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getTargetNodeType() == null) ? 0 : getTargetNodeType().hashCode()); 
        hashCode = prime * hashCode + ((getTargetNumberOfNodes() == null) ? 0 : getTargetNumberOfNodes().hashCode()); 
        hashCode = prime * hashCode + ((getTargetClusterType() == null) ? 0 : getTargetClusterType().hashCode()); 
        hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); 
        hashCode = prime * hashCode + ((getImportTablesCompleted() == null) ? 0 : getImportTablesCompleted().hashCode()); 
        hashCode = prime * hashCode + ((getImportTablesInProgress() == null) ? 0 : getImportTablesInProgress().hashCode()); 
        hashCode = prime * hashCode + ((getImportTablesNotStarted() == null) ? 0 : getImportTablesNotStarted().hashCode()); 
        hashCode = prime * hashCode + ((getAvgResizeRateInMegaBytesPerSecond() == null) ? 0 : getAvgResizeRateInMegaBytesPerSecond().hashCode()); 
        hashCode = prime * hashCode + ((getTotalResizeDataInMegaBytes() == null) ? 0 : getTotalResizeDataInMegaBytes().hashCode()); 
        hashCode = prime * hashCode + ((getProgressInMegaBytes() == null) ? 0 : getProgressInMegaBytes().hashCode()); 
        hashCode = prime * hashCode + ((getElapsedTimeInSeconds() == null) ? 0 : getElapsedTimeInSeconds().hashCode()); 
        hashCode = prime * hashCode + ((getEstimatedTimeToCompletionInSeconds() == null) ? 0 : getEstimatedTimeToCompletionInSeconds().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DescribeResizeResult == falsereturn false;
        DescribeResizeResult other = (DescribeResizeResult)obj;
        
        if (other.getTargetNodeType() == null ^ this.getTargetNodeType() == nullreturn false;
        if (other.getTargetNodeType() != null && other.getTargetNodeType().equals(this.getTargetNodeType()) == falsereturn false
        if (other.getTargetNumberOfNodes() == null ^ this.getTargetNumberOfNodes() == nullreturn false;
        if (other.getTargetNumberOfNodes() != null && other.getTargetNumberOfNodes().equals(this.getTargetNumberOfNodes()) == falsereturn false
        if (other.getTargetClusterType() == null ^ this.getTargetClusterType() == nullreturn false;
        if (other.getTargetClusterType() != null && other.getTargetClusterType().equals(this.getTargetClusterType()) == falsereturn false
        if (other.getStatus() == null ^ this.getStatus() == nullreturn false;
        if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == falsereturn false
        if (other.getImportTablesCompleted() == null ^ this.getImportTablesCompleted() == nullreturn false;
        if (other.getImportTablesCompleted() != null && other.getImportTablesCompleted().equals(this.getImportTablesCompleted()) == falsereturn false
        if (other.getImportTablesInProgress() == null ^ this.getImportTablesInProgress() == nullreturn false;
        if (other.getImportTablesInProgress() != null && other.getImportTablesInProgress().equals(this.getImportTablesInProgress()) == falsereturn false
        if (other.getImportTablesNotStarted() == null ^ this.getImportTablesNotStarted() == nullreturn false;
        if (other.getImportTablesNotStarted() != null && other.getImportTablesNotStarted().equals(this.getImportTablesNotStarted()) == falsereturn false
        if (other.getAvgResizeRateInMegaBytesPerSecond() == null ^ this.getAvgResizeRateInMegaBytesPerSecond() == nullreturn false;
        if (other.getAvgResizeRateInMegaBytesPerSecond() != null && other.getAvgResizeRateInMegaBytesPerSecond().equals(this.getAvgResizeRateInMegaBytesPerSecond()) == falsereturn false
        if (other.getTotalResizeDataInMegaBytes() == null ^ this.getTotalResizeDataInMegaBytes() == nullreturn false;
        if (other.getTotalResizeDataInMegaBytes() != null && other.getTotalResizeDataInMegaBytes().equals(this.getTotalResizeDataInMegaBytes()) == falsereturn false
        if (other.getProgressInMegaBytes() == null ^ this.getProgressInMegaBytes() == nullreturn false;
        if (other.getProgressInMegaBytes() != null && other.getProgressInMegaBytes().equals(this.getProgressInMegaBytes()) == falsereturn false
        if (other.getElapsedTimeInSeconds() == null ^ this.getElapsedTimeInSeconds() == nullreturn false;
        if (other.getElapsedTimeInSeconds() != null && other.getElapsedTimeInSeconds().equals(this.getElapsedTimeInSeconds()) == falsereturn false
        if (other.getEstimatedTimeToCompletionInSeconds() == null ^ this.getEstimatedTimeToCompletionInSeconds() == nullreturn false;
        if (other.getEstimatedTimeToCompletionInSeconds() != null && other.getEstimatedTimeToCompletionInSeconds().equals(this.getEstimatedTimeToCompletionInSeconds()) == falsereturn false
        return true;
    }
    
    @Override
    public DescribeResizeResult clone() {
        try {
            return (DescribeResizeResultsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X