/** * Simplified method form for invoking the DescribeClusters operation. * * @see #describeClustersAsync(DescribeClustersRequest) */ @Override public java.util.concurrent.Future<DescribeClustersResult> describeClustersAsync() { return describeClustersAsync(new DescribeClustersRequest()); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClusterIdentifier() == null) ? 0 : getClusterIdentifier().hashCode()); hashCode = prime * hashCode + ((getMaxRecords() == null) ? 0 : getMaxRecords().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); hashCode = prime * hashCode + ((getTagKeys() == null) ? 0 : getTagKeys().hashCode()); hashCode = prime * hashCode + ((getTagValues() == null) ? 0 : getTagValues().hashCode()); return hashCode; }
/** * <p> * The unique identifier of a cluster whose properties you are requesting. This parameter is case sensitive. * </p> * <p> * The default is that all clusters defined for an account are returned. * </p> * * @param clusterIdentifier * The unique identifier of a cluster whose properties you are requesting. This parameter is case * sensitive.</p> * <p> * The default is that all clusters defined for an account are returned. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeClustersRequest withClusterIdentifier(String clusterIdentifier) { setClusterIdentifier(clusterIdentifier); return this; }
List<com.amazonaws.services.redshift.model.Cluster> redshiftList = new ArrayList<>(); do{ result= redshiftClient.describeClusters(new DescribeClustersRequest().withMarker(nextMarker)); redshiftList.addAll(result.getClusters()); nextMarker = result.getMarker();
private void describe(String dbInstanceIdentifier) throws Exception { while (true) { DescribeDBInstancesRequest request = new DescribeDBInstancesRequest() .withDBInstanceIdentifier(dbInstanceIdentifier); DescribeClustersResult response = client.describeClusters(new DescribeClustersRequest() .withClusterIdentifier(INSTANCE_ID) ); Cluster dbInstance = response.getClusters().get(0); if (!dbInstance.getClusterStatus().equalsIgnoreCase("creating")) { System.out.println("Done! " + response); System.out.println(dbInstance.getEndpoint().getAddress()); System.out.println(dbInstance.getEndpoint().getPort()); break; } System.out.println("Not done - will wait 10s: " + response); Thread.sleep(10000L); } }
/** * <p> * An optional parameter that specifies the starting point to return a set of response records. When the results of * a <a>DescribeClusters</a> request exceed the value specified in <code>MaxRecords</code>, AWS returns a value in * the <code>Marker</code> field of the response. You can retrieve the next set of response records by providing the * returned marker value in the <code>Marker</code> parameter and retrying the request. * </p> * <p> * Constraints: You can specify either the <b>ClusterIdentifier</b> parameter or the <b>Marker</b> parameter, but * not both. * </p> * * @param marker * An optional parameter that specifies the starting point to return a set of response records. When the * results of a <a>DescribeClusters</a> request exceed the value specified in <code>MaxRecords</code>, AWS * returns a value in the <code>Marker</code> field of the response. You can retrieve the next set of * response records by providing the returned marker value in the <code>Marker</code> parameter and retrying * the request. </p> * <p> * Constraints: You can specify either the <b>ClusterIdentifier</b> parameter or the <b>Marker</b> parameter, * but not both. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeClustersRequest withMarker(String marker) { setMarker(marker); return this; }
/** * <p> * The maximum number of response records to return in each call. If the number of remaining response records * exceeds the specified <code>MaxRecords</code> value, a value is returned in a <code>marker</code> field of the * response. You can retrieve the next set of records by retrying the command with the returned marker value. * </p> * <p> * Default: <code>100</code> * </p> * <p> * Constraints: minimum 20, maximum 100. * </p> * * @param maxRecords * The maximum number of response records to return in each call. If the number of remaining response records * exceeds the specified <code>MaxRecords</code> value, a value is returned in a <code>marker</code> field of * the response. You can retrieve the next set of records by retrying the command with the returned marker * value. </p> * <p> * Default: <code>100</code> * </p> * <p> * Constraints: minimum 20, maximum 100. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeClustersRequest withMaxRecords(Integer maxRecords) { setMaxRecords(maxRecords); return this; }
/** * <p> * An optional parameter that specifies the starting point to return a set of response records. When the results of * a <a>DescribeClusters</a> request exceed the value specified in <code>MaxRecords</code>, AWS returns a value in * the <code>Marker</code> field of the response. You can retrieve the next set of response records by providing the * returned marker value in the <code>Marker</code> parameter and retrying the request. * </p> * <p> * Constraints: You can specify either the <b>ClusterIdentifier</b> parameter or the <b>Marker</b> parameter, but * not both. * </p> * * @param marker * An optional parameter that specifies the starting point to return a set of response records. When the * results of a <a>DescribeClusters</a> request exceed the value specified in <code>MaxRecords</code>, AWS * returns a value in the <code>Marker</code> field of the response. You can retrieve the next set of * response records by providing the returned marker value in the <code>Marker</code> parameter and retrying * the request. </p> * <p> * Constraints: You can specify either the <b>ClusterIdentifier</b> parameter or the <b>Marker</b> parameter, * but not both. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeClustersRequest withMarker(String marker) { setMarker(marker); return this; }
/** * <p> * The maximum number of response records to return in each call. If the number of remaining response records * exceeds the specified <code>MaxRecords</code> value, a value is returned in a <code>marker</code> field of the * response. You can retrieve the next set of records by retrying the command with the returned marker value. * </p> * <p> * Default: <code>100</code> * </p> * <p> * Constraints: minimum 20, maximum 100. * </p> * * @param maxRecords * The maximum number of response records to return in each call. If the number of remaining response records * exceeds the specified <code>MaxRecords</code> value, a value is returned in a <code>marker</code> field of * the response. You can retrieve the next set of records by retrying the command with the returned marker * value. </p> * <p> * Default: <code>100</code> * </p> * <p> * Constraints: minimum 20, maximum 100. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeClustersRequest withMaxRecords(Integer maxRecords) { setMaxRecords(maxRecords); return this; }
return false; DescribeClustersRequest other = (DescribeClustersRequest) obj; if (other.getClusterIdentifier() == null ^ this.getClusterIdentifier() == null) return false; if (other.getClusterIdentifier() != null && other.getClusterIdentifier().equals(this.getClusterIdentifier()) == 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; if (other.getTagKeys() == null ^ this.getTagKeys() == null) return false; if (other.getTagKeys() != null && other.getTagKeys().equals(this.getTagKeys()) == false) return false; if (other.getTagValues() == null ^ this.getTagValues() == null) return false; if (other.getTagValues() != null && other.getTagValues().equals(this.getTagValues()) == false) return false; return true;
/** * Simplified method form for invoking the DescribeClusters operation with an AsyncHandler. * * @see #describeClustersAsync(DescribeClustersRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<DescribeClustersResult> describeClustersAsync( com.amazonaws.handlers.AsyncHandler<DescribeClustersRequest, DescribeClustersResult> asyncHandler) { return describeClustersAsync(new DescribeClustersRequest(), asyncHandler); }
/** * <p> * The unique identifier of a cluster whose properties you are requesting. This parameter is case sensitive. * </p> * <p> * The default is that all clusters defined for an account are returned. * </p> * * @param clusterIdentifier * The unique identifier of a cluster whose properties you are requesting. This parameter is case * sensitive.</p> * <p> * The default is that all clusters defined for an account are returned. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeClustersRequest withClusterIdentifier(String clusterIdentifier) { setClusterIdentifier(clusterIdentifier); 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 (getClusterIdentifier() != null) sb.append("ClusterIdentifier: ").append(getClusterIdentifier()).append(","); if (getMaxRecords() != null) sb.append("MaxRecords: ").append(getMaxRecords()).append(","); if (getMarker() != null) sb.append("Marker: ").append(getMarker()).append(","); if (getTagKeys() != null) sb.append("TagKeys: ").append(getTagKeys()).append(","); if (getTagValues() != null) sb.append("TagValues: ").append(getTagValues()); sb.append("}"); return sb.toString(); }
/** * Simplified method form for invoking the DescribeClusters operation. * * @see #describeClustersAsync(DescribeClustersRequest) */ @Override public java.util.concurrent.Future<DescribeClustersResult> describeClustersAsync() { return describeClustersAsync(new DescribeClustersRequest()); }
request.setHttpMethod(HttpMethodName.POST); if (describeClustersRequest.getClusterIdentifier() != null) { request.addParameter("ClusterIdentifier", StringUtils.fromString(describeClustersRequest.getClusterIdentifier())); if (describeClustersRequest.getMaxRecords() != null) { request.addParameter("MaxRecords", StringUtils.fromInteger(describeClustersRequest.getMaxRecords())); if (describeClustersRequest.getMarker() != null) { request.addParameter("Marker", StringUtils.fromString(describeClustersRequest.getMarker())); if (!describeClustersRequest.getTagKeys().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) describeClustersRequest.getTagKeys()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> tagKeysList = (com.amazonaws.internal.SdkInternalList<String>) describeClustersRequest.getTagKeys(); int tagKeysListIndex = 1; if (!describeClustersRequest.getTagValues().isEmpty() || !((com.amazonaws.internal.SdkInternalList<String>) describeClustersRequest.getTagValues()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<String> tagValuesList = (com.amazonaws.internal.SdkInternalList<String>) describeClustersRequest .getTagValues(); int tagValuesListIndex = 1;
/** * Simplified method form for invoking the DescribeClusters operation with an AsyncHandler. * * @see #describeClustersAsync(DescribeClustersRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<DescribeClustersResult> describeClustersAsync( com.amazonaws.handlers.AsyncHandler<DescribeClustersRequest, DescribeClustersResult> asyncHandler) { return describeClustersAsync(new DescribeClustersRequest(), asyncHandler); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClusterIdentifier() == null) ? 0 : getClusterIdentifier().hashCode()); hashCode = prime * hashCode + ((getMaxRecords() == null) ? 0 : getMaxRecords().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); hashCode = prime * hashCode + ((getTagKeys() == null) ? 0 : getTagKeys().hashCode()); hashCode = prime * hashCode + ((getTagValues() == null) ? 0 : getTagValues().hashCode()); return hashCode; }
@Override public DescribeClustersResult describeClusters() { return describeClusters(new DescribeClustersRequest()); }
return false; DescribeClustersRequest other = (DescribeClustersRequest) obj; if (other.getClusterIdentifier() == null ^ this.getClusterIdentifier() == null) return false; if (other.getClusterIdentifier() != null && other.getClusterIdentifier().equals(this.getClusterIdentifier()) == 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; if (other.getTagKeys() == null ^ this.getTagKeys() == null) return false; if (other.getTagKeys() != null && other.getTagKeys().equals(this.getTagKeys()) == false) return false; if (other.getTagValues() == null ^ this.getTagValues() == null) return false; if (other.getTagValues() != null && other.getTagValues().equals(this.getTagValues()) == false) return false; return true;
@Override public DescribeClustersResult describeClusters() { return describeClusters(new DescribeClustersRequest()); }