/** * 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 (getBackupDetails() != null) sb.append("BackupDetails: ").append(getBackupDetails()).append(","); if (getSourceTableDetails() != null) sb.append("SourceTableDetails: ").append(getSourceTableDetails()).append(","); if (getSourceTableFeatureDetails() != null) sb.append("SourceTableFeatureDetails: ").append(getSourceTableFeatureDetails()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(BackupDescription backupDescription, ProtocolMarshaller protocolMarshaller) { if (backupDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(backupDescription.getBackupDetails(), BACKUPDETAILS_BINDING); protocolMarshaller.marshall(backupDescription.getSourceTableDetails(), SOURCETABLEDETAILS_BINDING); protocolMarshaller.marshall(backupDescription.getSourceTableFeatureDetails(), SOURCETABLEFEATUREDETAILS_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()); 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 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; 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 (getBackupDetails() != null) sb.append("BackupDetails: " + getBackupDetails() + ","); if (getSourceTableDetails() != null) sb.append("SourceTableDetails: " + getSourceTableDetails() + ","); if (getSourceTableFeatureDetails() != null) sb.append("SourceTableFeatureDetails: " + getSourceTableFeatureDetails()); sb.append("}"); return sb.toString(); }
@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 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; } }
public void marshall(BackupDescription backupDescription, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (backupDescription.getBackupDetails() != null) { BackupDetails backupDetails = backupDescription.getBackupDetails(); jsonWriter.name("BackupDetails"); BackupDetailsJsonMarshaller.getInstance().marshall(backupDetails, jsonWriter); } if (backupDescription.getSourceTableDetails() != null) { SourceTableDetails sourceTableDetails = backupDescription.getSourceTableDetails(); jsonWriter.name("SourceTableDetails"); SourceTableDetailsJsonMarshaller.getInstance().marshall(sourceTableDetails, jsonWriter); } if (backupDescription.getSourceTableFeatureDetails() != null) { SourceTableFeatureDetails sourceTableFeatureDetails = backupDescription .getSourceTableFeatureDetails(); jsonWriter.name("SourceTableFeatureDetails"); SourceTableFeatureDetailsJsonMarshaller.getInstance().marshall( sourceTableFeatureDetails, jsonWriter); } jsonWriter.endObject(); }
/** * 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 (getBackupDetails() != null) sb.append("BackupDetails: ").append(getBackupDetails()).append(","); if (getSourceTableDetails() != null) sb.append("SourceTableDetails: ").append(getSourceTableDetails()).append(","); if (getSourceTableFeatureDetails() != null) sb.append("SourceTableFeatureDetails: ").append(getSourceTableFeatureDetails()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(BackupDescription backupDescription, ProtocolMarshaller protocolMarshaller) { if (backupDescription == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(backupDescription.getBackupDetails(), BACKUPDETAILS_BINDING); protocolMarshaller.marshall(backupDescription.getSourceTableDetails(), SOURCETABLEDETAILS_BINDING); protocolMarshaller.marshall(backupDescription.getSourceTableFeatureDetails(), SOURCETABLEFEATUREDETAILS_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()); 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 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; }