@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDBSnapshotIdentifier() == null) ? 0 : getDBSnapshotIdentifier().hashCode()); return hashCode; }
/** * Constructs a new DeleteDBSnapshotRequest object. Callers should use the setter or fluent setter (with...) methods * to initialize any additional object members. * * @param dBSnapshotIdentifier * The DB snapshot identifier.</p> * <p> * Constraints: Must be the name of an existing DB snapshot in the <code>available</code> state. */ public DeleteDBSnapshotRequest(String dBSnapshotIdentifier) { setDBSnapshotIdentifier(dBSnapshotIdentifier); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteDBSnapshotRequest == false) return false; DeleteDBSnapshotRequest other = (DeleteDBSnapshotRequest) obj; if (other.getDBSnapshotIdentifier() == null ^ this.getDBSnapshotIdentifier() == null) return false; if (other.getDBSnapshotIdentifier() != null && other.getDBSnapshotIdentifier().equals(this.getDBSnapshotIdentifier()) == false) return false; return true; }
/** * <p> * The DB snapshot identifier. * </p> * <p> * Constraints: Must be the name of an existing DB snapshot in the <code>available</code> state. * </p> * * @param dBSnapshotIdentifier * The DB snapshot identifier.</p> * <p> * Constraints: Must be the name of an existing DB snapshot in the <code>available</code> state. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteDBSnapshotRequest withDBSnapshotIdentifier(String dBSnapshotIdentifier) { setDBSnapshotIdentifier(dBSnapshotIdentifier); 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 (getDBSnapshotIdentifier() != null) sb.append("DBSnapshotIdentifier: ").append(getDBSnapshotIdentifier()); sb.append("}"); return sb.toString(); }
/** * Constructs a new DeleteDBSnapshotRequest object. Callers should use the setter or fluent setter (with...) methods * to initialize any additional object members. * * @param dBSnapshotIdentifier * The DB snapshot identifier.</p> * <p> * Constraints: Must be the name of an existing DB snapshot in the <code>available</code> state. */ public DeleteDBSnapshotRequest(String dBSnapshotIdentifier) { setDBSnapshotIdentifier(dBSnapshotIdentifier); }
public Request<DeleteDBSnapshotRequest> marshall(DeleteDBSnapshotRequest deleteDBSnapshotRequest) { if (deleteDBSnapshotRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<DeleteDBSnapshotRequest> request = new DefaultRequest<DeleteDBSnapshotRequest>(deleteDBSnapshotRequest, "AmazonRDS"); request.addParameter("Action", "DeleteDBSnapshot"); request.addParameter("Version", "2014-10-31"); request.setHttpMethod(HttpMethodName.POST); if (deleteDBSnapshotRequest.getDBSnapshotIdentifier() != null) { request.addParameter("DBSnapshotIdentifier", StringUtils.fromString(deleteDBSnapshotRequest.getDBSnapshotIdentifier())); } return request; }
/** * <p> * The DB snapshot identifier. * </p> * <p> * Constraints: Must be the name of an existing DB snapshot in the <code>available</code> state. * </p> * * @param dBSnapshotIdentifier * The DB snapshot identifier.</p> * <p> * Constraints: Must be the name of an existing DB snapshot in the <code>available</code> state. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteDBSnapshotRequest withDBSnapshotIdentifier(String dBSnapshotIdentifier) { setDBSnapshotIdentifier(dBSnapshotIdentifier); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDBSnapshotIdentifier() == null) ? 0 : getDBSnapshotIdentifier().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteDBSnapshotRequest == false) return false; DeleteDBSnapshotRequest other = (DeleteDBSnapshotRequest) obj; if (other.getDBSnapshotIdentifier() == null ^ this.getDBSnapshotIdentifier() == null) return false; if (other.getDBSnapshotIdentifier() != null && other.getDBSnapshotIdentifier().equals(this.getDBSnapshotIdentifier()) == 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 (getDBSnapshotIdentifier() != null) sb.append("DBSnapshotIdentifier: ").append(getDBSnapshotIdentifier()); sb.append("}"); return sb.toString(); }
public Request<DeleteDBSnapshotRequest> marshall(DeleteDBSnapshotRequest deleteDBSnapshotRequest) { if (deleteDBSnapshotRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<DeleteDBSnapshotRequest> request = new DefaultRequest<DeleteDBSnapshotRequest>(deleteDBSnapshotRequest, "AmazonRDS"); request.addParameter("Action", "DeleteDBSnapshot"); request.addParameter("Version", "2014-10-31"); request.setHttpMethod(HttpMethodName.POST); if (deleteDBSnapshotRequest.getDBSnapshotIdentifier() != null) { request.addParameter("DBSnapshotIdentifier", StringUtils.fromString(deleteDBSnapshotRequest.getDBSnapshotIdentifier())); } return request; }