@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHostedZoneId() == null) ? 0 : getHostedZoneId().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> * The ID of the hosted zone that you want to list traffic policy instances for. * </p> * * @param hostedZoneId * The ID of the hosted zone that you want to list traffic policy instances for. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrafficPolicyInstancesByHostedZoneRequest withHostedZoneId(String hostedZoneId) { setHostedZoneId(hostedZoneId); return this; }
/** * <p> * The maximum number of traffic policy instances to be included in the response body for this 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 that Amazon Route 53 will return if you submit another request. * </p> * * @param maxItems * The maximum number of traffic policy instances to be included in the response body for this 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 that Amazon Route * 53 will return if you submit another request. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrafficPolicyInstancesByHostedZoneRequest withMaxItems(String maxItems) { setMaxItems(maxItems); return this; }
/** * <p> * If the value of <code>IsTruncated</code> in the previous response is true, 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 is true, 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 ListTrafficPolicyInstancesByHostedZoneRequest withTrafficPolicyInstanceNameMarker(String trafficPolicyInstanceNameMarker) { setTrafficPolicyInstanceNameMarker(trafficPolicyInstanceNameMarker); return this; }
/** * <p> * If the value of <code>IsTruncated</code> in the previous response is true, 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 is true, 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 is true, 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 is true, 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 ListTrafficPolicyInstancesByHostedZoneRequest withTrafficPolicyInstanceTypeMarker(String trafficPolicyInstanceTypeMarker) { setTrafficPolicyInstanceTypeMarker(trafficPolicyInstanceTypeMarker); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListTrafficPolicyInstancesByHostedZoneRequest == false) return false; ListTrafficPolicyInstancesByHostedZoneRequest other = (ListTrafficPolicyInstancesByHostedZoneRequest) obj; if (other.getHostedZoneId() == null ^ this.getHostedZoneId() == null) return false; if (other.getHostedZoneId() != null && other.getHostedZoneId().equals(this.getHostedZoneId()) == 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; }
/** * 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 (getHostedZoneId() != null) sb.append("HostedZoneId: ").append(getHostedZoneId()).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(); }
public Request<ListTrafficPolicyInstancesByHostedZoneRequest> marshall( ListTrafficPolicyInstancesByHostedZoneRequest listTrafficPolicyInstancesByHostedZoneRequest) { if (listTrafficPolicyInstancesByHostedZoneRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<ListTrafficPolicyInstancesByHostedZoneRequest> request = new DefaultRequest<ListTrafficPolicyInstancesByHostedZoneRequest>( listTrafficPolicyInstancesByHostedZoneRequest, "AmazonRoute53"); request.setHttpMethod(HttpMethodName.GET); String uriResourcePath = "/2013-04-01/trafficpolicyinstances/hostedzone"; request.setResourcePath(uriResourcePath); if (listTrafficPolicyInstancesByHostedZoneRequest.getHostedZoneId() != null) { request.addParameter("id", StringUtils.fromString(listTrafficPolicyInstancesByHostedZoneRequest.getHostedZoneId())); } if (listTrafficPolicyInstancesByHostedZoneRequest.getTrafficPolicyInstanceNameMarker() != null) { request.addParameter("trafficpolicyinstancename", StringUtils.fromString(listTrafficPolicyInstancesByHostedZoneRequest.getTrafficPolicyInstanceNameMarker())); } if (listTrafficPolicyInstancesByHostedZoneRequest.getTrafficPolicyInstanceTypeMarker() != null) { request.addParameter("trafficpolicyinstancetype", StringUtils.fromString(listTrafficPolicyInstancesByHostedZoneRequest.getTrafficPolicyInstanceTypeMarker())); } if (listTrafficPolicyInstancesByHostedZoneRequest.getMaxItems() != null) { request.addParameter("maxitems", StringUtils.fromString(listTrafficPolicyInstancesByHostedZoneRequest.getMaxItems())); } return request; }