@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClusterIdentifier() == null) ? 0 : getClusterIdentifier().hashCode()); hashCode = prime * hashCode + ((getRetentionPeriod() == null) ? 0 : getRetentionPeriod().hashCode()); hashCode = prime * hashCode + ((getManual() == null) ? 0 : getManual().hashCode()); return hashCode; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getClusterIdentifier() != null) sb.append("ClusterIdentifier: ").append(getClusterIdentifier()).append(","); if (getRetentionPeriod() != null) sb.append("RetentionPeriod: ").append(getRetentionPeriod()).append(","); if (getManual() != null) sb.append("Manual: ").append(getManual()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModifySnapshotCopyRetentionPeriodRequest == false) return false; ModifySnapshotCopyRetentionPeriodRequest other = (ModifySnapshotCopyRetentionPeriodRequest) obj; if (other.getClusterIdentifier() == null ^ this.getClusterIdentifier() == null) return false; if (other.getClusterIdentifier() != null && other.getClusterIdentifier().equals(this.getClusterIdentifier()) == false) return false; if (other.getRetentionPeriod() == null ^ this.getRetentionPeriod() == null) return false; if (other.getRetentionPeriod() != null && other.getRetentionPeriod().equals(this.getRetentionPeriod()) == false) return false; if (other.getManual() == null ^ this.getManual() == null) return false; if (other.getManual() != null && other.getManual().equals(this.getManual()) == false) return false; return true; }
public Request<ModifySnapshotCopyRetentionPeriodRequest> marshall(ModifySnapshotCopyRetentionPeriodRequest modifySnapshotCopyRetentionPeriodRequest) { if (modifySnapshotCopyRetentionPeriodRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<ModifySnapshotCopyRetentionPeriodRequest> request = new DefaultRequest<ModifySnapshotCopyRetentionPeriodRequest>( modifySnapshotCopyRetentionPeriodRequest, "AmazonRedshift"); request.addParameter("Action", "ModifySnapshotCopyRetentionPeriod"); request.addParameter("Version", "2012-12-01"); request.setHttpMethod(HttpMethodName.POST); if (modifySnapshotCopyRetentionPeriodRequest.getClusterIdentifier() != null) { request.addParameter("ClusterIdentifier", StringUtils.fromString(modifySnapshotCopyRetentionPeriodRequest.getClusterIdentifier())); } if (modifySnapshotCopyRetentionPeriodRequest.getRetentionPeriod() != null) { request.addParameter("RetentionPeriod", StringUtils.fromInteger(modifySnapshotCopyRetentionPeriodRequest.getRetentionPeriod())); } if (modifySnapshotCopyRetentionPeriodRequest.getManual() != null) { request.addParameter("Manual", StringUtils.fromBoolean(modifySnapshotCopyRetentionPeriodRequest.getManual())); } return request; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClusterIdentifier() == null) ? 0 : getClusterIdentifier().hashCode()); hashCode = prime * hashCode + ((getRetentionPeriod() == null) ? 0 : getRetentionPeriod().hashCode()); hashCode = prime * hashCode + ((getManual() == null) ? 0 : getManual().hashCode()); return hashCode; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getClusterIdentifier() != null) sb.append("ClusterIdentifier: ").append(getClusterIdentifier()).append(","); if (getRetentionPeriod() != null) sb.append("RetentionPeriod: ").append(getRetentionPeriod()).append(","); if (getManual() != null) sb.append("Manual: ").append(getManual()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModifySnapshotCopyRetentionPeriodRequest == false) return false; ModifySnapshotCopyRetentionPeriodRequest other = (ModifySnapshotCopyRetentionPeriodRequest) obj; if (other.getClusterIdentifier() == null ^ this.getClusterIdentifier() == null) return false; if (other.getClusterIdentifier() != null && other.getClusterIdentifier().equals(this.getClusterIdentifier()) == false) return false; if (other.getRetentionPeriod() == null ^ this.getRetentionPeriod() == null) return false; if (other.getRetentionPeriod() != null && other.getRetentionPeriod().equals(this.getRetentionPeriod()) == false) return false; if (other.getManual() == null ^ this.getManual() == null) return false; if (other.getManual() != null && other.getManual().equals(this.getManual()) == false) return false; return true; }
public Request<ModifySnapshotCopyRetentionPeriodRequest> marshall(ModifySnapshotCopyRetentionPeriodRequest modifySnapshotCopyRetentionPeriodRequest) { if (modifySnapshotCopyRetentionPeriodRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<ModifySnapshotCopyRetentionPeriodRequest> request = new DefaultRequest<ModifySnapshotCopyRetentionPeriodRequest>( modifySnapshotCopyRetentionPeriodRequest, "AmazonRedshift"); request.addParameter("Action", "ModifySnapshotCopyRetentionPeriod"); request.addParameter("Version", "2012-12-01"); request.setHttpMethod(HttpMethodName.POST); if (modifySnapshotCopyRetentionPeriodRequest.getClusterIdentifier() != null) { request.addParameter("ClusterIdentifier", StringUtils.fromString(modifySnapshotCopyRetentionPeriodRequest.getClusterIdentifier())); } if (modifySnapshotCopyRetentionPeriodRequest.getRetentionPeriod() != null) { request.addParameter("RetentionPeriod", StringUtils.fromInteger(modifySnapshotCopyRetentionPeriodRequest.getRetentionPeriod())); } if (modifySnapshotCopyRetentionPeriodRequest.getManual() != null) { request.addParameter("Manual", StringUtils.fromBoolean(modifySnapshotCopyRetentionPeriodRequest.getManual())); } return request; }