/* * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.route53.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * <p> * A complex type that contains the information about the request to list your traffic policy instances. * </p> * * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/ListTrafficPolicyInstancesByPolicy" * target="_top">AWS API Documentation</a> */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ListTrafficPolicyInstancesByPolicyRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** * <p> * The ID of the traffic policy for which you want to list traffic policy instances. * </p> */ private String trafficPolicyId; /** * <p> * The version of the traffic policy for which you want to list traffic policy instances. The version must be * associated with the traffic policy that is specified by <code>TrafficPolicyId</code>. * </p> */ private Integer trafficPolicyVersion; /** * <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>ListTrafficPolicyInstancesByPolicy</code> request. * </p> * <p> * 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 that Amazon Route 53 will * return if you submit another request. * </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> */ private String hostedZoneIdMarker; /** * <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>ListTrafficPolicyInstancesByPolicy</code> request. * </p> * <p> * 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 that Amazon Route 53 will return if you submit another request. * </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> */ private String trafficPolicyInstanceNameMarker; /** * <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>ListTrafficPolicyInstancesByPolicy</code> request. * </p> * <p> * For the value of <code>trafficpolicyinstancetype</code>, specify the value of * <code>TrafficPolicyInstanceTypeMarker</code> from the previous response, which is the name of the first traffic * policy instance that Amazon Route 53 will return if you submit another request. * </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> */ private String trafficPolicyInstanceTypeMarker; /** * <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> */ private String maxItems; /** * <p> * The ID of the traffic policy for which you want to list traffic policy instances. * </p> * * @param trafficPolicyId * The ID of the traffic policy for which you want to list traffic policy instances. */ public void setTrafficPolicyId(String trafficPolicyId) { this.trafficPolicyId = trafficPolicyId; } /** * <p> * The ID of the traffic policy for which you want to list traffic policy instances. * </p> * * @return The ID of the traffic policy for which you want to list traffic policy instances. */ public String getTrafficPolicyId() { return this.trafficPolicyId; } /** * <p> * The ID of the traffic policy for which you want to list traffic policy instances. * </p> * * @param trafficPolicyId * The ID of the traffic policy for which you want to list traffic policy instances. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrafficPolicyInstancesByPolicyRequest withTrafficPolicyId(String trafficPolicyId) { setTrafficPolicyId(trafficPolicyId); return this; } /** * <p> * The version of the traffic policy for which you want to list traffic policy instances. The version must be * associated with the traffic policy that is specified by <code>TrafficPolicyId</code>. * </p> * * @param trafficPolicyVersion * The version of the traffic policy for which you want to list traffic policy instances. The version must be * associated with the traffic policy that is specified by <code>TrafficPolicyId</code>. */ public void setTrafficPolicyVersion(Integer trafficPolicyVersion) { this.trafficPolicyVersion = trafficPolicyVersion; } /** * <p> * The version of the traffic policy for which you want to list traffic policy instances. The version must be * associated with the traffic policy that is specified by <code>TrafficPolicyId</code>. * </p> * * @return The version of the traffic policy for which you want to list traffic policy instances. The version must * be associated with the traffic policy that is specified by <code>TrafficPolicyId</code>. */ public Integer getTrafficPolicyVersion() { return this.trafficPolicyVersion; } /** * <p> * The version of the traffic policy for which you want to list traffic policy instances. The version must be * associated with the traffic policy that is specified by <code>TrafficPolicyId</code>. * </p> * * @param trafficPolicyVersion * The version of the traffic policy for which you want to list traffic policy instances. The version must be * associated with the traffic policy that is specified by <code>TrafficPolicyId</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrafficPolicyInstancesByPolicyRequest withTrafficPolicyVersion(Integer trafficPolicyVersion) { setTrafficPolicyVersion(trafficPolicyVersion); 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>ListTrafficPolicyInstancesByPolicy</code> request. * </p> * <p> * 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 that Amazon Route 53 will * return if you submit another request. * </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>ListTrafficPolicyInstancesByPolicy</code> request. </p> * <p> * 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 that Amazon Route 53 * will return if you submit another request. * </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. */ public void setHostedZoneIdMarker(String hostedZoneIdMarker) { this.hostedZoneIdMarker = hostedZoneIdMarker; } /** * <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>ListTrafficPolicyInstancesByPolicy</code> request. * </p> * <p> * 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 that Amazon Route 53 will * return if you submit another request. * </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> * * @return 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>ListTrafficPolicyInstancesByPolicy</code> request. </p> * <p> * 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 that Amazon Route 53 * will return if you submit another request. * </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. */ public String getHostedZoneIdMarker() { return this.hostedZoneIdMarker; } /** * <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>ListTrafficPolicyInstancesByPolicy</code> request. * </p> * <p> * 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 that Amazon Route 53 will * return if you submit another request. * </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>ListTrafficPolicyInstancesByPolicy</code> request. </p> * <p> * 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 that Amazon Route 53 * will return if you submit another request. * </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 ListTrafficPolicyInstancesByPolicyRequest withHostedZoneIdMarker(String hostedZoneIdMarker) { setHostedZoneIdMarker(hostedZoneIdMarker); 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>ListTrafficPolicyInstancesByPolicy</code> request. * </p> * <p> * 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 that Amazon Route 53 will return if you submit another request. * </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>ListTrafficPolicyInstancesByPolicy</code> request.</p> * <p> * 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 that Amazon Route 53 will return if you submit another request. * </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. */ public void setTrafficPolicyInstanceNameMarker(String trafficPolicyInstanceNameMarker) { this.trafficPolicyInstanceNameMarker = trafficPolicyInstanceNameMarker; } /** * <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>ListTrafficPolicyInstancesByPolicy</code> request. * </p> * <p> * 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 that Amazon Route 53 will return if you submit another request. * </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> * * @return 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>ListTrafficPolicyInstancesByPolicy</code> request.</p> * <p> * 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 that Amazon Route 53 will return if you submit another request. * </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. */ public String getTrafficPolicyInstanceNameMarker() { return this.trafficPolicyInstanceNameMarker; } /** * <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>ListTrafficPolicyInstancesByPolicy</code> request. * </p> * <p> * 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 that Amazon Route 53 will return if you submit another request. * </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>ListTrafficPolicyInstancesByPolicy</code> request.</p> * <p> * 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 that Amazon Route 53 will return if you submit another request. * </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 ListTrafficPolicyInstancesByPolicyRequest withTrafficPolicyInstanceNameMarker(String trafficPolicyInstanceNameMarker) { setTrafficPolicyInstanceNameMarker(trafficPolicyInstanceNameMarker); 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>ListTrafficPolicyInstancesByPolicy</code> request. * </p> * <p> * For the value of <code>trafficpolicyinstancetype</code>, specify the value of * <code>TrafficPolicyInstanceTypeMarker</code> from the previous response, which is the name of the first traffic * policy instance that Amazon Route 53 will return if you submit another request. * </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>ListTrafficPolicyInstancesByPolicy</code> request.</p> * <p> * For the value of <code>trafficpolicyinstancetype</code>, specify the value of * <code>TrafficPolicyInstanceTypeMarker</code> from the previous response, which is the name of the first * traffic policy instance that Amazon Route 53 will return if you submit another request. * </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(String trafficPolicyInstanceTypeMarker) { this.trafficPolicyInstanceTypeMarker = 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>ListTrafficPolicyInstancesByPolicy</code> request. * </p> * <p> * For the value of <code>trafficpolicyinstancetype</code>, specify the value of * <code>TrafficPolicyInstanceTypeMarker</code> from the previous response, which is the name of the first traffic * policy instance that Amazon Route 53 will return if you submit another request. * </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> * * @return 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>ListTrafficPolicyInstancesByPolicy</code> request.</p> * <p> * For the value of <code>trafficpolicyinstancetype</code>, specify the value of * <code>TrafficPolicyInstanceTypeMarker</code> from the previous response, which is the name of the first * traffic policy instance that Amazon Route 53 will return if you submit another request. * </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 String getTrafficPolicyInstanceTypeMarker() { return this.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>ListTrafficPolicyInstancesByPolicy</code> request. * </p> * <p> * For the value of <code>trafficpolicyinstancetype</code>, specify the value of * <code>TrafficPolicyInstanceTypeMarker</code> from the previous response, which is the name of the first traffic * policy instance that Amazon Route 53 will return if you submit another request. * </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>ListTrafficPolicyInstancesByPolicy</code> request.</p> * <p> * For the value of <code>trafficpolicyinstancetype</code>, specify the value of * <code>TrafficPolicyInstanceTypeMarker</code> from the previous response, which is the name of the first * traffic policy instance that Amazon Route 53 will return if you submit another request. * </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 ListTrafficPolicyInstancesByPolicyRequest 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>ListTrafficPolicyInstancesByPolicy</code> request. * </p> * <p> * For the value of <code>trafficpolicyinstancetype</code>, specify the value of * <code>TrafficPolicyInstanceTypeMarker</code> from the previous response, which is the name of the first traffic * policy instance that Amazon Route 53 will return if you submit another request. * </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>ListTrafficPolicyInstancesByPolicy</code> request.</p> * <p> * For the value of <code>trafficpolicyinstancetype</code>, specify the value of * <code>TrafficPolicyInstanceTypeMarker</code> from the previous response, which is the name of the first * traffic policy instance that Amazon Route 53 will return if you submit another request. * </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) { this.trafficPolicyInstanceTypeMarker = trafficPolicyInstanceTypeMarker.toString(); } /** * <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>ListTrafficPolicyInstancesByPolicy</code> request. * </p> * <p> * For the value of <code>trafficpolicyinstancetype</code>, specify the value of * <code>TrafficPolicyInstanceTypeMarker</code> from the previous response, which is the name of the first traffic * policy instance that Amazon Route 53 will return if you submit another request. * </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>ListTrafficPolicyInstancesByPolicy</code> request.</p> * <p> * For the value of <code>trafficpolicyinstancetype</code>, specify the value of * <code>TrafficPolicyInstanceTypeMarker</code> from the previous response, which is the name of the first * traffic policy instance that Amazon Route 53 will return if you submit another request. * </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 ListTrafficPolicyInstancesByPolicyRequest withTrafficPolicyInstanceTypeMarker(RRType trafficPolicyInstanceTypeMarker) { setTrafficPolicyInstanceTypeMarker(trafficPolicyInstanceTypeMarker); 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. */ public void setMaxItems(String maxItems) { this.maxItems = maxItems; } /** * <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> * * @return 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. */ public String getMaxItems() { return this.maxItems; } /** * <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 ListTrafficPolicyInstancesByPolicyRequest withMaxItems(String maxItems) { setMaxItems(maxItems); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getTrafficPolicyId() != null) sb.append("TrafficPolicyId: ").append(getTrafficPolicyId()).append(","); if (getTrafficPolicyVersion() != null) sb.append("TrafficPolicyVersion: ").append(getTrafficPolicyVersion()).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 boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListTrafficPolicyInstancesByPolicyRequest == false) return false; ListTrafficPolicyInstancesByPolicyRequest other = (ListTrafficPolicyInstancesByPolicyRequest) obj; if (other.getTrafficPolicyId() == null ^ this.getTrafficPolicyId() == null) return false; if (other.getTrafficPolicyId() != null && other.getTrafficPolicyId().equals(this.getTrafficPolicyId()) == false) return false; if (other.getTrafficPolicyVersion() == null ^ this.getTrafficPolicyVersion() == null) return false; if (other.getTrafficPolicyVersion() != null && other.getTrafficPolicyVersion().equals(this.getTrafficPolicyVersion()) == false) return false; 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; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTrafficPolicyId() == null) ? 0 : getTrafficPolicyId().hashCode()); hashCode = prime * hashCode + ((getTrafficPolicyVersion() == null) ? 0 : getTrafficPolicyVersion().hashCode()); 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; } @Override public ListTrafficPolicyInstancesByPolicyRequest clone() { return (ListTrafficPolicyInstancesByPolicyRequest) super.clone(); } }