/** * 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 (getBackupArn() != null) sb.append("BackupArn: ").append(getBackupArn()).append(","); if (getBackupName() != null) sb.append("BackupName: ").append(getBackupName()).append(","); if (getBackupSizeBytes() != null) sb.append("BackupSizeBytes: ").append(getBackupSizeBytes()).append(","); if (getBackupStatus() != null) sb.append("BackupStatus: ").append(getBackupStatus()).append(","); if (getBackupType() != null) sb.append("BackupType: ").append(getBackupType()).append(","); if (getBackupCreationDateTime() != null) sb.append("BackupCreationDateTime: ").append(getBackupCreationDateTime()).append(","); if (getBackupExpiryDateTime() != null) sb.append("BackupExpiryDateTime: ").append(getBackupExpiryDateTime()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupArn() == null) ? 0 : getBackupArn().hashCode()); hashCode = prime * hashCode + ((getBackupName() == null) ? 0 : getBackupName().hashCode()); hashCode = prime * hashCode + ((getBackupSizeBytes() == null) ? 0 : getBackupSizeBytes().hashCode()); hashCode = prime * hashCode + ((getBackupStatus() == null) ? 0 : getBackupStatus().hashCode()); hashCode = prime * hashCode + ((getBackupType() == null) ? 0 : getBackupType().hashCode()); hashCode = prime * hashCode + ((getBackupCreationDateTime() == null) ? 0 : getBackupCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getBackupExpiryDateTime() == null) ? 0 : getBackupExpiryDateTime().hashCode()); return hashCode; }
if (other.getBackupSizeBytes() != null && other.getBackupSizeBytes().equals(this.getBackupSizeBytes()) == false) return false; if (other.getBackupStatus() == null ^ this.getBackupStatus() == null) return false; if (other.getBackupStatus() != null && other.getBackupStatus().equals(this.getBackupStatus()) == false) return false; if (other.getBackupType() == null ^ this.getBackupType() == null)
/** * Marshall the given parameter object. */ public void marshall(BackupDetails backupDetails, ProtocolMarshaller protocolMarshaller) { if (backupDetails == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(backupDetails.getBackupArn(), BACKUPARN_BINDING); protocolMarshaller.marshall(backupDetails.getBackupName(), BACKUPNAME_BINDING); protocolMarshaller.marshall(backupDetails.getBackupSizeBytes(), BACKUPSIZEBYTES_BINDING); protocolMarshaller.marshall(backupDetails.getBackupStatus(), BACKUPSTATUS_BINDING); protocolMarshaller.marshall(backupDetails.getBackupType(), BACKUPTYPE_BINDING); protocolMarshaller.marshall(backupDetails.getBackupCreationDateTime(), BACKUPCREATIONDATETIME_BINDING); protocolMarshaller.marshall(backupDetails.getBackupExpiryDateTime(), BACKUPEXPIRYDATETIME_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * 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 (getBackupArn() != null) sb.append("BackupArn: " + getBackupArn() + ","); if (getBackupName() != null) sb.append("BackupName: " + getBackupName() + ","); if (getBackupSizeBytes() != null) sb.append("BackupSizeBytes: " + getBackupSizeBytes() + ","); if (getBackupStatus() != null) sb.append("BackupStatus: " + getBackupStatus() + ","); if (getBackupType() != null) sb.append("BackupType: " + getBackupType() + ","); if (getBackupCreationDateTime() != null) sb.append("BackupCreationDateTime: " + getBackupCreationDateTime() + ","); if (getBackupExpiryDateTime() != null) sb.append("BackupExpiryDateTime: " + getBackupExpiryDateTime()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupArn() == null) ? 0 : getBackupArn().hashCode()); hashCode = prime * hashCode + ((getBackupName() == null) ? 0 : getBackupName().hashCode()); hashCode = prime * hashCode + ((getBackupSizeBytes() == null) ? 0 : getBackupSizeBytes().hashCode()); hashCode = prime * hashCode + ((getBackupStatus() == null) ? 0 : getBackupStatus().hashCode()); hashCode = prime * hashCode + ((getBackupType() == null) ? 0 : getBackupType().hashCode()); hashCode = prime * hashCode + ((getBackupCreationDateTime() == null) ? 0 : getBackupCreationDateTime() .hashCode()); hashCode = prime * hashCode + ((getBackupExpiryDateTime() == null) ? 0 : getBackupExpiryDateTime().hashCode()); return hashCode; }
&& other.getBackupSizeBytes().equals(this.getBackupSizeBytes()) == false) return false; if (other.getBackupStatus() == null ^ this.getBackupStatus() == null) return false; if (other.getBackupStatus() != null && other.getBackupStatus().equals(this.getBackupStatus()) == false) return false; if (other.getBackupType() == null ^ this.getBackupType() == null)
jsonWriter.value(backupSizeBytes); if (backupDetails.getBackupStatus() != null) { String backupStatus = backupDetails.getBackupStatus(); jsonWriter.name("BackupStatus"); jsonWriter.value(backupStatus);
/** * 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 (getBackupArn() != null) sb.append("BackupArn: ").append(getBackupArn()).append(","); if (getBackupName() != null) sb.append("BackupName: ").append(getBackupName()).append(","); if (getBackupSizeBytes() != null) sb.append("BackupSizeBytes: ").append(getBackupSizeBytes()).append(","); if (getBackupStatus() != null) sb.append("BackupStatus: ").append(getBackupStatus()).append(","); if (getBackupType() != null) sb.append("BackupType: ").append(getBackupType()).append(","); if (getBackupCreationDateTime() != null) sb.append("BackupCreationDateTime: ").append(getBackupCreationDateTime()).append(","); if (getBackupExpiryDateTime() != null) sb.append("BackupExpiryDateTime: ").append(getBackupExpiryDateTime()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupArn() == null) ? 0 : getBackupArn().hashCode()); hashCode = prime * hashCode + ((getBackupName() == null) ? 0 : getBackupName().hashCode()); hashCode = prime * hashCode + ((getBackupSizeBytes() == null) ? 0 : getBackupSizeBytes().hashCode()); hashCode = prime * hashCode + ((getBackupStatus() == null) ? 0 : getBackupStatus().hashCode()); hashCode = prime * hashCode + ((getBackupType() == null) ? 0 : getBackupType().hashCode()); hashCode = prime * hashCode + ((getBackupCreationDateTime() == null) ? 0 : getBackupCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getBackupExpiryDateTime() == null) ? 0 : getBackupExpiryDateTime().hashCode()); return hashCode; }
if (other.getBackupSizeBytes() != null && other.getBackupSizeBytes().equals(this.getBackupSizeBytes()) == false) return false; if (other.getBackupStatus() == null ^ this.getBackupStatus() == null) return false; if (other.getBackupStatus() != null && other.getBackupStatus().equals(this.getBackupStatus()) == false) return false; if (other.getBackupType() == null ^ this.getBackupType() == null)
/** * Marshall the given parameter object. */ public void marshall(BackupDetails backupDetails, ProtocolMarshaller protocolMarshaller) { if (backupDetails == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(backupDetails.getBackupArn(), BACKUPARN_BINDING); protocolMarshaller.marshall(backupDetails.getBackupName(), BACKUPNAME_BINDING); protocolMarshaller.marshall(backupDetails.getBackupSizeBytes(), BACKUPSIZEBYTES_BINDING); protocolMarshaller.marshall(backupDetails.getBackupStatus(), BACKUPSTATUS_BINDING); protocolMarshaller.marshall(backupDetails.getBackupType(), BACKUPTYPE_BINDING); protocolMarshaller.marshall(backupDetails.getBackupCreationDateTime(), BACKUPCREATIONDATETIME_BINDING); protocolMarshaller.marshall(backupDetails.getBackupExpiryDateTime(), BACKUPEXPIRYDATETIME_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }