All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.route53.model.ListTrafficPolicyInstancesByPolicyRequest Maven / Gradle / Ivy

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2011-2016 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 com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* A complex type that contains the information about the request to list your * traffic policy instances. *

*/ public class ListTrafficPolicyInstancesByPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* The ID of the traffic policy for which you want to list traffic policy * instances. *

*/ private String trafficPolicyId; /** *

* 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 TrafficPolicyId. *

*/ private Integer trafficPolicyVersion; /** *

* For the first request to ListTrafficPolicyInstancesByPolicy, * omit this value. *

*

* If the value of IsTruncated in the previous response was * true, HostedZoneIdMarker is the ID of the * hosted zone for the first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response was * false, there are no more traffic policy instances to get for * this hosted zone. *

*

* If the value of IsTruncated in the previous response was * false, omit this value. *

*/ private String hostedZoneIdMarker; /** *

* For the first request to ListTrafficPolicyInstancesByPolicy, * omit this value. *

*

* If the value of IsTruncated in the previous response was * true, TrafficPolicyInstanceNameMarker is the * name of the first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response was * false, there are no more traffic policy instances to get for * this hosted zone. *

*

* If the value of IsTruncated in the previous response was * false, omit this value. *

*/ private String trafficPolicyInstanceNameMarker; /** *

* For the first request to ListTrafficPolicyInstancesByPolicy, * omit this value. *

*

* If the value of IsTruncated in the previous response was * true, TrafficPolicyInstanceTypeMarker is the * DNS type of the first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response was * false, there are no more traffic policy instances to get for * this hosted zone. *

*/ private String trafficPolicyInstanceTypeMarker; /** *

* The maximum number of traffic policy instances to be included in the * response body for this request. If you have more than * MaxItems traffic policy instances, the value of the * IsTruncated element in the response is true, * and the values of HostedZoneIdMarker, * TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker represent the first traffic * policy instance in the next group of MaxItems traffic policy * instances. *

*/ private String maxItems; /** *

* The ID of the traffic policy for which you want to list traffic policy * instances. *

* * @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; } /** *

* The ID of the traffic policy for which you want to list traffic policy * instances. *

* * @return The ID of the traffic policy for which you want to list traffic * policy instances. */ public String getTrafficPolicyId() { return this.trafficPolicyId; } /** *

* The ID of the traffic policy for which you want to list traffic policy * instances. *

* * @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; } /** *

* 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 TrafficPolicyId. *

* * @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 TrafficPolicyId. */ public void setTrafficPolicyVersion(Integer trafficPolicyVersion) { this.trafficPolicyVersion = 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 TrafficPolicyId. *

* * @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 TrafficPolicyId. */ public Integer getTrafficPolicyVersion() { return this.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 TrafficPolicyId. *

* * @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 TrafficPolicyId. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListTrafficPolicyInstancesByPolicyRequest withTrafficPolicyVersion( Integer trafficPolicyVersion) { setTrafficPolicyVersion(trafficPolicyVersion); return this; } /** *

* For the first request to ListTrafficPolicyInstancesByPolicy, * omit this value. *

*

* If the value of IsTruncated in the previous response was * true, HostedZoneIdMarker is the ID of the * hosted zone for the first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response was * false, there are no more traffic policy instances to get for * this hosted zone. *

*

* If the value of IsTruncated in the previous response was * false, omit this value. *

* * @param hostedZoneIdMarker * For the first request to * ListTrafficPolicyInstancesByPolicy, omit this * value.

*

* If the value of IsTruncated in the previous response * was true, HostedZoneIdMarker is the ID * of the hosted zone for the first traffic policy instance in the * next group of MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response * was false, there are no more traffic policy instances * to get for this hosted zone. *

*

* If the value of IsTruncated in the previous response * was false, omit this value. */ public void setHostedZoneIdMarker(String hostedZoneIdMarker) { this.hostedZoneIdMarker = hostedZoneIdMarker; } /** *

* For the first request to ListTrafficPolicyInstancesByPolicy, * omit this value. *

*

* If the value of IsTruncated in the previous response was * true, HostedZoneIdMarker is the ID of the * hosted zone for the first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response was * false, there are no more traffic policy instances to get for * this hosted zone. *

*

* If the value of IsTruncated in the previous response was * false, omit this value. *

* * @return For the first request to * ListTrafficPolicyInstancesByPolicy, omit this * value.

*

* If the value of IsTruncated in the previous response * was true, HostedZoneIdMarker is the ID * of the hosted zone for the first traffic policy instance in the * next group of MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response * was false, there are no more traffic policy * instances to get for this hosted zone. *

*

* If the value of IsTruncated in the previous response * was false, omit this value. */ public String getHostedZoneIdMarker() { return this.hostedZoneIdMarker; } /** *

* For the first request to ListTrafficPolicyInstancesByPolicy, * omit this value. *

*

* If the value of IsTruncated in the previous response was * true, HostedZoneIdMarker is the ID of the * hosted zone for the first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response was * false, there are no more traffic policy instances to get for * this hosted zone. *

*

* If the value of IsTruncated in the previous response was * false, omit this value. *

* * @param hostedZoneIdMarker * For the first request to * ListTrafficPolicyInstancesByPolicy, omit this * value.

*

* If the value of IsTruncated in the previous response * was true, HostedZoneIdMarker is the ID * of the hosted zone for the first traffic policy instance in the * next group of MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response * was false, there are no more traffic policy instances * to get for this hosted zone. *

*

* If the value of IsTruncated in the previous response * was false, omit this value. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListTrafficPolicyInstancesByPolicyRequest withHostedZoneIdMarker( String hostedZoneIdMarker) { setHostedZoneIdMarker(hostedZoneIdMarker); return this; } /** *

* For the first request to ListTrafficPolicyInstancesByPolicy, * omit this value. *

*

* If the value of IsTruncated in the previous response was * true, TrafficPolicyInstanceNameMarker is the * name of the first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response was * false, there are no more traffic policy instances to get for * this hosted zone. *

*

* If the value of IsTruncated in the previous response was * false, omit this value. *

* * @param trafficPolicyInstanceNameMarker * For the first request to * ListTrafficPolicyInstancesByPolicy, omit this * value.

*

* If the value of IsTruncated in the previous response * was true, * TrafficPolicyInstanceNameMarker is the name of the * first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response * was false, there are no more traffic policy instances * to get for this hosted zone. *

*

* If the value of IsTruncated in the previous response * was false, omit this value. */ public void setTrafficPolicyInstanceNameMarker( String trafficPolicyInstanceNameMarker) { this.trafficPolicyInstanceNameMarker = trafficPolicyInstanceNameMarker; } /** *

* For the first request to ListTrafficPolicyInstancesByPolicy, * omit this value. *

*

* If the value of IsTruncated in the previous response was * true, TrafficPolicyInstanceNameMarker is the * name of the first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response was * false, there are no more traffic policy instances to get for * this hosted zone. *

*

* If the value of IsTruncated in the previous response was * false, omit this value. *

* * @return For the first request to * ListTrafficPolicyInstancesByPolicy, omit this * value.

*

* If the value of IsTruncated in the previous response * was true, * TrafficPolicyInstanceNameMarker is the name of the * first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response * was false, there are no more traffic policy * instances to get for this hosted zone. *

*

* If the value of IsTruncated in the previous response * was false, omit this value. */ public String getTrafficPolicyInstanceNameMarker() { return this.trafficPolicyInstanceNameMarker; } /** *

* For the first request to ListTrafficPolicyInstancesByPolicy, * omit this value. *

*

* If the value of IsTruncated in the previous response was * true, TrafficPolicyInstanceNameMarker is the * name of the first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response was * false, there are no more traffic policy instances to get for * this hosted zone. *

*

* If the value of IsTruncated in the previous response was * false, omit this value. *

* * @param trafficPolicyInstanceNameMarker * For the first request to * ListTrafficPolicyInstancesByPolicy, omit this * value.

*

* If the value of IsTruncated in the previous response * was true, * TrafficPolicyInstanceNameMarker is the name of the * first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response * was false, there are no more traffic policy instances * to get for this hosted zone. *

*

* If the value of IsTruncated in the previous response * was false, omit this value. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListTrafficPolicyInstancesByPolicyRequest withTrafficPolicyInstanceNameMarker( String trafficPolicyInstanceNameMarker) { setTrafficPolicyInstanceNameMarker(trafficPolicyInstanceNameMarker); return this; } /** *

* For the first request to ListTrafficPolicyInstancesByPolicy, * omit this value. *

*

* If the value of IsTruncated in the previous response was * true, TrafficPolicyInstanceTypeMarker is the * DNS type of the first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response was * false, there are no more traffic policy instances to get for * this hosted zone. *

* * @param trafficPolicyInstanceTypeMarker * For the first request to * ListTrafficPolicyInstancesByPolicy, omit this * value.

*

* If the value of IsTruncated in the previous response * was true, * TrafficPolicyInstanceTypeMarker is the DNS type of * the first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response * was false, there are no more traffic policy instances * to get for this hosted zone. * @see RRType */ public void setTrafficPolicyInstanceTypeMarker( String trafficPolicyInstanceTypeMarker) { this.trafficPolicyInstanceTypeMarker = trafficPolicyInstanceTypeMarker; } /** *

* For the first request to ListTrafficPolicyInstancesByPolicy, * omit this value. *

*

* If the value of IsTruncated in the previous response was * true, TrafficPolicyInstanceTypeMarker is the * DNS type of the first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response was * false, there are no more traffic policy instances to get for * this hosted zone. *

* * @return For the first request to * ListTrafficPolicyInstancesByPolicy, omit this * value.

*

* If the value of IsTruncated in the previous response * was true, * TrafficPolicyInstanceTypeMarker is the DNS type of * the first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response * was false, there are no more traffic policy * instances to get for this hosted zone. * @see RRType */ public String getTrafficPolicyInstanceTypeMarker() { return this.trafficPolicyInstanceTypeMarker; } /** *

* For the first request to ListTrafficPolicyInstancesByPolicy, * omit this value. *

*

* If the value of IsTruncated in the previous response was * true, TrafficPolicyInstanceTypeMarker is the * DNS type of the first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response was * false, there are no more traffic policy instances to get for * this hosted zone. *

* * @param trafficPolicyInstanceTypeMarker * For the first request to * ListTrafficPolicyInstancesByPolicy, omit this * value.

*

* If the value of IsTruncated in the previous response * was true, * TrafficPolicyInstanceTypeMarker is the DNS type of * the first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response * was false, there are no more traffic policy instances * to get for this hosted zone. * @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; } /** *

* For the first request to ListTrafficPolicyInstancesByPolicy, * omit this value. *

*

* If the value of IsTruncated in the previous response was * true, TrafficPolicyInstanceTypeMarker is the * DNS type of the first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response was * false, there are no more traffic policy instances to get for * this hosted zone. *

* * @param trafficPolicyInstanceTypeMarker * For the first request to * ListTrafficPolicyInstancesByPolicy, omit this * value.

*

* If the value of IsTruncated in the previous response * was true, * TrafficPolicyInstanceTypeMarker is the DNS type of * the first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response * was false, there are no more traffic policy instances * to get for this hosted zone. * @see RRType */ public void setTrafficPolicyInstanceTypeMarker( RRType trafficPolicyInstanceTypeMarker) { this.trafficPolicyInstanceTypeMarker = trafficPolicyInstanceTypeMarker .toString(); } /** *

* For the first request to ListTrafficPolicyInstancesByPolicy, * omit this value. *

*

* If the value of IsTruncated in the previous response was * true, TrafficPolicyInstanceTypeMarker is the * DNS type of the first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response was * false, there are no more traffic policy instances to get for * this hosted zone. *

* * @param trafficPolicyInstanceTypeMarker * For the first request to * ListTrafficPolicyInstancesByPolicy, omit this * value.

*

* If the value of IsTruncated in the previous response * was true, * TrafficPolicyInstanceTypeMarker is the DNS type of * the first traffic policy instance in the next group of * MaxItems traffic policy instances. *

*

* If the value of IsTruncated in the previous response * was false, there are no more traffic policy instances * to get for this hosted zone. * @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; } /** *

* The maximum number of traffic policy instances to be included in the * response body for this request. If you have more than * MaxItems traffic policy instances, the value of the * IsTruncated element in the response is true, * and the values of HostedZoneIdMarker, * TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker represent the first traffic * policy instance in the next group of MaxItems traffic policy * instances. *

* * @param maxItems * The maximum number of traffic policy instances to be included in * the response body for this request. If you have more than * MaxItems traffic policy instances, the value of the * IsTruncated element in the response is * true, and the values of * HostedZoneIdMarker, * TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker represent the first * traffic policy instance in the next group of MaxItems * traffic policy instances. */ public void setMaxItems(String maxItems) { this.maxItems = maxItems; } /** *

* The maximum number of traffic policy instances to be included in the * response body for this request. If you have more than * MaxItems traffic policy instances, the value of the * IsTruncated element in the response is true, * and the values of HostedZoneIdMarker, * TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker represent the first traffic * policy instance in the next group of MaxItems traffic policy * instances. *

* * @return The maximum number of traffic policy instances to be included in * the response body for this request. If you have more than * MaxItems traffic policy instances, the value of the * IsTruncated element in the response is * true, and the values of * HostedZoneIdMarker, * TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker represent the first * traffic policy instance in the next group of * MaxItems traffic policy instances. */ public String getMaxItems() { return this.maxItems; } /** *

* The maximum number of traffic policy instances to be included in the * response body for this request. If you have more than * MaxItems traffic policy instances, the value of the * IsTruncated element in the response is true, * and the values of HostedZoneIdMarker, * TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker represent the first traffic * policy instance in the next group of MaxItems traffic policy * instances. *

* * @param maxItems * The maximum number of traffic policy instances to be included in * the response body for this request. If you have more than * MaxItems traffic policy instances, the value of the * IsTruncated element in the response is * true, and the values of * HostedZoneIdMarker, * TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker represent the first * traffic policy instance in the next group of MaxItems * traffic policy instances. * @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: " + getTrafficPolicyId() + ","); if (getTrafficPolicyVersion() != null) sb.append("TrafficPolicyVersion: " + getTrafficPolicyVersion() + ","); if (getHostedZoneIdMarker() != null) sb.append("HostedZoneIdMarker: " + getHostedZoneIdMarker() + ","); if (getTrafficPolicyInstanceNameMarker() != null) sb.append("TrafficPolicyInstanceNameMarker: " + getTrafficPolicyInstanceNameMarker() + ","); if (getTrafficPolicyInstanceTypeMarker() != null) sb.append("TrafficPolicyInstanceTypeMarker: " + getTrafficPolicyInstanceTypeMarker() + ","); if (getMaxItems() != null) sb.append("MaxItems: " + 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(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy