@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHostedZoneIdMarker() == null) ? 0 : getHostedZoneIdMarker().hashCode()); hashCode = prime * hashCode + ((getTrafficPolicyInstanceNameMarker() == null) ? 0 : getTrafficPolicyInstanceNameMarker().hashCode()); hashCode = prime * hashCode + ((getTrafficPolicyInstanceTypeMarker() == null) ? 0 : getTrafficPolicyInstanceTypeMarker().hashCode()); hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode()); return hashCode; }
/** * <p> * If the value of <code>IsTruncated</code> in the previous response was <code>true</code>, you have more traffic * policy instances. To get more traffic policy instances, submit another <code>ListTrafficPolicyInstances</code> * request. For the value of <code>HostedZoneId</code>, specify the value of <code>HostedZoneIdMarker</code> from * the previous response, which is the hosted zone ID of the first traffic policy instance in the next group of * traffic policy instances. * </p> * <p> * If the value of <code>IsTruncated</code> in the previous response was <code>false</code>, there are no more * traffic policy instances to get. * </p> * * @param hostedZoneIdMarker * If the value of <code>IsTruncated</code> in the previous response was <code>true</code>, you have more * traffic policy instances. To get more traffic policy instances, submit another * <code>ListTrafficPolicyInstances</code> request. For the value of <code>HostedZoneId</code>, specify the * value of <code>HostedZoneIdMarker</code> from the previous response, which is the hosted zone ID of the * first traffic policy instance in the next group of traffic policy instances.</p> * <p> * If the value of <code>IsTruncated</code> in the previous response was <code>false</code>, there are no * more traffic policy instances to get. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrafficPolicyInstancesRequest withHostedZoneIdMarker(String hostedZoneIdMarker) { setHostedZoneIdMarker(hostedZoneIdMarker); return this; }
/** * <p> * The maximum number of traffic policy instances that you want Amazon Route 53 to return in response to a * <code>ListTrafficPolicyInstances</code> request. If you have more than <code>MaxItems</code> traffic policy * instances, the value of the <code>IsTruncated</code> element in the response is <code>true</code>, and the values * of <code>HostedZoneIdMarker</code>, <code>TrafficPolicyInstanceNameMarker</code>, and * <code>TrafficPolicyInstanceTypeMarker</code> represent the first traffic policy instance in the next group of * <code>MaxItems</code> traffic policy instances. * </p> * * @param maxItems * The maximum number of traffic policy instances that you want Amazon Route 53 to return in response to a * <code>ListTrafficPolicyInstances</code> request. If you have more than <code>MaxItems</code> traffic * policy instances, the value of the <code>IsTruncated</code> element in the response is <code>true</code>, * and the values of <code>HostedZoneIdMarker</code>, <code>TrafficPolicyInstanceNameMarker</code>, and * <code>TrafficPolicyInstanceTypeMarker</code> represent the first traffic policy instance in the next group * of <code>MaxItems</code> traffic policy instances. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrafficPolicyInstancesRequest withMaxItems(String maxItems) { setMaxItems(maxItems); return this; }
@Override public ListTrafficPolicyInstancesResult listTrafficPolicyInstances() { return listTrafficPolicyInstances(new ListTrafficPolicyInstancesRequest()); }
/** * <p> * If the value of <code>IsTruncated</code> in the previous response was <code>true</code>, you have more traffic * policy instances. To get more traffic policy instances, submit another <code>ListTrafficPolicyInstances</code> * request. For the value of <code>trafficpolicyinstancetype</code>, specify the value of * <code>TrafficPolicyInstanceTypeMarker</code> from the previous response, which is the type of the first traffic * policy instance in the next group of traffic policy instances. * </p> * <p> * If the value of <code>IsTruncated</code> in the previous response was <code>false</code>, there are no more * traffic policy instances to get. * </p> * * @param trafficPolicyInstanceTypeMarker * If the value of <code>IsTruncated</code> in the previous response was <code>true</code>, you have more * traffic policy instances. To get more traffic policy instances, submit another * <code>ListTrafficPolicyInstances</code> request. For the value of <code>trafficpolicyinstancetype</code>, * specify the value of <code>TrafficPolicyInstanceTypeMarker</code> from the previous response, which is the * type of the first traffic policy instance in the next group of traffic policy instances.</p> * <p> * If the value of <code>IsTruncated</code> in the previous response was <code>false</code>, there are no * more traffic policy instances to get. * @return Returns a reference to this object so that method calls can be chained together. * @see RRType */ public ListTrafficPolicyInstancesRequest withTrafficPolicyInstanceTypeMarker(String trafficPolicyInstanceTypeMarker) { setTrafficPolicyInstanceTypeMarker(trafficPolicyInstanceTypeMarker); return this; }
/** * <p> * If the value of <code>IsTruncated</code> in the previous response was <code>true</code>, you have more traffic * policy instances. To get more traffic policy instances, submit another <code>ListTrafficPolicyInstances</code> * request. For the value of <code>trafficpolicyinstancetype</code>, specify the value of * <code>TrafficPolicyInstanceTypeMarker</code> from the previous response, which is the type of the first traffic * policy instance in the next group of traffic policy instances. * </p> * <p> * If the value of <code>IsTruncated</code> in the previous response was <code>false</code>, there are no more * traffic policy instances to get. * </p> * * @param trafficPolicyInstanceTypeMarker * If the value of <code>IsTruncated</code> in the previous response was <code>true</code>, you have more * traffic policy instances. To get more traffic policy instances, submit another * <code>ListTrafficPolicyInstances</code> request. For the value of <code>trafficpolicyinstancetype</code>, * specify the value of <code>TrafficPolicyInstanceTypeMarker</code> from the previous response, which is the * type of the first traffic policy instance in the next group of traffic policy instances.</p> * <p> * If the value of <code>IsTruncated</code> in the previous response was <code>false</code>, there are no * more traffic policy instances to get. * @see RRType */ public void setTrafficPolicyInstanceTypeMarker(RRType trafficPolicyInstanceTypeMarker) { withTrafficPolicyInstanceTypeMarker(trafficPolicyInstanceTypeMarker); }
/** * <p> * If the value of <code>IsTruncated</code> in the previous response was <code>true</code>, you have more traffic * policy instances. To get more traffic policy instances, submit another <code>ListTrafficPolicyInstances</code> * request. For the value of <code>trafficpolicyinstancename</code>, specify the value of * <code>TrafficPolicyInstanceNameMarker</code> from the previous response, which is the name of the first traffic * policy instance in the next group of traffic policy instances. * </p> * <p> * If the value of <code>IsTruncated</code> in the previous response was <code>false</code>, there are no more * traffic policy instances to get. * </p> * * @param trafficPolicyInstanceNameMarker * If the value of <code>IsTruncated</code> in the previous response was <code>true</code>, you have more * traffic policy instances. To get more traffic policy instances, submit another * <code>ListTrafficPolicyInstances</code> request. For the value of <code>trafficpolicyinstancename</code>, * specify the value of <code>TrafficPolicyInstanceNameMarker</code> from the previous response, which is the * name of the first traffic policy instance in the next group of traffic policy instances.</p> * <p> * If the value of <code>IsTruncated</code> in the previous response was <code>false</code>, there are no * more traffic policy instances to get. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrafficPolicyInstancesRequest withTrafficPolicyInstanceNameMarker(String trafficPolicyInstanceNameMarker) { setTrafficPolicyInstanceNameMarker(trafficPolicyInstanceNameMarker); return this; }
/** * Simplified method form for invoking the ListTrafficPolicyInstances operation. * * @see #listTrafficPolicyInstancesAsync(ListTrafficPolicyInstancesRequest) */ @Override public java.util.concurrent.Future<ListTrafficPolicyInstancesResult> listTrafficPolicyInstancesAsync() { return listTrafficPolicyInstancesAsync(new ListTrafficPolicyInstancesRequest()); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListTrafficPolicyInstancesRequest == false) return false; ListTrafficPolicyInstancesRequest other = (ListTrafficPolicyInstancesRequest) obj; if (other.getHostedZoneIdMarker() == null ^ this.getHostedZoneIdMarker() == null) return false; if (other.getHostedZoneIdMarker() != null && other.getHostedZoneIdMarker().equals(this.getHostedZoneIdMarker()) == false) return false; if (other.getTrafficPolicyInstanceNameMarker() == null ^ this.getTrafficPolicyInstanceNameMarker() == null) return false; if (other.getTrafficPolicyInstanceNameMarker() != null && other.getTrafficPolicyInstanceNameMarker().equals(this.getTrafficPolicyInstanceNameMarker()) == false) return false; if (other.getTrafficPolicyInstanceTypeMarker() == null ^ this.getTrafficPolicyInstanceTypeMarker() == null) return false; if (other.getTrafficPolicyInstanceTypeMarker() != null && other.getTrafficPolicyInstanceTypeMarker().equals(this.getTrafficPolicyInstanceTypeMarker()) == false) return false; if (other.getMaxItems() == null ^ this.getMaxItems() == null) return false; if (other.getMaxItems() != null && other.getMaxItems().equals(this.getMaxItems()) == false) return false; return true; }
/** * Simplified method form for invoking the ListTrafficPolicyInstances operation. * * @see #listTrafficPolicyInstancesAsync(ListTrafficPolicyInstancesRequest) */ @Override public java.util.concurrent.Future<ListTrafficPolicyInstancesResult> listTrafficPolicyInstancesAsync() { return listTrafficPolicyInstancesAsync(new ListTrafficPolicyInstancesRequest()); }
/** * 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 (getHostedZoneIdMarker() != null) sb.append("HostedZoneIdMarker: ").append(getHostedZoneIdMarker()).append(","); if (getTrafficPolicyInstanceNameMarker() != null) sb.append("TrafficPolicyInstanceNameMarker: ").append(getTrafficPolicyInstanceNameMarker()).append(","); if (getTrafficPolicyInstanceTypeMarker() != null) sb.append("TrafficPolicyInstanceTypeMarker: ").append(getTrafficPolicyInstanceTypeMarker()).append(","); if (getMaxItems() != null) sb.append("MaxItems: ").append(getMaxItems()); sb.append("}"); return sb.toString(); }
@Override public ListTrafficPolicyInstancesResult listTrafficPolicyInstances() { return listTrafficPolicyInstances(new ListTrafficPolicyInstancesRequest()); }
public Request<ListTrafficPolicyInstancesRequest> marshall(ListTrafficPolicyInstancesRequest listTrafficPolicyInstancesRequest) { if (listTrafficPolicyInstancesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<ListTrafficPolicyInstancesRequest> request = new DefaultRequest<ListTrafficPolicyInstancesRequest>(listTrafficPolicyInstancesRequest, "AmazonRoute53"); request.setHttpMethod(HttpMethodName.GET); String uriResourcePath = "/2013-04-01/trafficpolicyinstances"; request.setResourcePath(uriResourcePath); if (listTrafficPolicyInstancesRequest.getHostedZoneIdMarker() != null) { request.addParameter("hostedzoneid", StringUtils.fromString(listTrafficPolicyInstancesRequest.getHostedZoneIdMarker())); } if (listTrafficPolicyInstancesRequest.getTrafficPolicyInstanceNameMarker() != null) { request.addParameter("trafficpolicyinstancename", StringUtils.fromString(listTrafficPolicyInstancesRequest.getTrafficPolicyInstanceNameMarker())); } if (listTrafficPolicyInstancesRequest.getTrafficPolicyInstanceTypeMarker() != null) { request.addParameter("trafficpolicyinstancetype", StringUtils.fromString(listTrafficPolicyInstancesRequest.getTrafficPolicyInstanceTypeMarker())); } if (listTrafficPolicyInstancesRequest.getMaxItems() != null) { request.addParameter("maxitems", StringUtils.fromString(listTrafficPolicyInstancesRequest.getMaxItems())); } return request; }
/** * Simplified method form for invoking the ListTrafficPolicyInstances operation with an AsyncHandler. * * @see #listTrafficPolicyInstancesAsync(ListTrafficPolicyInstancesRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<ListTrafficPolicyInstancesResult> listTrafficPolicyInstancesAsync( com.amazonaws.handlers.AsyncHandler<ListTrafficPolicyInstancesRequest, ListTrafficPolicyInstancesResult> asyncHandler) { return listTrafficPolicyInstancesAsync(new ListTrafficPolicyInstancesRequest(), asyncHandler); }
/** * Simplified method form for invoking the ListTrafficPolicyInstances operation with an AsyncHandler. * * @see #listTrafficPolicyInstancesAsync(ListTrafficPolicyInstancesRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<ListTrafficPolicyInstancesResult> listTrafficPolicyInstancesAsync( com.amazonaws.handlers.AsyncHandler<ListTrafficPolicyInstancesRequest, ListTrafficPolicyInstancesResult> asyncHandler) { return listTrafficPolicyInstancesAsync(new ListTrafficPolicyInstancesRequest(), asyncHandler); }