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

com.amazonaws.services.redshift.model.DescribeResizeResult Maven / Gradle / Ivy

/*
 * Copyright 2010-2014 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;

import java.io.Serializable;

/**
 * 

* Describes the result of a cluster resize operation. *

*/ public class DescribeResizeResult implements Serializable { /** * 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. */ private com.amazonaws.internal.ListWithAutoConstructFlag importTablesCompleted; /** * The names of tables that are being currently imported.

Valid * Values: List of table names. */ private com.amazonaws.internal.ListWithAutoConstructFlag importTablesInProgress; /** * The names of tables that have not been yet imported.

Valid Values: * List of table names */ private com.amazonaws.internal.ListWithAutoConstructFlag importTablesNotStarted; /** * 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. * * @return The node type that the cluster will have after the resize operation is * complete. */ public String getTargetNodeType() { return targetNodeType; } /** * The node type that the cluster will have after the resize operation is * complete. * * @param targetNodeType The node type that the cluster will have after the resize operation is * complete. */ public void setTargetNodeType(String targetNodeType) { this.targetNodeType = 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. * * @param targetNodeType The node type that the cluster will have after the resize operation is * complete. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeResizeResult withTargetNodeType(String targetNodeType) { this.targetNodeType = targetNodeType; return this; } /** * The number of nodes that the cluster will have after the resize * operation is complete. * * @return The number of nodes that the cluster will have after the resize * operation is complete. */ public Integer getTargetNumberOfNodes() { return targetNumberOfNodes; } /** * The number of nodes that the cluster will have after the resize * operation is complete. * * @param targetNumberOfNodes The number of nodes that the cluster will have after the resize * operation is complete. */ public void setTargetNumberOfNodes(Integer targetNumberOfNodes) { this.targetNumberOfNodes = 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. * * @param targetNumberOfNodes The number of nodes that the cluster will have after the resize * operation is complete. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeResizeResult withTargetNumberOfNodes(Integer targetNumberOfNodes) { this.targetNumberOfNodes = targetNumberOfNodes; return this; } /** * The cluster type after the resize operation is complete.

Valid * Values: multi-node | single-node * * @return The cluster type after the resize operation is complete.

Valid * Values: multi-node | single-node */ public String getTargetClusterType() { return targetClusterType; } /** * The cluster type after the resize operation is complete.

Valid * Values: multi-node | single-node * * @param targetClusterType The cluster type after the resize operation is complete.

Valid * Values: multi-node | single-node */ public void setTargetClusterType(String targetClusterType) { this.targetClusterType = 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. * * @param targetClusterType The cluster type after the resize operation is complete.

Valid * Values: multi-node | single-node * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeResizeResult withTargetClusterType(String targetClusterType) { this.targetClusterType = targetClusterType; return this; } /** * The status of the resize operation.

Valid Values: NONE * | IN_PROGRESS | FAILED | * SUCCEEDED * * @return The status of the resize operation.

Valid Values: NONE * | IN_PROGRESS | FAILED | * SUCCEEDED */ public String getStatus() { return status; } /** * The status of the resize operation.

Valid Values: NONE * | IN_PROGRESS | FAILED | * SUCCEEDED * * @param status The status of the resize operation.

Valid Values: NONE * | IN_PROGRESS | FAILED | * SUCCEEDED */ public void setStatus(String status) { this.status = 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. * * @param status The status of the resize operation.

Valid Values: NONE * | IN_PROGRESS | FAILED | * SUCCEEDED * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeResizeResult withStatus(String status) { this.status = status; return this; } /** * The names of tables that have been completely imported .

Valid * Values: List of table names. * * @return The names of tables that have been completely imported .

Valid * Values: List of table names. */ public java.util.List getImportTablesCompleted() { if (importTablesCompleted == null) { importTablesCompleted = new com.amazonaws.internal.ListWithAutoConstructFlag(); importTablesCompleted.setAutoConstruct(true); } return importTablesCompleted; } /** * The names of tables that have been completely imported .

Valid * Values: List of table names. * * @param importTablesCompleted The names of tables that have been completely imported .

Valid * Values: List of table names. */ public void setImportTablesCompleted(java.util.Collection importTablesCompleted) { if (importTablesCompleted == null) { this.importTablesCompleted = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag importTablesCompletedCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(importTablesCompleted.size()); importTablesCompletedCopy.addAll(importTablesCompleted); this.importTablesCompleted = importTablesCompletedCopy; } /** * 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. * * @param importTablesCompleted The names of tables that have been completely imported .

Valid * Values: List of table names. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeResizeResult withImportTablesCompleted(String... importTablesCompleted) { if (getImportTablesCompleted() == null) setImportTablesCompleted(new java.util.ArrayList(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. * * @param importTablesCompleted The names of tables that have been completely imported .

Valid * Values: List of table names. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeResizeResult withImportTablesCompleted(java.util.Collection importTablesCompleted) { if (importTablesCompleted == null) { this.importTablesCompleted = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag importTablesCompletedCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(importTablesCompleted.size()); importTablesCompletedCopy.addAll(importTablesCompleted); this.importTablesCompleted = importTablesCompletedCopy; } return this; } /** * The names of tables that are being currently imported.

Valid * Values: List of table names. * * @return The names of tables that are being currently imported.

Valid * Values: List of table names. */ public java.util.List getImportTablesInProgress() { if (importTablesInProgress == null) { importTablesInProgress = new com.amazonaws.internal.ListWithAutoConstructFlag(); importTablesInProgress.setAutoConstruct(true); } return importTablesInProgress; } /** * The names of tables that are being currently imported.

Valid * Values: List of table names. * * @param importTablesInProgress The names of tables that are being currently imported.

Valid * Values: List of table names. */ public void setImportTablesInProgress(java.util.Collection importTablesInProgress) { if (importTablesInProgress == null) { this.importTablesInProgress = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag importTablesInProgressCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(importTablesInProgress.size()); importTablesInProgressCopy.addAll(importTablesInProgress); this.importTablesInProgress = importTablesInProgressCopy; } /** * 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. * * @param importTablesInProgress The names of tables that are being currently imported.

Valid * Values: List of table names. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeResizeResult withImportTablesInProgress(String... importTablesInProgress) { if (getImportTablesInProgress() == null) setImportTablesInProgress(new java.util.ArrayList(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. * * @param importTablesInProgress The names of tables that are being currently imported.

Valid * Values: List of table names. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeResizeResult withImportTablesInProgress(java.util.Collection importTablesInProgress) { if (importTablesInProgress == null) { this.importTablesInProgress = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag importTablesInProgressCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(importTablesInProgress.size()); importTablesInProgressCopy.addAll(importTablesInProgress); this.importTablesInProgress = importTablesInProgressCopy; } return this; } /** * The names of tables that have not been yet imported.

Valid Values: * List of table names * * @return The names of tables that have not been yet imported.

Valid Values: * List of table names */ public java.util.List getImportTablesNotStarted() { if (importTablesNotStarted == null) { importTablesNotStarted = new com.amazonaws.internal.ListWithAutoConstructFlag(); importTablesNotStarted.setAutoConstruct(true); } return importTablesNotStarted; } /** * The names of tables that have not been yet imported.

Valid Values: * List of table names * * @param importTablesNotStarted The names of tables that have not been yet imported.

Valid Values: * List of table names */ public void setImportTablesNotStarted(java.util.Collection importTablesNotStarted) { if (importTablesNotStarted == null) { this.importTablesNotStarted = null; return; } com.amazonaws.internal.ListWithAutoConstructFlag importTablesNotStartedCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(importTablesNotStarted.size()); importTablesNotStartedCopy.addAll(importTablesNotStarted); this.importTablesNotStarted = importTablesNotStartedCopy; } /** * 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. * * @param importTablesNotStarted The names of tables that have not been yet imported.

Valid Values: * List of table names * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeResizeResult withImportTablesNotStarted(String... importTablesNotStarted) { if (getImportTablesNotStarted() == null) setImportTablesNotStarted(new java.util.ArrayList(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. * * @param importTablesNotStarted The names of tables that have not been yet imported.

Valid Values: * List of table names * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeResizeResult withImportTablesNotStarted(java.util.Collection importTablesNotStarted) { if (importTablesNotStarted == null) { this.importTablesNotStarted = null; } else { com.amazonaws.internal.ListWithAutoConstructFlag importTablesNotStartedCopy = new com.amazonaws.internal.ListWithAutoConstructFlag(importTablesNotStarted.size()); importTablesNotStartedCopy.addAll(importTablesNotStarted); this.importTablesNotStarted = 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. * * @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. */ public Double getAvgResizeRateInMegaBytesPerSecond() { return 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. * * @param 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 = 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. * * @param 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. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeResizeResult withAvgResizeRateInMegaBytesPerSecond(Double avgResizeRateInMegaBytesPerSecond) { this.avgResizeRateInMegaBytesPerSecond = avgResizeRateInMegaBytesPerSecond; return this; } /** * 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. */ public Long getTotalResizeDataInMegaBytes() { return totalResizeDataInMegaBytes; } /** * The estimated total amount of data, in megabytes, on the cluster * before the resize operation began. * * @param totalResizeDataInMegaBytes The estimated total amount of data, in megabytes, on the cluster * before the resize operation began. */ public void setTotalResizeDataInMegaBytes(Long totalResizeDataInMegaBytes) { this.totalResizeDataInMegaBytes = 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. * * @param totalResizeDataInMegaBytes The estimated total amount of data, in megabytes, on the cluster * before the resize operation began. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeResizeResult withTotalResizeDataInMegaBytes(Long totalResizeDataInMegaBytes) { this.totalResizeDataInMegaBytes = 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). * * @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). */ public Long getProgressInMegaBytes() { return 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). * * @param 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 = 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. * * @param 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). * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeResizeResult withProgressInMegaBytes(Long progressInMegaBytes) { this.progressInMegaBytes = 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. * * @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. */ public Long getElapsedTimeInSeconds() { return 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. * * @param 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 = 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. * * @param 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. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeResizeResult withElapsedTimeInSeconds(Long elapsedTimeInSeconds) { this.elapsedTimeInSeconds = 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. * * @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. */ public Long getEstimatedTimeToCompletionInSeconds() { return 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. * * @param 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 = 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. * * @param 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. * * @return A reference to this updated object so that method calls can be chained * together. */ public DescribeResizeResult withEstimatedTimeToCompletionInSeconds(Long estimatedTimeToCompletionInSeconds) { this.estimatedTimeToCompletionInSeconds = estimatedTimeToCompletionInSeconds; 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 (getTargetNodeType() != null) sb.append("TargetNodeType: " + getTargetNodeType() + ","); if (getTargetNumberOfNodes() != null) sb.append("TargetNumberOfNodes: " + getTargetNumberOfNodes() + ","); if (getTargetClusterType() != null) sb.append("TargetClusterType: " + getTargetClusterType() + ","); if (getStatus() != null) sb.append("Status: " + getStatus() + ","); if (getImportTablesCompleted() != null) sb.append("ImportTablesCompleted: " + getImportTablesCompleted() + ","); if (getImportTablesInProgress() != null) sb.append("ImportTablesInProgress: " + getImportTablesInProgress() + ","); if (getImportTablesNotStarted() != null) sb.append("ImportTablesNotStarted: " + getImportTablesNotStarted() + ","); if (getAvgResizeRateInMegaBytesPerSecond() != null) sb.append("AvgResizeRateInMegaBytesPerSecond: " + getAvgResizeRateInMegaBytesPerSecond() + ","); if (getTotalResizeDataInMegaBytes() != null) sb.append("TotalResizeDataInMegaBytes: " + getTotalResizeDataInMegaBytes() + ","); if (getProgressInMegaBytes() != null) sb.append("ProgressInMegaBytes: " + getProgressInMegaBytes() + ","); if (getElapsedTimeInSeconds() != null) sb.append("ElapsedTimeInSeconds: " + getElapsedTimeInSeconds() + ","); if (getEstimatedTimeToCompletionInSeconds() != null) sb.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 == obj) return true; if (obj == null) return false; if (obj instanceof DescribeResizeResult == false) return false; DescribeResizeResult other = (DescribeResizeResult)obj; if (other.getTargetNodeType() == null ^ this.getTargetNodeType() == null) return false; if (other.getTargetNodeType() != null && other.getTargetNodeType().equals(this.getTargetNodeType()) == false) return false; if (other.getTargetNumberOfNodes() == null ^ this.getTargetNumberOfNodes() == null) return false; if (other.getTargetNumberOfNodes() != null && other.getTargetNumberOfNodes().equals(this.getTargetNumberOfNodes()) == false) return false; if (other.getTargetClusterType() == null ^ this.getTargetClusterType() == null) return false; if (other.getTargetClusterType() != null && other.getTargetClusterType().equals(this.getTargetClusterType()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getImportTablesCompleted() == null ^ this.getImportTablesCompleted() == null) return false; if (other.getImportTablesCompleted() != null && other.getImportTablesCompleted().equals(this.getImportTablesCompleted()) == false) return false; if (other.getImportTablesInProgress() == null ^ this.getImportTablesInProgress() == null) return false; if (other.getImportTablesInProgress() != null && other.getImportTablesInProgress().equals(this.getImportTablesInProgress()) == false) return false; if (other.getImportTablesNotStarted() == null ^ this.getImportTablesNotStarted() == null) return false; if (other.getImportTablesNotStarted() != null && other.getImportTablesNotStarted().equals(this.getImportTablesNotStarted()) == false) return false; if (other.getAvgResizeRateInMegaBytesPerSecond() == null ^ this.getAvgResizeRateInMegaBytesPerSecond() == null) return false; if (other.getAvgResizeRateInMegaBytesPerSecond() != null && other.getAvgResizeRateInMegaBytesPerSecond().equals(this.getAvgResizeRateInMegaBytesPerSecond()) == false) return false; if (other.getTotalResizeDataInMegaBytes() == null ^ this.getTotalResizeDataInMegaBytes() == null) return false; if (other.getTotalResizeDataInMegaBytes() != null && other.getTotalResizeDataInMegaBytes().equals(this.getTotalResizeDataInMegaBytes()) == false) return false; if (other.getProgressInMegaBytes() == null ^ this.getProgressInMegaBytes() == null) return false; if (other.getProgressInMegaBytes() != null && other.getProgressInMegaBytes().equals(this.getProgressInMegaBytes()) == false) return false; if (other.getElapsedTimeInSeconds() == null ^ this.getElapsedTimeInSeconds() == null) return false; if (other.getElapsedTimeInSeconds() != null && other.getElapsedTimeInSeconds().equals(this.getElapsedTimeInSeconds()) == false) return false; if (other.getEstimatedTimeToCompletionInSeconds() == null ^ this.getEstimatedTimeToCompletionInSeconds() == null) return false; if (other.getEstimatedTimeToCompletionInSeconds() != null && other.getEstimatedTimeToCompletionInSeconds().equals(this.getEstimatedTimeToCompletionInSeconds()) == false) return false; return true; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy