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

com.amazonaws.services.route53.model.ListTrafficPolicyVersionsRequest 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 policies. *

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

* Specify the value of Id of the traffic policy for which you * want to list all versions. *

*/ private String id; /** *

* For your first request to ListTrafficPolicyVersions, do not * include the TrafficPolicyVersionMarker parameter. *

*

* If you have more traffic policy versions than the value of * MaxItems, ListTrafficPolicyVersions returns * only the first group of MaxItems versions. To get the next * group of MaxItems traffic policy versions, submit another * request to ListTrafficPolicyVersions. For the value of * TrafficPolicyVersionMarker, specify the value of the * TrafficPolicyVersionMarker element that was returned in the * previous response. *

*

* Traffic policy versions are listed in sequential order. *

*/ private String trafficPolicyVersionMarker; /** *

* The maximum number of traffic policy versions that you want Amazon Route * 53 to include in the response body for this request. If the specified * traffic policy has more than MaxItems versions, the value of * the IsTruncated element in the response is true * , and the value of the TrafficPolicyVersionMarker element is * the ID of the first version in the next group of MaxItems * traffic policy versions. *

*/ private String maxItems; /** *

* Specify the value of Id of the traffic policy for which you * want to list all versions. *

* * @param id * Specify the value of Id of the traffic policy for * which you want to list all versions. */ public void setId(String id) { this.id = id; } /** *

* Specify the value of Id of the traffic policy for which you * want to list all versions. *

* * @return Specify the value of Id of the traffic policy for * which you want to list all versions. */ public String getId() { return this.id; } /** *

* Specify the value of Id of the traffic policy for which you * want to list all versions. *

* * @param id * Specify the value of Id of the traffic policy for * which you want to list all versions. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListTrafficPolicyVersionsRequest withId(String id) { setId(id); return this; } /** *

* For your first request to ListTrafficPolicyVersions, do not * include the TrafficPolicyVersionMarker parameter. *

*

* If you have more traffic policy versions than the value of * MaxItems, ListTrafficPolicyVersions returns * only the first group of MaxItems versions. To get the next * group of MaxItems traffic policy versions, submit another * request to ListTrafficPolicyVersions. For the value of * TrafficPolicyVersionMarker, specify the value of the * TrafficPolicyVersionMarker element that was returned in the * previous response. *

*

* Traffic policy versions are listed in sequential order. *

* * @param trafficPolicyVersionMarker * For your first request to ListTrafficPolicyVersions, * do not include the TrafficPolicyVersionMarker * parameter.

*

* If you have more traffic policy versions than the value of * MaxItems, ListTrafficPolicyVersions * returns only the first group of MaxItems versions. To * get the next group of MaxItems traffic policy * versions, submit another request to * ListTrafficPolicyVersions. For the value of * TrafficPolicyVersionMarker, specify the value of the * TrafficPolicyVersionMarker element that was returned * in the previous response. *

*

* Traffic policy versions are listed in sequential order. */ public void setTrafficPolicyVersionMarker(String trafficPolicyVersionMarker) { this.trafficPolicyVersionMarker = trafficPolicyVersionMarker; } /** *

* For your first request to ListTrafficPolicyVersions, do not * include the TrafficPolicyVersionMarker parameter. *

*

* If you have more traffic policy versions than the value of * MaxItems, ListTrafficPolicyVersions returns * only the first group of MaxItems versions. To get the next * group of MaxItems traffic policy versions, submit another * request to ListTrafficPolicyVersions. For the value of * TrafficPolicyVersionMarker, specify the value of the * TrafficPolicyVersionMarker element that was returned in the * previous response. *

*

* Traffic policy versions are listed in sequential order. *

* * @return For your first request to ListTrafficPolicyVersions, * do not include the TrafficPolicyVersionMarker * parameter.

*

* If you have more traffic policy versions than the value of * MaxItems, ListTrafficPolicyVersions * returns only the first group of MaxItems versions. * To get the next group of MaxItems traffic policy * versions, submit another request to * ListTrafficPolicyVersions. For the value of * TrafficPolicyVersionMarker, specify the value of the * TrafficPolicyVersionMarker element that was returned * in the previous response. *

*

* Traffic policy versions are listed in sequential order. */ public String getTrafficPolicyVersionMarker() { return this.trafficPolicyVersionMarker; } /** *

* For your first request to ListTrafficPolicyVersions, do not * include the TrafficPolicyVersionMarker parameter. *

*

* If you have more traffic policy versions than the value of * MaxItems, ListTrafficPolicyVersions returns * only the first group of MaxItems versions. To get the next * group of MaxItems traffic policy versions, submit another * request to ListTrafficPolicyVersions. For the value of * TrafficPolicyVersionMarker, specify the value of the * TrafficPolicyVersionMarker element that was returned in the * previous response. *

*

* Traffic policy versions are listed in sequential order. *

* * @param trafficPolicyVersionMarker * For your first request to ListTrafficPolicyVersions, * do not include the TrafficPolicyVersionMarker * parameter.

*

* If you have more traffic policy versions than the value of * MaxItems, ListTrafficPolicyVersions * returns only the first group of MaxItems versions. To * get the next group of MaxItems traffic policy * versions, submit another request to * ListTrafficPolicyVersions. For the value of * TrafficPolicyVersionMarker, specify the value of the * TrafficPolicyVersionMarker element that was returned * in the previous response. *

*

* Traffic policy versions are listed in sequential order. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListTrafficPolicyVersionsRequest withTrafficPolicyVersionMarker( String trafficPolicyVersionMarker) { setTrafficPolicyVersionMarker(trafficPolicyVersionMarker); return this; } /** *

* The maximum number of traffic policy versions that you want Amazon Route * 53 to include in the response body for this request. If the specified * traffic policy has more than MaxItems versions, the value of * the IsTruncated element in the response is true * , and the value of the TrafficPolicyVersionMarker element is * the ID of the first version in the next group of MaxItems * traffic policy versions. *

* * @param maxItems * The maximum number of traffic policy versions that you want Amazon * Route 53 to include in the response body for this request. If the * specified traffic policy has more than MaxItems * versions, the value of the IsTruncated element in the * response is true, and the value of the * TrafficPolicyVersionMarker element is the ID of the * first version in the next group of MaxItems traffic * policy versions. */ public void setMaxItems(String maxItems) { this.maxItems = maxItems; } /** *

* The maximum number of traffic policy versions that you want Amazon Route * 53 to include in the response body for this request. If the specified * traffic policy has more than MaxItems versions, the value of * the IsTruncated element in the response is true * , and the value of the TrafficPolicyVersionMarker element is * the ID of the first version in the next group of MaxItems * traffic policy versions. *

* * @return The maximum number of traffic policy versions that you want * Amazon Route 53 to include in the response body for this request. * If the specified traffic policy has more than * MaxItems versions, the value of the * IsTruncated element in the response is * true, and the value of the * TrafficPolicyVersionMarker element is the ID of the * first version in the next group of MaxItems traffic * policy versions. */ public String getMaxItems() { return this.maxItems; } /** *

* The maximum number of traffic policy versions that you want Amazon Route * 53 to include in the response body for this request. If the specified * traffic policy has more than MaxItems versions, the value of * the IsTruncated element in the response is true * , and the value of the TrafficPolicyVersionMarker element is * the ID of the first version in the next group of MaxItems * traffic policy versions. *

* * @param maxItems * The maximum number of traffic policy versions that you want Amazon * Route 53 to include in the response body for this request. If the * specified traffic policy has more than MaxItems * versions, the value of the IsTruncated element in the * response is true, and the value of the * TrafficPolicyVersionMarker element is the ID of the * first version in the next group of MaxItems traffic * policy versions. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListTrafficPolicyVersionsRequest 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 (getId() != null) sb.append("Id: " + getId() + ","); if (getTrafficPolicyVersionMarker() != null) sb.append("TrafficPolicyVersionMarker: " + getTrafficPolicyVersionMarker() + ","); 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 ListTrafficPolicyVersionsRequest == false) return false; ListTrafficPolicyVersionsRequest other = (ListTrafficPolicyVersionsRequest) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getTrafficPolicyVersionMarker() == null ^ this.getTrafficPolicyVersionMarker() == null) return false; if (other.getTrafficPolicyVersionMarker() != null && other.getTrafficPolicyVersionMarker().equals( this.getTrafficPolicyVersionMarker()) == 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 + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getTrafficPolicyVersionMarker() == null) ? 0 : getTrafficPolicyVersionMarker().hashCode()); hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode()); return hashCode; } @Override public ListTrafficPolicyVersionsRequest clone() { return (ListTrafficPolicyVersionsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy