/** * Simplified method form for invoking the DescribeReservedNodes operation with an AsyncHandler. * * @see #describeReservedNodesAsync(DescribeReservedNodesRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<DescribeReservedNodesResult> describeReservedNodesAsync( com.amazonaws.handlers.AsyncHandler<DescribeReservedNodesRequest, DescribeReservedNodesResult> asyncHandler) { return describeReservedNodesAsync(new DescribeReservedNodesRequest(), asyncHandler); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReservedNodeId() == null) ? 0 : getReservedNodeId().hashCode()); hashCode = prime * hashCode + ((getMaxRecords() == null) ? 0 : getMaxRecords().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); return hashCode; }
/** * <p> * An optional parameter that specifies the starting point to return a set of response records. When the results of * a <a>DescribeReservedNodes</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> * * @param marker * An optional parameter that specifies the starting point to return a set of response records. When the * results of a <a>DescribeReservedNodes</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. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeReservedNodesRequest withMarker(String marker) { setMarker(marker); return this; }
/** * <p> * Identifier for the node reservation. * </p> * * @param reservedNodeId * Identifier for the node reservation. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeReservedNodesRequest withReservedNodeId(String reservedNodeId) { setReservedNodeId(reservedNodeId); 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 DescribeReservedNodesRequest withMaxRecords(Integer maxRecords) { setMaxRecords(maxRecords); return this; }
/** * <p> * Identifier for the node reservation. * </p> * * @param reservedNodeId * Identifier for the node reservation. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeReservedNodesRequest withReservedNodeId(String reservedNodeId) { setReservedNodeId(reservedNodeId); 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 DescribeReservedNodesRequest 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 DescribeReservedNodesRequest == false) return false; DescribeReservedNodesRequest other = (DescribeReservedNodesRequest) obj; if (other.getReservedNodeId() == null ^ this.getReservedNodeId() == null) return false; if (other.getReservedNodeId() != null && other.getReservedNodeId().equals(this.getReservedNodeId()) == 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 DescribeReservedNodes operation with an AsyncHandler. * * @see #describeReservedNodesAsync(DescribeReservedNodesRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<DescribeReservedNodesResult> describeReservedNodesAsync( com.amazonaws.handlers.AsyncHandler<DescribeReservedNodesRequest, DescribeReservedNodesResult> asyncHandler) { return describeReservedNodesAsync(new DescribeReservedNodesRequest(), asyncHandler); }
/** * <p> * An optional parameter that specifies the starting point to return a set of response records. When the results of * a <a>DescribeReservedNodes</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> * * @param marker * An optional parameter that specifies the starting point to return a set of response records. When the * results of a <a>DescribeReservedNodes</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. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeReservedNodesRequest 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 (getReservedNodeId() != null) sb.append("ReservedNodeId: ").append(getReservedNodeId()).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 DescribeReservedNodes operation. * * @see #describeReservedNodesAsync(DescribeReservedNodesRequest) */ @Override public java.util.concurrent.Future<DescribeReservedNodesResult> describeReservedNodesAsync() { return describeReservedNodesAsync(new DescribeReservedNodesRequest()); }
public Request<DescribeReservedNodesRequest> marshall(DescribeReservedNodesRequest describeReservedNodesRequest) { if (describeReservedNodesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<DescribeReservedNodesRequest> request = new DefaultRequest<DescribeReservedNodesRequest>(describeReservedNodesRequest, "AmazonRedshift"); request.addParameter("Action", "DescribeReservedNodes"); request.addParameter("Version", "2012-12-01"); request.setHttpMethod(HttpMethodName.POST); if (describeReservedNodesRequest.getReservedNodeId() != null) { request.addParameter("ReservedNodeId", StringUtils.fromString(describeReservedNodesRequest.getReservedNodeId())); } if (describeReservedNodesRequest.getMaxRecords() != null) { request.addParameter("MaxRecords", StringUtils.fromInteger(describeReservedNodesRequest.getMaxRecords())); } if (describeReservedNodesRequest.getMarker() != null) { request.addParameter("Marker", StringUtils.fromString(describeReservedNodesRequest.getMarker())); } return request; }
/** * Simplified method form for invoking the DescribeReservedNodes operation. * * @see #describeReservedNodesAsync(DescribeReservedNodesRequest) */ @Override public java.util.concurrent.Future<DescribeReservedNodesResult> describeReservedNodesAsync() { return describeReservedNodesAsync(new DescribeReservedNodesRequest()); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReservedNodeId() == null) ? 0 : getReservedNodeId().hashCode()); hashCode = prime * hashCode + ((getMaxRecords() == null) ? 0 : getMaxRecords().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); return hashCode; }
@Override public DescribeReservedNodesResult describeReservedNodes() { return describeReservedNodes(new DescribeReservedNodesRequest()); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeReservedNodesRequest == false) return false; DescribeReservedNodesRequest other = (DescribeReservedNodesRequest) obj; if (other.getReservedNodeId() == null ^ this.getReservedNodeId() == null) return false; if (other.getReservedNodeId() != null && other.getReservedNodeId().equals(this.getReservedNodeId()) == 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 DescribeReservedNodesResult describeReservedNodes() { return describeReservedNodes(new DescribeReservedNodesRequest()); }
/** * 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 (getReservedNodeId() != null) sb.append("ReservedNodeId: ").append(getReservedNodeId()).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 DescribeReservedNodes operation. * * @see #describeReservedNodesAsync(DescribeReservedNodesRequest) */ @Override public java.util.concurrent.Future<DescribeReservedNodesResult> describeReservedNodesAsync() { return describeReservedNodesAsync(new DescribeReservedNodesRequest()); }