@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 int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupDescription() == null) ? 0 : getBackupDescription().hashCode()); return hashCode; }
/** * <p> * Contains the details of the backup created for the table. * </p> * * @param backupDetails * Contains the details of the backup created for the table. * @return Returns a reference to this object so that method calls can be chained together. */ public BackupDescription withBackupDetails(BackupDetails backupDetails) { setBackupDetails(backupDetails); return this; }
public BackupDescription unmarshall(JsonUnmarshallerContext context) throws Exception { BackupDescription backupDescription = new BackupDescription(); if (context.testExpression("BackupDetails", targetDepth)) { context.nextToken(); backupDescription.setBackupDetails(BackupDetailsJsonUnmarshaller.getInstance().unmarshall(context)); backupDescription.setSourceTableDetails(SourceTableDetailsJsonUnmarshaller.getInstance().unmarshall(context)); backupDescription.setSourceTableFeatureDetails(SourceTableFeatureDetailsJsonUnmarshaller.getInstance().unmarshall(context));
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteBackupResult == false) return false; DeleteBackupResult other = (DeleteBackupResult) obj; if (other.getBackupDescription() == null ^ this.getBackupDescription() == null) return false; if (other.getBackupDescription() != null && other.getBackupDescription().equals(this.getBackupDescription()) == false) return false; return true; }
/** * <p> * Contains the details of the table when the backup was created. * </p> * * @param sourceTableDetails * Contains the details of the table when the backup was created. * @return Returns a reference to this object so that method calls can be chained together. */ public BackupDescription withSourceTableDetails(SourceTableDetails sourceTableDetails) { setSourceTableDetails(sourceTableDetails); return this; }
/** * <p> * Contains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, * streams, TTL. * </p> * * @param sourceTableFeatureDetails * Contains the details of the features enabled on the table when the backup was created. For example, LSIs, * GSIs, streams, TTL. * @return Returns a reference to this object so that method calls can be chained together. */ public BackupDescription withSourceTableFeatureDetails(SourceTableFeatureDetails sourceTableFeatureDetails) { setSourceTableFeatureDetails(sourceTableFeatureDetails); return this; }
public BackupDescription unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } BackupDescription backupDescription = new BackupDescription(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("BackupDetails")) { backupDescription.setBackupDetails(BackupDetailsJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("SourceTableDetails")) { backupDescription.setSourceTableDetails(SourceTableDetailsJsonUnmarshaller .getInstance() .unmarshall(context)); } else if (name.equals("SourceTableFeatureDetails")) { backupDescription .setSourceTableFeatureDetails(SourceTableFeatureDetailsJsonUnmarshaller .getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return backupDescription; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeBackupResult == false) return false; DescribeBackupResult other = (DescribeBackupResult) obj; if (other.getBackupDescription() == null ^ this.getBackupDescription() == null) return false; if (other.getBackupDescription() != null && other.getBackupDescription().equals(this.getBackupDescription()) == false) return false; return true; }
/** * <p> * Contains the details of the table when the backup was created. * </p> * * @param sourceTableDetails * Contains the details of the table when the backup was created. * @return Returns a reference to this object so that method calls can be chained together. */ public BackupDescription withSourceTableDetails(SourceTableDetails sourceTableDetails) { setSourceTableDetails(sourceTableDetails); return this; }
/** * <p> * Contains the details of the features enabled on the table when the backup was created. For example, LSIs, GSIs, * streams, TTL. * </p> * * @param sourceTableFeatureDetails * Contains the details of the features enabled on the table when the backup was created. For example, LSIs, * GSIs, streams, TTL. * @return Returns a reference to this object so that method calls can be chained together. */ public BackupDescription withSourceTableFeatureDetails(SourceTableFeatureDetails sourceTableFeatureDetails) { setSourceTableFeatureDetails(sourceTableFeatureDetails); return this; }
@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 BackupDescription unmarshall(JsonUnmarshallerContext context) throws Exception { BackupDescription backupDescription = new BackupDescription(); if (context.testExpression("BackupDetails", targetDepth)) { context.nextToken(); backupDescription.setBackupDetails(BackupDetailsJsonUnmarshaller.getInstance().unmarshall(context)); backupDescription.setSourceTableDetails(SourceTableDetailsJsonUnmarshaller.getInstance().unmarshall(context)); backupDescription.setSourceTableFeatureDetails(SourceTableFeatureDetailsJsonUnmarshaller.getInstance().unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupDescription() == null) ? 0 : getBackupDescription().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteBackupResult == false) return false; DeleteBackupResult other = (DeleteBackupResult) obj; if (other.getBackupDescription() == null ^ this.getBackupDescription() == null) return false; if (other.getBackupDescription() != null && other.getBackupDescription().equals(this.getBackupDescription()) == false) return false; return true; } }
/** * <p> * Contains the details of the backup created for the table. * </p> * * @param backupDetails * Contains the details of the backup created for the table. * @return Returns a reference to this object so that method calls can be chained together. */ public BackupDescription withBackupDetails(BackupDetails backupDetails) { setBackupDetails(backupDetails); return this; }
/** * 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(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupDescription() == null) ? 0 : getBackupDescription().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeBackupResult == false) return false; DescribeBackupResult other = (DescribeBackupResult) obj; if (other.getBackupDescription() == null ^ this.getBackupDescription() == null) return false; if (other.getBackupDescription() != null && other.getBackupDescription().equals(this.getBackupDescription()) == false) return false; return true; } }
/** * 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); } }