@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()); hashCode = prime * hashCode + ((getResizeType() == null) ? 0 : getResizeType().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); hashCode = prime * hashCode + ((getTargetEncryptionType() == null) ? 0 : getTargetEncryptionType().hashCode()); return hashCode; }
public DescribeResizeResult unmarshall(StaxUnmarshallerContext context) throws Exception { DescribeResizeResult describeResizeResult = new DescribeResizeResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; describeResizeResult.setTargetNodeType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; describeResizeResult.setTargetNumberOfNodes(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; describeResizeResult.setTargetClusterType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; describeResizeResult.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; describeResizeResult.withImportTablesCompleted(new ArrayList<String>()); continue; describeResizeResult.withImportTablesCompleted(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; describeResizeResult.withImportTablesInProgress(new ArrayList<String>()); continue; describeResizeResult.withImportTablesInProgress(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; describeResizeResult.withImportTablesNotStarted(new ArrayList<String>());
public DescribeResizeResult unmarshall(StaxUnmarshallerContext context) throws Exception { DescribeResizeResult describeResizeResult = new DescribeResizeResult(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; describeResizeResult.setTargetNodeType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; describeResizeResult.setTargetNumberOfNodes(IntegerStaxUnmarshaller.getInstance().unmarshall(context)); continue; describeResizeResult.setTargetClusterType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; describeResizeResult.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; describeResizeResult.withImportTablesCompleted(new ArrayList<String>()); continue; describeResizeResult.withImportTablesCompleted(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; describeResizeResult.withImportTablesInProgress(new ArrayList<String>()); continue; describeResizeResult.withImportTablesInProgress(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; describeResizeResult.withImportTablesNotStarted(new ArrayList<String>());
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)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getTargetNodeType() != null) sb.append("TargetNodeType: ").append(getTargetNodeType()).append(","); if (getTargetNumberOfNodes() != null) sb.append("TargetNumberOfNodes: ").append(getTargetNumberOfNodes()).append(","); if (getTargetClusterType() != null) sb.append("TargetClusterType: ").append(getTargetClusterType()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getImportTablesCompleted() != null) sb.append("ImportTablesCompleted: ").append(getImportTablesCompleted()).append(","); if (getImportTablesInProgress() != null) sb.append("ImportTablesInProgress: ").append(getImportTablesInProgress()).append(","); if (getImportTablesNotStarted() != null) sb.append("ImportTablesNotStarted: ").append(getImportTablesNotStarted()).append(","); if (getAvgResizeRateInMegaBytesPerSecond() != null) sb.append("AvgResizeRateInMegaBytesPerSecond: ").append(getAvgResizeRateInMegaBytesPerSecond()).append(","); if (getTotalResizeDataInMegaBytes() != null) sb.append("TotalResizeDataInMegaBytes: ").append(getTotalResizeDataInMegaBytes()).append(","); if (getProgressInMegaBytes() != null) sb.append("ProgressInMegaBytes: ").append(getProgressInMegaBytes()).append(","); if (getElapsedTimeInSeconds() != null) sb.append("ElapsedTimeInSeconds: ").append(getElapsedTimeInSeconds()).append(","); if (getEstimatedTimeToCompletionInSeconds() != null) sb.append("EstimatedTimeToCompletionInSeconds: ").append(getEstimatedTimeToCompletionInSeconds()).append(","); if (getResizeType() != null) sb.append("ResizeType: ").append(getResizeType()).append(","); if (getMessage() != null)
@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()); hashCode = prime * hashCode + ((getResizeType() == null) ? 0 : getResizeType().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); hashCode = prime * hashCode + ((getTargetEncryptionType() == null) ? 0 : getTargetEncryptionType().hashCode()); return hashCode; }
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)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getTargetNodeType() != null) sb.append("TargetNodeType: ").append(getTargetNodeType()).append(","); if (getTargetNumberOfNodes() != null) sb.append("TargetNumberOfNodes: ").append(getTargetNumberOfNodes()).append(","); if (getTargetClusterType() != null) sb.append("TargetClusterType: ").append(getTargetClusterType()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getImportTablesCompleted() != null) sb.append("ImportTablesCompleted: ").append(getImportTablesCompleted()).append(","); if (getImportTablesInProgress() != null) sb.append("ImportTablesInProgress: ").append(getImportTablesInProgress()).append(","); if (getImportTablesNotStarted() != null) sb.append("ImportTablesNotStarted: ").append(getImportTablesNotStarted()).append(","); if (getAvgResizeRateInMegaBytesPerSecond() != null) sb.append("AvgResizeRateInMegaBytesPerSecond: ").append(getAvgResizeRateInMegaBytesPerSecond()).append(","); if (getTotalResizeDataInMegaBytes() != null) sb.append("TotalResizeDataInMegaBytes: ").append(getTotalResizeDataInMegaBytes()).append(","); if (getProgressInMegaBytes() != null) sb.append("ProgressInMegaBytes: ").append(getProgressInMegaBytes()).append(","); if (getElapsedTimeInSeconds() != null) sb.append("ElapsedTimeInSeconds: ").append(getElapsedTimeInSeconds()).append(","); if (getEstimatedTimeToCompletionInSeconds() != null) sb.append("EstimatedTimeToCompletionInSeconds: ").append(getEstimatedTimeToCompletionInSeconds()).append(","); if (getResizeType() != null) sb.append("ResizeType: ").append(getResizeType()).append(","); if (getMessage() != null)