@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCacheClusterId() == null) ? 0 : getCacheClusterId().hashCode()); hashCode = prime * hashCode + ((getFinalSnapshotIdentifier() == null) ? 0 : getFinalSnapshotIdentifier().hashCode()); return hashCode; }
/** * Constructs a new DeleteCacheClusterRequest object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param cacheClusterId * The cluster identifier for the cluster to be deleted. This parameter is not case sensitive. */ public DeleteCacheClusterRequest(String cacheClusterId) { setCacheClusterId(cacheClusterId); }
/** * <p> * The user-supplied name of a final cluster snapshot. This is the unique name that identifies the snapshot. * ElastiCache creates the snapshot, and then deletes the cluster immediately afterward. * </p> * * @param finalSnapshotIdentifier * The user-supplied name of a final cluster snapshot. This is the unique name that identifies the snapshot. * ElastiCache creates the snapshot, and then deletes the cluster immediately afterward. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteCacheClusterRequest withFinalSnapshotIdentifier(String finalSnapshotIdentifier) { setFinalSnapshotIdentifier(finalSnapshotIdentifier); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteCacheClusterRequest == false) return false; DeleteCacheClusterRequest other = (DeleteCacheClusterRequest) obj; if (other.getCacheClusterId() == null ^ this.getCacheClusterId() == null) return false; if (other.getCacheClusterId() != null && other.getCacheClusterId().equals(this.getCacheClusterId()) == false) return false; if (other.getFinalSnapshotIdentifier() == null ^ this.getFinalSnapshotIdentifier() == null) return false; if (other.getFinalSnapshotIdentifier() != null && other.getFinalSnapshotIdentifier().equals(this.getFinalSnapshotIdentifier()) == false) return false; return true; }
/** * <p> * The cluster identifier for the cluster to be deleted. This parameter is not case sensitive. * </p> * * @param cacheClusterId * The cluster identifier for the cluster to be deleted. This parameter is not case sensitive. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteCacheClusterRequest withCacheClusterId(String cacheClusterId) { setCacheClusterId(cacheClusterId); return this; }
/** * <p> * The user-supplied name of a final cluster snapshot. This is the unique name that identifies the snapshot. * ElastiCache creates the snapshot, and then deletes the cluster immediately afterward. * </p> * * @param finalSnapshotIdentifier * The user-supplied name of a final cluster snapshot. This is the unique name that identifies the snapshot. * ElastiCache creates the snapshot, and then deletes the cluster immediately afterward. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteCacheClusterRequest withFinalSnapshotIdentifier(String finalSnapshotIdentifier) { setFinalSnapshotIdentifier(finalSnapshotIdentifier); 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 (getCacheClusterId() != null) sb.append("CacheClusterId: ").append(getCacheClusterId()).append(","); if (getFinalSnapshotIdentifier() != null) sb.append("FinalSnapshotIdentifier: ").append(getFinalSnapshotIdentifier()); sb.append("}"); return sb.toString(); }
/** * Constructs a new DeleteCacheClusterRequest object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param cacheClusterId * The cluster identifier for the cluster to be deleted. This parameter is not case sensitive. */ public DeleteCacheClusterRequest(String cacheClusterId) { setCacheClusterId(cacheClusterId); }
public Request<DeleteCacheClusterRequest> marshall(DeleteCacheClusterRequest deleteCacheClusterRequest) { if (deleteCacheClusterRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<DeleteCacheClusterRequest> request = new DefaultRequest<DeleteCacheClusterRequest>(deleteCacheClusterRequest, "AmazonElastiCache"); request.addParameter("Action", "DeleteCacheCluster"); request.addParameter("Version", "2015-02-02"); request.setHttpMethod(HttpMethodName.POST); if (deleteCacheClusterRequest.getCacheClusterId() != null) { request.addParameter("CacheClusterId", StringUtils.fromString(deleteCacheClusterRequest.getCacheClusterId())); } if (deleteCacheClusterRequest.getFinalSnapshotIdentifier() != null) { request.addParameter("FinalSnapshotIdentifier", StringUtils.fromString(deleteCacheClusterRequest.getFinalSnapshotIdentifier())); } return request; }
/** * <p> * The cluster identifier for the cluster to be deleted. This parameter is not case sensitive. * </p> * * @param cacheClusterId * The cluster identifier for the cluster to be deleted. This parameter is not case sensitive. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteCacheClusterRequest withCacheClusterId(String cacheClusterId) { setCacheClusterId(cacheClusterId); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCacheClusterId() == null) ? 0 : getCacheClusterId().hashCode()); hashCode = prime * hashCode + ((getFinalSnapshotIdentifier() == null) ? 0 : getFinalSnapshotIdentifier().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeleteCacheClusterRequest == false) return false; DeleteCacheClusterRequest other = (DeleteCacheClusterRequest) obj; if (other.getCacheClusterId() == null ^ this.getCacheClusterId() == null) return false; if (other.getCacheClusterId() != null && other.getCacheClusterId().equals(this.getCacheClusterId()) == false) return false; if (other.getFinalSnapshotIdentifier() == null ^ this.getFinalSnapshotIdentifier() == null) return false; if (other.getFinalSnapshotIdentifier() != null && other.getFinalSnapshotIdentifier().equals(this.getFinalSnapshotIdentifier()) == 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 (getCacheClusterId() != null) sb.append("CacheClusterId: ").append(getCacheClusterId()).append(","); if (getFinalSnapshotIdentifier() != null) sb.append("FinalSnapshotIdentifier: ").append(getFinalSnapshotIdentifier()); sb.append("}"); return sb.toString(); }
public Request<DeleteCacheClusterRequest> marshall(DeleteCacheClusterRequest deleteCacheClusterRequest) { if (deleteCacheClusterRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<DeleteCacheClusterRequest> request = new DefaultRequest<DeleteCacheClusterRequest>(deleteCacheClusterRequest, "AmazonElastiCache"); request.addParameter("Action", "DeleteCacheCluster"); request.addParameter("Version", "2015-02-02"); request.setHttpMethod(HttpMethodName.POST); if (deleteCacheClusterRequest.getCacheClusterId() != null) { request.addParameter("CacheClusterId", StringUtils.fromString(deleteCacheClusterRequest.getCacheClusterId())); } if (deleteCacheClusterRequest.getFinalSnapshotIdentifier() != null) { request.addParameter("FinalSnapshotIdentifier", StringUtils.fromString(deleteCacheClusterRequest.getFinalSnapshotIdentifier())); } return request; }