/** * Simplified method form for invoking the DescribeReplicationGroups operation with an AsyncHandler. * * @see #describeReplicationGroupsAsync(DescribeReplicationGroupsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<DescribeReplicationGroupsResult> describeReplicationGroupsAsync( com.amazonaws.handlers.AsyncHandler<DescribeReplicationGroupsRequest, DescribeReplicationGroupsResult> asyncHandler) { return describeReplicationGroupsAsync(new DescribeReplicationGroupsRequest(), asyncHandler); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReplicationGroupId() == null) ? 0 : getReplicationGroupId().hashCode()); hashCode = prime * hashCode + ((getMaxRecords() == null) ? 0 : getMaxRecords().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); return hashCode; }
/** * <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 DescribeReplicationGroupsRequest withMarker(String marker) { setMarker(marker); return this; }
final Map<String, NodeGroupMember> clusterIdToNodeGroupMember = new HashMap<>(); DescribeCacheClustersRequest describeCacheClustersRequest = new DescribeCacheClustersRequest(); DescribeReplicationGroupsRequest describeReplicationGroupsRequest = new DescribeReplicationGroupsRequest(); DescribeCacheClustersResult describeCacheClustersResult; DescribeReplicationGroupsResult describeReplicationGroupsResult; log.info("Getting Elasticache replication groups from {} with marker {}", regionName, describeReplicationGroupsRequest.getMarker()); describeReplicationGroupsRequest.setMarker(describeReplicationGroupsResult.getMarker()); } while (describeReplicationGroupsResult.getMarker() != null);
rgRqst = new DescribeReplicationGroupsRequest().withMarker(marker); describeRGResult = amazonElastiCache.describeReplicationGroups(rgRqst); replicationGroupList.addAll(describeRGResult.getReplicationGroups());
/** * <p> * The identifier for the replication group to be described. This parameter is not case sensitive. * </p> * <p> * If you do not specify this parameter, information about all replication groups is returned. * </p> * * @param replicationGroupId * The identifier for the replication group to be described. This parameter is not case sensitive.</p> * <p> * If you do not specify this parameter, information about all replication groups is returned. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeReplicationGroupsRequest withReplicationGroupId(String replicationGroupId) { setReplicationGroupId(replicationGroupId); return this; }
/** * <p> * The maximum number of records to include in the response. If more records exist than the specified * <code>MaxRecords</code> value, a marker is included in the response so that the remaining results can be * retrieved. * </p> * <p> * Default: 100 * </p> * <p> * Constraints: minimum 20; maximum 100. * </p> * * @param maxRecords * The maximum number of records to include in the response. If more records exist than the specified * <code>MaxRecords</code> value, a marker is included in the response so that the remaining results can be * retrieved.</p> * <p> * Default: 100 * </p> * <p> * Constraints: minimum 20; maximum 100. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeReplicationGroupsRequest withMaxRecords(Integer maxRecords) { setMaxRecords(maxRecords); return this; }
/** * <p> * The identifier for the replication group to be described. This parameter is not case sensitive. * </p> * <p> * If you do not specify this parameter, information about all replication groups is returned. * </p> * * @param replicationGroupId * The identifier for the replication group to be described. This parameter is not case sensitive.</p> * <p> * If you do not specify this parameter, information about all replication groups is returned. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeReplicationGroupsRequest withReplicationGroupId(String replicationGroupId) { setReplicationGroupId(replicationGroupId); return this; }
/** * <p> * The maximum number of records to include in the response. If more records exist than the specified * <code>MaxRecords</code> value, a marker is included in the response so that the remaining results can be * retrieved. * </p> * <p> * Default: 100 * </p> * <p> * Constraints: minimum 20; maximum 100. * </p> * * @param maxRecords * The maximum number of records to include in the response. If more records exist than the specified * <code>MaxRecords</code> value, a marker is included in the response so that the remaining results can be * retrieved.</p> * <p> * Default: 100 * </p> * <p> * Constraints: minimum 20; maximum 100. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeReplicationGroupsRequest withMaxRecords(Integer maxRecords) { setMaxRecords(maxRecords); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeReplicationGroupsRequest == false) return false; DescribeReplicationGroupsRequest other = (DescribeReplicationGroupsRequest) obj; if (other.getReplicationGroupId() == null ^ this.getReplicationGroupId() == null) return false; if (other.getReplicationGroupId() != null && other.getReplicationGroupId().equals(this.getReplicationGroupId()) == 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.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; return true; }
/** * Simplified method form for invoking the DescribeReplicationGroups operation. * * @see #describeReplicationGroupsAsync(DescribeReplicationGroupsRequest) */ @Override public java.util.concurrent.Future<DescribeReplicationGroupsResult> describeReplicationGroupsAsync() { return describeReplicationGroupsAsync(new DescribeReplicationGroupsRequest()); }
/** * <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 DescribeReplicationGroupsRequest withMarker(String marker) { setMarker(marker); 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 (getMaxRecords() != null) sb.append("MaxRecords: ").append(getMaxRecords()).append(","); if (getMarker() != null) sb.append("Marker: ").append(getMarker()); sb.append("}"); return sb.toString(); }
/** * Simplified method form for invoking the DescribeReplicationGroups operation. * * @see #describeReplicationGroupsAsync(DescribeReplicationGroupsRequest) */ @Override public java.util.concurrent.Future<DescribeReplicationGroupsResult> describeReplicationGroupsAsync() { return describeReplicationGroupsAsync(new DescribeReplicationGroupsRequest()); }
public Request<DescribeReplicationGroupsRequest> marshall(DescribeReplicationGroupsRequest describeReplicationGroupsRequest) { if (describeReplicationGroupsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<DescribeReplicationGroupsRequest> request = new DefaultRequest<DescribeReplicationGroupsRequest>(describeReplicationGroupsRequest, "AmazonElastiCache"); request.addParameter("Action", "DescribeReplicationGroups"); request.addParameter("Version", "2015-02-02"); request.setHttpMethod(HttpMethodName.POST); if (describeReplicationGroupsRequest.getReplicationGroupId() != null) { request.addParameter("ReplicationGroupId", StringUtils.fromString(describeReplicationGroupsRequest.getReplicationGroupId())); } if (describeReplicationGroupsRequest.getMaxRecords() != null) { request.addParameter("MaxRecords", StringUtils.fromInteger(describeReplicationGroupsRequest.getMaxRecords())); } if (describeReplicationGroupsRequest.getMarker() != null) { request.addParameter("Marker", StringUtils.fromString(describeReplicationGroupsRequest.getMarker())); } return request; }
/** * Simplified method form for invoking the DescribeReplicationGroups operation with an AsyncHandler. * * @see #describeReplicationGroupsAsync(DescribeReplicationGroupsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<DescribeReplicationGroupsResult> describeReplicationGroupsAsync( com.amazonaws.handlers.AsyncHandler<DescribeReplicationGroupsRequest, DescribeReplicationGroupsResult> asyncHandler) { return describeReplicationGroupsAsync(new DescribeReplicationGroupsRequest(), asyncHandler); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReplicationGroupId() == null) ? 0 : getReplicationGroupId().hashCode()); hashCode = prime * hashCode + ((getMaxRecords() == null) ? 0 : getMaxRecords().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); return hashCode; }
@Override public DescribeReplicationGroupsResult describeReplicationGroups() { return describeReplicationGroups(new DescribeReplicationGroupsRequest()); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeReplicationGroupsRequest == false) return false; DescribeReplicationGroupsRequest other = (DescribeReplicationGroupsRequest) obj; if (other.getReplicationGroupId() == null ^ this.getReplicationGroupId() == null) return false; if (other.getReplicationGroupId() != null && other.getReplicationGroupId().equals(this.getReplicationGroupId()) == 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.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; return true; }
@Override public DescribeReplicationGroupsResult describeReplicationGroups() { return describeReplicationGroups(new DescribeReplicationGroupsRequest()); }