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