/** * Simplified method form for invoking the DescribeCacheSecurityGroups operation with an AsyncHandler. * * @see #describeCacheSecurityGroupsAsync(DescribeCacheSecurityGroupsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<DescribeCacheSecurityGroupsResult> describeCacheSecurityGroupsAsync( com.amazonaws.handlers.AsyncHandler<DescribeCacheSecurityGroupsRequest, DescribeCacheSecurityGroupsResult> asyncHandler) { return describeCacheSecurityGroupsAsync(new DescribeCacheSecurityGroupsRequest(), asyncHandler); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCacheSecurityGroupName() == null) ? 0 : getCacheSecurityGroupName().hashCode()); hashCode = prime * hashCode + ((getMaxRecords() == null) ? 0 : getMaxRecords().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); return hashCode; }
/** * Constructs a new DescribeCacheSecurityGroupsRequest object. Callers should use the setter or fluent setter * (with...) methods to initialize any additional object members. * * @param cacheSecurityGroupName * The name of the cache security group to return details for. */ public DescribeCacheSecurityGroupsRequest(String cacheSecurityGroupName) { setCacheSecurityGroupName(cacheSecurityGroupName); }
/** * <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 DescribeCacheSecurityGroupsRequest withMarker(String marker) { setMarker(marker); 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 DescribeCacheSecurityGroupsRequest withMaxRecords(Integer maxRecords) { setMaxRecords(maxRecords); 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 DescribeCacheSecurityGroupsRequest withMarker(String marker) { setMarker(marker); 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 DescribeCacheSecurityGroupsRequest 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 DescribeCacheSecurityGroupsRequest == false) return false; DescribeCacheSecurityGroupsRequest other = (DescribeCacheSecurityGroupsRequest) obj; if (other.getCacheSecurityGroupName() == null ^ this.getCacheSecurityGroupName() == null) return false; if (other.getCacheSecurityGroupName() != null && other.getCacheSecurityGroupName().equals(this.getCacheSecurityGroupName()) == 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 DescribeCacheSecurityGroupsResult describeCacheSecurityGroups() { return describeCacheSecurityGroups(new DescribeCacheSecurityGroupsRequest()); }
/** * <p> * The name of the cache security group to return details for. * </p> * * @param cacheSecurityGroupName * The name of the cache security group to return details for. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCacheSecurityGroupsRequest withCacheSecurityGroupName(String cacheSecurityGroupName) { setCacheSecurityGroupName(cacheSecurityGroupName); 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 (getCacheSecurityGroupName() != null) sb.append("CacheSecurityGroupName: ").append(getCacheSecurityGroupName()).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 DescribeCacheSecurityGroups operation. * * @see #describeCacheSecurityGroupsAsync(DescribeCacheSecurityGroupsRequest) */ @Override public java.util.concurrent.Future<DescribeCacheSecurityGroupsResult> describeCacheSecurityGroupsAsync() { return describeCacheSecurityGroupsAsync(new DescribeCacheSecurityGroupsRequest()); }
/** * Constructs a new DescribeCacheSecurityGroupsRequest object. Callers should use the setter or fluent setter * (with...) methods to initialize any additional object members. * * @param cacheSecurityGroupName * The name of the cache security group to return details for. */ public DescribeCacheSecurityGroupsRequest(String cacheSecurityGroupName) { setCacheSecurityGroupName(cacheSecurityGroupName); }
public Request<DescribeCacheSecurityGroupsRequest> marshall(DescribeCacheSecurityGroupsRequest describeCacheSecurityGroupsRequest) { if (describeCacheSecurityGroupsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<DescribeCacheSecurityGroupsRequest> request = new DefaultRequest<DescribeCacheSecurityGroupsRequest>(describeCacheSecurityGroupsRequest, "AmazonElastiCache"); request.addParameter("Action", "DescribeCacheSecurityGroups"); request.addParameter("Version", "2015-02-02"); request.setHttpMethod(HttpMethodName.POST); if (describeCacheSecurityGroupsRequest.getCacheSecurityGroupName() != null) { request.addParameter("CacheSecurityGroupName", StringUtils.fromString(describeCacheSecurityGroupsRequest.getCacheSecurityGroupName())); } if (describeCacheSecurityGroupsRequest.getMaxRecords() != null) { request.addParameter("MaxRecords", StringUtils.fromInteger(describeCacheSecurityGroupsRequest.getMaxRecords())); } if (describeCacheSecurityGroupsRequest.getMarker() != null) { request.addParameter("Marker", StringUtils.fromString(describeCacheSecurityGroupsRequest.getMarker())); } return request; }
/** * Simplified method form for invoking the DescribeCacheSecurityGroups operation. * * @see #describeCacheSecurityGroupsAsync(DescribeCacheSecurityGroupsRequest) */ @Override public java.util.concurrent.Future<DescribeCacheSecurityGroupsResult> describeCacheSecurityGroupsAsync() { return describeCacheSecurityGroupsAsync(new DescribeCacheSecurityGroupsRequest()); }
/** * <p> * The name of the cache security group to return details for. * </p> * * @param cacheSecurityGroupName * The name of the cache security group to return details for. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeCacheSecurityGroupsRequest withCacheSecurityGroupName(String cacheSecurityGroupName) { setCacheSecurityGroupName(cacheSecurityGroupName); return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCacheSecurityGroupName() == null) ? 0 : getCacheSecurityGroupName().hashCode()); hashCode = prime * hashCode + ((getMaxRecords() == null) ? 0 : getMaxRecords().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); return hashCode; }
/** * Simplified method form for invoking the DescribeCacheSecurityGroups operation with an AsyncHandler. * * @see #describeCacheSecurityGroupsAsync(DescribeCacheSecurityGroupsRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<DescribeCacheSecurityGroupsResult> describeCacheSecurityGroupsAsync( com.amazonaws.handlers.AsyncHandler<DescribeCacheSecurityGroupsRequest, DescribeCacheSecurityGroupsResult> asyncHandler) { return describeCacheSecurityGroupsAsync(new DescribeCacheSecurityGroupsRequest(), asyncHandler); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeCacheSecurityGroupsRequest == false) return false; DescribeCacheSecurityGroupsRequest other = (DescribeCacheSecurityGroupsRequest) obj; if (other.getCacheSecurityGroupName() == null ^ this.getCacheSecurityGroupName() == null) return false; if (other.getCacheSecurityGroupName() != null && other.getCacheSecurityGroupName().equals(this.getCacheSecurityGroupName()) == 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 DescribeCacheSecurityGroupsResult describeCacheSecurityGroups() { return describeCacheSecurityGroups(new DescribeCacheSecurityGroupsRequest()); }