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

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

Go to download

The AWS Java SDK for Amazon Route53 module holds the client classes that are used for communicating with Amazon Route53 Service

There is a newer version: 1.11.98
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 the * traffic policies that are associated with the current AWS account. *

*/ public class ListTrafficPoliciesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* (Conditional) For your first request to ListTrafficPolicies, * do not include the TrafficPolicyIdMarker parameter. *

*

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

*

* Policies are listed in the order in which they were created. *

*/ private String trafficPolicyIdMarker; /** *

* (Optional) The maximum number of traffic policies to be included in the * response body for this request. If you have more than * MaxItems traffic policies, the value of the * IsTruncated element in the response is true, * and the value of the TrafficPolicyIdMarker element is the ID * of the first traffic policy in the next group of MaxItems * traffic policies. *

*/ private String maxItems; /** *

* (Conditional) For your first request to ListTrafficPolicies, * do not include the TrafficPolicyIdMarker parameter. *

*

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

*

* Policies are listed in the order in which they were created. *

* * @param trafficPolicyIdMarker * (Conditional) For your first request to * ListTrafficPolicies, do not include the * TrafficPolicyIdMarker parameter.

*

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

*

* Policies are listed in the order in which they were created. */ public void setTrafficPolicyIdMarker(String trafficPolicyIdMarker) { this.trafficPolicyIdMarker = trafficPolicyIdMarker; } /** *

* (Conditional) For your first request to ListTrafficPolicies, * do not include the TrafficPolicyIdMarker parameter. *

*

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

*

* Policies are listed in the order in which they were created. *

* * @return (Conditional) For your first request to * ListTrafficPolicies, do not include the * TrafficPolicyIdMarker parameter.

*

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

*

* Policies are listed in the order in which they were created. */ public String getTrafficPolicyIdMarker() { return this.trafficPolicyIdMarker; } /** *

* (Conditional) For your first request to ListTrafficPolicies, * do not include the TrafficPolicyIdMarker parameter. *

*

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

*

* Policies are listed in the order in which they were created. *

* * @param trafficPolicyIdMarker * (Conditional) For your first request to * ListTrafficPolicies, do not include the * TrafficPolicyIdMarker parameter.

*

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

*

* Policies are listed in the order in which they were created. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListTrafficPoliciesRequest withTrafficPolicyIdMarker( String trafficPolicyIdMarker) { setTrafficPolicyIdMarker(trafficPolicyIdMarker); return this; } /** *

* (Optional) The maximum number of traffic policies to be included in the * response body for this request. If you have more than * MaxItems traffic policies, the value of the * IsTruncated element in the response is true, * and the value of the TrafficPolicyIdMarker element is the ID * of the first traffic policy in the next group of MaxItems * traffic policies. *

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

* (Optional) The maximum number of traffic policies to be included in the * response body for this request. If you have more than * MaxItems traffic policies, the value of the * IsTruncated element in the response is true, * and the value of the TrafficPolicyIdMarker element is the ID * of the first traffic policy in the next group of MaxItems * traffic policies. *

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

* (Optional) The maximum number of traffic policies to be included in the * response body for this request. If you have more than * MaxItems traffic policies, the value of the * IsTruncated element in the response is true, * and the value of the TrafficPolicyIdMarker element is the ID * of the first traffic policy in the next group of MaxItems * traffic policies. *

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy