public BackupDetails unmarshall(JsonUnmarshallerContext context) throws Exception { BackupDetails backupDetails = new BackupDetails(); if (context.testExpression("BackupArn", targetDepth)) { context.nextToken(); backupDetails.setBackupArn(context.getUnmarshaller(String.class).unmarshall(context)); backupDetails.setBackupName(context.getUnmarshaller(String.class).unmarshall(context)); backupDetails.setBackupSizeBytes(context.getUnmarshaller(Long.class).unmarshall(context)); backupDetails.setBackupStatus(context.getUnmarshaller(String.class).unmarshall(context)); backupDetails.setBackupType(context.getUnmarshaller(String.class).unmarshall(context)); backupDetails.setBackupCreationDateTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); backupDetails.setBackupExpiryDateTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateBackupResult == false) return false; CreateBackupResult other = (CreateBackupResult) obj; if (other.getBackupDetails() == null ^ this.getBackupDetails() == null) return false; if (other.getBackupDetails() != null && other.getBackupDetails().equals(this.getBackupDetails()) == false) return false; return true; }
@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; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupDetails() == null) ? 0 : getBackupDetails().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupDetails() == null) ? 0 : getBackupDetails().hashCode()); hashCode = prime * hashCode + ((getSourceTableDetails() == null) ? 0 : getSourceTableDetails().hashCode()); hashCode = prime * hashCode + ((getSourceTableFeatureDetails() == null) ? 0 : getSourceTableFeatureDetails().hashCode()); return hashCode; }
return false; BackupDetails other = (BackupDetails) obj; if (other.getBackupArn() == null ^ this.getBackupArn() == null) return false; if (other.getBackupArn() != null && other.getBackupArn().equals(this.getBackupArn()) == false) return false; if (other.getBackupName() == null ^ this.getBackupName() == null) return false; if (other.getBackupName() != null && other.getBackupName().equals(this.getBackupName()) == false) return false; if (other.getBackupSizeBytes() == null ^ this.getBackupSizeBytes() == null) return false; 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) return false; if (other.getBackupType() != null && other.getBackupType().equals(this.getBackupType()) == false) return false; if (other.getBackupCreationDateTime() == null ^ this.getBackupCreationDateTime() == null) return false; if (other.getBackupCreationDateTime() != null && other.getBackupCreationDateTime().equals(this.getBackupCreationDateTime()) == false) return false; if (other.getBackupExpiryDateTime() == null ^ this.getBackupExpiryDateTime() == null) return false; if (other.getBackupExpiryDateTime() != null && other.getBackupExpiryDateTime().equals(this.getBackupExpiryDateTime()) == false)
return null; BackupDetails backupDetails = new BackupDetails(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("BackupArn")) { backupDetails.setBackupArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("BackupName")) { backupDetails.setBackupName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("BackupSizeBytes")) { backupDetails.setBackupSizeBytes(LongJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("BackupStatus")) { backupDetails.setBackupStatus(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("BackupType")) { backupDetails.setBackupType(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("BackupCreationDateTime")) { backupDetails.setBackupCreationDateTime(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("BackupExpiryDateTime")) { backupDetails.setBackupExpiryDateTime(DateJsonUnmarshaller.getInstance() .unmarshall(context)); } else {
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupDetails() == null) ? 0 : getBackupDetails().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BackupDescription == false) return false; BackupDescription other = (BackupDescription) obj; if (other.getBackupDetails() == null ^ this.getBackupDetails() == null) return false; if (other.getBackupDetails() != null && other.getBackupDetails().equals(this.getBackupDetails()) == false) return false; if (other.getSourceTableDetails() == null ^ this.getSourceTableDetails() == null) return false; if (other.getSourceTableDetails() != null && other.getSourceTableDetails().equals(this.getSourceTableDetails()) == false) return false; if (other.getSourceTableFeatureDetails() == null ^ this.getSourceTableFeatureDetails() == null) return false; if (other.getSourceTableFeatureDetails() != null && other.getSourceTableFeatureDetails().equals(this.getSourceTableFeatureDetails()) == false) return false; return true; }
/** * 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(); }
public BackupDetails unmarshall(JsonUnmarshallerContext context) throws Exception { BackupDetails backupDetails = new BackupDetails(); if (context.testExpression("BackupArn", targetDepth)) { context.nextToken(); backupDetails.setBackupArn(context.getUnmarshaller(String.class).unmarshall(context)); backupDetails.setBackupName(context.getUnmarshaller(String.class).unmarshall(context)); backupDetails.setBackupSizeBytes(context.getUnmarshaller(Long.class).unmarshall(context)); backupDetails.setBackupStatus(context.getUnmarshaller(String.class).unmarshall(context)); backupDetails.setBackupType(context.getUnmarshaller(String.class).unmarshall(context)); backupDetails.setBackupCreationDateTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context)); backupDetails.setBackupExpiryDateTime(DateJsonUnmarshallerFactory.getInstance("unixTimestamp").unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupDetails() == null) ? 0 : getBackupDetails().hashCode()); hashCode = prime * hashCode + ((getSourceTableDetails() == null) ? 0 : getSourceTableDetails().hashCode()); hashCode = prime * hashCode + ((getSourceTableFeatureDetails() == null) ? 0 : getSourceTableFeatureDetails() .hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateBackupResult == false) return false; CreateBackupResult other = (CreateBackupResult) obj; if (other.getBackupDetails() == null ^ this.getBackupDetails() == null) return false; if (other.getBackupDetails() != null && other.getBackupDetails().equals(this.getBackupDetails()) == false) return false; return true; } }
/** * 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); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupDetails() == null) ? 0 : getBackupDetails().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BackupDescription == false) return false; BackupDescription other = (BackupDescription) obj; if (other.getBackupDetails() == null ^ this.getBackupDetails() == null) return false; if (other.getBackupDetails() != null && other.getBackupDetails().equals(this.getBackupDetails()) == false) return false; if (other.getSourceTableDetails() == null ^ this.getSourceTableDetails() == null) return false; if (other.getSourceTableDetails() != null && other.getSourceTableDetails().equals(this.getSourceTableDetails()) == false) return false; if (other.getSourceTableFeatureDetails() == null ^ this.getSourceTableFeatureDetails() == null) return false; if (other.getSourceTableFeatureDetails() != null && other.getSourceTableFeatureDetails().equals(this.getSourceTableFeatureDetails()) == false) return false; return true; } }
@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; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupDetails() == null) ? 0 : getBackupDetails().hashCode()); hashCode = prime * hashCode + ((getSourceTableDetails() == null) ? 0 : getSourceTableDetails().hashCode()); hashCode = prime * hashCode + ((getSourceTableFeatureDetails() == null) ? 0 : getSourceTableFeatureDetails().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateBackupResult == false) return false; CreateBackupResult other = (CreateBackupResult) obj; if (other.getBackupDetails() == null ^ this.getBackupDetails() == null) return false; if (other.getBackupDetails() != null && other.getBackupDetails().equals(this.getBackupDetails()) == false) return false; return true; }
/** * 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(); }