/** * Simplified method form for invoking the DescribeSnapshots operation. * * @see #describeSnapshotsAsync(DescribeSnapshotsRequest) */ @Override public java.util.concurrent.Future<DescribeSnapshotsResult> describeSnapshotsAsync() { return describeSnapshotsAsync(new DescribeSnapshotsRequest()); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReplicationGroupId() == null) ? 0 : getReplicationGroupId().hashCode()); hashCode = prime * hashCode + ((getCacheClusterId() == null) ? 0 : getCacheClusterId().hashCode()); hashCode = prime * hashCode + ((getSnapshotName() == null) ? 0 : getSnapshotName().hashCode()); hashCode = prime * hashCode + ((getSnapshotSource() == null) ? 0 : getSnapshotSource().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); hashCode = prime * hashCode + ((getMaxRecords() == null) ? 0 : getMaxRecords().hashCode()); hashCode = prime * hashCode + ((getShowNodeGroupConfig() == null) ? 0 : getShowNodeGroupConfig().hashCode()); return hashCode; }
/** * <p> * A user-supplied cluster identifier. If this parameter is specified, only snapshots associated with that specific * cluster are described. * </p> * * @param cacheClusterId * A user-supplied cluster identifier. If this parameter is specified, only snapshots associated with that * specific cluster are described. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSnapshotsRequest withCacheClusterId(String cacheClusterId) { setCacheClusterId(cacheClusterId); return this; }
/** * <p> * An optional marker returned from a prior request. Use this marker for pagination of results from this operation. * If this parameter is specified, the response includes only records beyond the marker, up to the value specified * by <code>MaxRecords</code>. * </p> * * @param marker * An optional marker returned from a prior request. Use this marker for pagination of results from this * operation. If this parameter is specified, the response includes only records beyond the marker, up to the * value specified by <code>MaxRecords</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSnapshotsRequest withMarker(String marker) { setMarker(marker); return this; }
/** * <p> * An optional marker returned from a prior request. Use this marker for pagination of results from this operation. * If this parameter is specified, the response includes only records beyond the marker, up to the value specified * by <code>MaxRecords</code>. * </p> * * @param marker * An optional marker returned from a prior request. Use this marker for pagination of results from this * operation. If this parameter is specified, the response includes only records beyond the marker, up to the * value specified by <code>MaxRecords</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSnapshotsRequest withMarker(String marker) { setMarker(marker); return this; }
return false; DescribeSnapshotsRequest other = (DescribeSnapshotsRequest) obj; if (other.getReplicationGroupId() == null ^ this.getReplicationGroupId() == null) return false; if (other.getReplicationGroupId() != null && other.getReplicationGroupId().equals(this.getReplicationGroupId()) == false) return false; if (other.getCacheClusterId() == null ^ this.getCacheClusterId() == null) return false; if (other.getCacheClusterId() != null && other.getCacheClusterId().equals(this.getCacheClusterId()) == false) return false; if (other.getSnapshotName() == null ^ this.getSnapshotName() == null) return false; if (other.getSnapshotName() != null && other.getSnapshotName().equals(this.getSnapshotName()) == false) return false; if (other.getSnapshotSource() == null ^ this.getSnapshotSource() == null) return false; if (other.getSnapshotSource() != null && other.getSnapshotSource().equals(this.getSnapshotSource()) == false) return false; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; if (other.getMaxRecords() == null ^ this.getMaxRecords() == null) return false; if (other.getMaxRecords() != null && other.getMaxRecords().equals(this.getMaxRecords()) == false) return false; if (other.getShowNodeGroupConfig() == null ^ this.getShowNodeGroupConfig() == null) return false; if (other.getShowNodeGroupConfig() != null && other.getShowNodeGroupConfig().equals(this.getShowNodeGroupConfig()) == false)
/** * Simplified method form for invoking the DescribeSnapshots operation with an AsyncHandler. * * @see #describeSnapshotsAsync(DescribeSnapshotsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<DescribeSnapshotsResult> describeSnapshotsAsync( com.amazonaws.handlers.AsyncHandler<DescribeSnapshotsRequest, DescribeSnapshotsResult> asyncHandler) { return describeSnapshotsAsync(new DescribeSnapshotsRequest(), asyncHandler); }
/** * <p> * A user-supplied cluster identifier. If this parameter is specified, only snapshots associated with that specific * cluster are described. * </p> * * @param cacheClusterId * A user-supplied cluster identifier. If this parameter is specified, only snapshots associated with that * specific cluster are described. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSnapshotsRequest withCacheClusterId(String cacheClusterId) { setCacheClusterId(cacheClusterId); 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 (getReplicationGroupId() != null) sb.append("ReplicationGroupId: ").append(getReplicationGroupId()).append(","); if (getCacheClusterId() != null) sb.append("CacheClusterId: ").append(getCacheClusterId()).append(","); if (getSnapshotName() != null) sb.append("SnapshotName: ").append(getSnapshotName()).append(","); if (getSnapshotSource() != null) sb.append("SnapshotSource: ").append(getSnapshotSource()).append(","); if (getMarker() != null) sb.append("Marker: ").append(getMarker()).append(","); if (getMaxRecords() != null) sb.append("MaxRecords: ").append(getMaxRecords()).append(","); if (getShowNodeGroupConfig() != null) sb.append("ShowNodeGroupConfig: ").append(getShowNodeGroupConfig()); sb.append("}"); return sb.toString(); }
@Override public DescribeSnapshotsResult describeSnapshots() { return describeSnapshots(new DescribeSnapshotsRequest()); }
request.setHttpMethod(HttpMethodName.POST); if (describeSnapshotsRequest.getReplicationGroupId() != null) { request.addParameter("ReplicationGroupId", StringUtils.fromString(describeSnapshotsRequest.getReplicationGroupId())); if (describeSnapshotsRequest.getCacheClusterId() != null) { request.addParameter("CacheClusterId", StringUtils.fromString(describeSnapshotsRequest.getCacheClusterId())); if (describeSnapshotsRequest.getSnapshotName() != null) { request.addParameter("SnapshotName", StringUtils.fromString(describeSnapshotsRequest.getSnapshotName())); if (describeSnapshotsRequest.getSnapshotSource() != null) { request.addParameter("SnapshotSource", StringUtils.fromString(describeSnapshotsRequest.getSnapshotSource())); if (describeSnapshotsRequest.getMarker() != null) { request.addParameter("Marker", StringUtils.fromString(describeSnapshotsRequest.getMarker())); if (describeSnapshotsRequest.getMaxRecords() != null) { request.addParameter("MaxRecords", StringUtils.fromInteger(describeSnapshotsRequest.getMaxRecords())); if (describeSnapshotsRequest.getShowNodeGroupConfig() != null) { request.addParameter("ShowNodeGroupConfig", StringUtils.fromBoolean(describeSnapshotsRequest.getShowNodeGroupConfig()));
/** * Simplified method form for invoking the DescribeSnapshots operation. * * @see #describeSnapshotsAsync(DescribeSnapshotsRequest) */ @Override public java.util.concurrent.Future<DescribeSnapshotsResult> describeSnapshotsAsync() { return describeSnapshotsAsync(new DescribeSnapshotsRequest()); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReplicationGroupId() == null) ? 0 : getReplicationGroupId().hashCode()); hashCode = prime * hashCode + ((getCacheClusterId() == null) ? 0 : getCacheClusterId().hashCode()); hashCode = prime * hashCode + ((getSnapshotName() == null) ? 0 : getSnapshotName().hashCode()); hashCode = prime * hashCode + ((getSnapshotSource() == null) ? 0 : getSnapshotSource().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); hashCode = prime * hashCode + ((getMaxRecords() == null) ? 0 : getMaxRecords().hashCode()); hashCode = prime * hashCode + ((getShowNodeGroupConfig() == null) ? 0 : getShowNodeGroupConfig().hashCode()); return hashCode; }
/** * Simplified method form for invoking the DescribeSnapshots operation with an AsyncHandler. * * @see #describeSnapshotsAsync(DescribeSnapshotsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<DescribeSnapshotsResult> describeSnapshotsAsync( com.amazonaws.handlers.AsyncHandler<DescribeSnapshotsRequest, DescribeSnapshotsResult> asyncHandler) { return describeSnapshotsAsync(new DescribeSnapshotsRequest(), asyncHandler); }
return false; DescribeSnapshotsRequest other = (DescribeSnapshotsRequest) obj; if (other.getReplicationGroupId() == null ^ this.getReplicationGroupId() == null) return false; if (other.getReplicationGroupId() != null && other.getReplicationGroupId().equals(this.getReplicationGroupId()) == false) return false; if (other.getCacheClusterId() == null ^ this.getCacheClusterId() == null) return false; if (other.getCacheClusterId() != null && other.getCacheClusterId().equals(this.getCacheClusterId()) == false) return false; if (other.getSnapshotName() == null ^ this.getSnapshotName() == null) return false; if (other.getSnapshotName() != null && other.getSnapshotName().equals(this.getSnapshotName()) == false) return false; if (other.getSnapshotSource() == null ^ this.getSnapshotSource() == null) return false; if (other.getSnapshotSource() != null && other.getSnapshotSource().equals(this.getSnapshotSource()) == false) return false; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; if (other.getMaxRecords() == null ^ this.getMaxRecords() == null) return false; if (other.getMaxRecords() != null && other.getMaxRecords().equals(this.getMaxRecords()) == false) return false; if (other.getShowNodeGroupConfig() == null ^ this.getShowNodeGroupConfig() == null) return false; if (other.getShowNodeGroupConfig() != null && other.getShowNodeGroupConfig().equals(this.getShowNodeGroupConfig()) == false)
@Override public DescribeSnapshotsResult describeSnapshots() { return describeSnapshots(new DescribeSnapshotsRequest()); }
/** * 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 (getReplicationGroupId() != null) sb.append("ReplicationGroupId: ").append(getReplicationGroupId()).append(","); if (getCacheClusterId() != null) sb.append("CacheClusterId: ").append(getCacheClusterId()).append(","); if (getSnapshotName() != null) sb.append("SnapshotName: ").append(getSnapshotName()).append(","); if (getSnapshotSource() != null) sb.append("SnapshotSource: ").append(getSnapshotSource()).append(","); if (getMarker() != null) sb.append("Marker: ").append(getMarker()).append(","); if (getMaxRecords() != null) sb.append("MaxRecords: ").append(getMaxRecords()).append(","); if (getShowNodeGroupConfig() != null) sb.append("ShowNodeGroupConfig: ").append(getShowNodeGroupConfig()); sb.append("}"); return sb.toString(); }
/** * Simplified method form for invoking the DescribeSnapshots operation. * * @see #describeSnapshotsAsync(DescribeSnapshotsRequest) */ @Override public java.util.concurrent.Future<DescribeSnapshotsResult> describeSnapshotsAsync() { return describeSnapshotsAsync(new DescribeSnapshotsRequest()); }
request.setHttpMethod(HttpMethodName.POST); if (describeSnapshotsRequest.getReplicationGroupId() != null) { request.addParameter("ReplicationGroupId", StringUtils.fromString(describeSnapshotsRequest.getReplicationGroupId())); if (describeSnapshotsRequest.getCacheClusterId() != null) { request.addParameter("CacheClusterId", StringUtils.fromString(describeSnapshotsRequest.getCacheClusterId())); if (describeSnapshotsRequest.getSnapshotName() != null) { request.addParameter("SnapshotName", StringUtils.fromString(describeSnapshotsRequest.getSnapshotName())); if (describeSnapshotsRequest.getSnapshotSource() != null) { request.addParameter("SnapshotSource", StringUtils.fromString(describeSnapshotsRequest.getSnapshotSource())); if (describeSnapshotsRequest.getMarker() != null) { request.addParameter("Marker", StringUtils.fromString(describeSnapshotsRequest.getMarker())); if (describeSnapshotsRequest.getMaxRecords() != null) { request.addParameter("MaxRecords", StringUtils.fromInteger(describeSnapshotsRequest.getMaxRecords())); if (describeSnapshotsRequest.getShowNodeGroupConfig() != null) { request.addParameter("ShowNodeGroupConfig", StringUtils.fromBoolean(describeSnapshotsRequest.getShowNodeGroupConfig()));
/** * Simplified method form for invoking the DescribeSnapshots operation with an AsyncHandler. * * @see #describeSnapshotsAsync(DescribeSnapshotsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<DescribeSnapshotsResult> describeSnapshotsAsync( com.amazonaws.handlers.AsyncHandler<DescribeSnapshotsRequest, DescribeSnapshotsResult> asyncHandler) { return describeSnapshotsAsync(new DescribeSnapshotsRequest(), asyncHandler); }