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

com.amazonaws.services.route53.model.ListTrafficPoliciesResult 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;

/**
 * 

* A complex type that contains the response information for the request. *

*/ public class ListTrafficPoliciesResult implements Serializable, Cloneable { /** *

* A list that contains one TrafficPolicySummary element for * each traffic policy that was created by the current AWS account. *

*/ private com.amazonaws.internal.SdkInternalList trafficPolicySummaries; /** *

* A flag that indicates whether there are more traffic policies to be * listed. If the response was truncated, you can get the next group of * MaxItems traffic policies by calling * ListTrafficPolicies again and specifying the value of the * TrafficPolicyIdMarker element in the * TrafficPolicyIdMarker request parameter. *

*

* Valid Values: true | false *

*/ private Boolean isTruncated; /** *

* If the value of IsTruncated is true, * TrafficPolicyIdMarker is the ID of the first traffic policy * in the next group of MaxItems traffic policies. *

*/ private String trafficPolicyIdMarker; /** *

* The value that you specified for the MaxItems parameter in * the call to ListTrafficPolicies that produced the current * response. *

*/ private String maxItems; /** *

* A list that contains one TrafficPolicySummary element for * each traffic policy that was created by the current AWS account. *

* * @return A list that contains one TrafficPolicySummary * element for each traffic policy that was created by the current * AWS account. */ public java.util.List getTrafficPolicySummaries() { if (trafficPolicySummaries == null) { trafficPolicySummaries = new com.amazonaws.internal.SdkInternalList(); } return trafficPolicySummaries; } /** *

* A list that contains one TrafficPolicySummary element for * each traffic policy that was created by the current AWS account. *

* * @param trafficPolicySummaries * A list that contains one TrafficPolicySummary element * for each traffic policy that was created by the current AWS * account. */ public void setTrafficPolicySummaries( java.util.Collection trafficPolicySummaries) { if (trafficPolicySummaries == null) { this.trafficPolicySummaries = null; return; } this.trafficPolicySummaries = new com.amazonaws.internal.SdkInternalList( trafficPolicySummaries); } /** *

* A list that contains one TrafficPolicySummary element for * each traffic policy that was created by the current AWS account. *

*

* NOTE: This method appends the values to the existing list (if * any). Use {@link #setTrafficPolicySummaries(java.util.Collection)} or * {@link #withTrafficPolicySummaries(java.util.Collection)} if you want to * override the existing values. *

* * @param trafficPolicySummaries * A list that contains one TrafficPolicySummary element * for each traffic policy that was created by the current AWS * account. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListTrafficPoliciesResult withTrafficPolicySummaries( TrafficPolicySummary... trafficPolicySummaries) { if (this.trafficPolicySummaries == null) { setTrafficPolicySummaries(new com.amazonaws.internal.SdkInternalList( trafficPolicySummaries.length)); } for (TrafficPolicySummary ele : trafficPolicySummaries) { this.trafficPolicySummaries.add(ele); } return this; } /** *

* A list that contains one TrafficPolicySummary element for * each traffic policy that was created by the current AWS account. *

* * @param trafficPolicySummaries * A list that contains one TrafficPolicySummary element * for each traffic policy that was created by the current AWS * account. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListTrafficPoliciesResult withTrafficPolicySummaries( java.util.Collection trafficPolicySummaries) { setTrafficPolicySummaries(trafficPolicySummaries); return this; } /** *

* A flag that indicates whether there are more traffic policies to be * listed. If the response was truncated, you can get the next group of * MaxItems traffic policies by calling * ListTrafficPolicies again and specifying the value of the * TrafficPolicyIdMarker element in the * TrafficPolicyIdMarker request parameter. *

*

* Valid Values: true | false *

* * @param isTruncated * A flag that indicates whether there are more traffic policies to * be listed. If the response was truncated, you can get the next * group of MaxItems traffic policies by calling * ListTrafficPolicies again and specifying the value of * the TrafficPolicyIdMarker element in the * TrafficPolicyIdMarker request parameter.

*

* Valid Values: true | false */ public void setIsTruncated(Boolean isTruncated) { this.isTruncated = isTruncated; } /** *

* A flag that indicates whether there are more traffic policies to be * listed. If the response was truncated, you can get the next group of * MaxItems traffic policies by calling * ListTrafficPolicies again and specifying the value of the * TrafficPolicyIdMarker element in the * TrafficPolicyIdMarker request parameter. *

*

* Valid Values: true | false *

* * @return A flag that indicates whether there are more traffic policies to * be listed. If the response was truncated, you can get the next * group of MaxItems traffic policies by calling * ListTrafficPolicies again and specifying the value * of the TrafficPolicyIdMarker element in the * TrafficPolicyIdMarker request parameter.

*

* Valid Values: true | false */ public Boolean getIsTruncated() { return this.isTruncated; } /** *

* A flag that indicates whether there are more traffic policies to be * listed. If the response was truncated, you can get the next group of * MaxItems traffic policies by calling * ListTrafficPolicies again and specifying the value of the * TrafficPolicyIdMarker element in the * TrafficPolicyIdMarker request parameter. *

*

* Valid Values: true | false *

* * @param isTruncated * A flag that indicates whether there are more traffic policies to * be listed. If the response was truncated, you can get the next * group of MaxItems traffic policies by calling * ListTrafficPolicies again and specifying the value of * the TrafficPolicyIdMarker element in the * TrafficPolicyIdMarker request parameter.

*

* Valid Values: true | false * @return Returns a reference to this object so that method calls can be * chained together. */ public ListTrafficPoliciesResult withIsTruncated(Boolean isTruncated) { setIsTruncated(isTruncated); return this; } /** *

* A flag that indicates whether there are more traffic policies to be * listed. If the response was truncated, you can get the next group of * MaxItems traffic policies by calling * ListTrafficPolicies again and specifying the value of the * TrafficPolicyIdMarker element in the * TrafficPolicyIdMarker request parameter. *

*

* Valid Values: true | false *

* * @return A flag that indicates whether there are more traffic policies to * be listed. If the response was truncated, you can get the next * group of MaxItems traffic policies by calling * ListTrafficPolicies again and specifying the value * of the TrafficPolicyIdMarker element in the * TrafficPolicyIdMarker request parameter.

*

* Valid Values: true | false */ public Boolean isTruncated() { return this.isTruncated; } /** *

* If the value of IsTruncated is true, * TrafficPolicyIdMarker is the ID of the first traffic policy * in the next group of MaxItems traffic policies. *

* * @param trafficPolicyIdMarker * If the value of IsTruncated is true, * TrafficPolicyIdMarker is the ID of the first traffic * policy in the next group of MaxItems traffic * policies. */ public void setTrafficPolicyIdMarker(String trafficPolicyIdMarker) { this.trafficPolicyIdMarker = trafficPolicyIdMarker; } /** *

* If the value of IsTruncated is true, * TrafficPolicyIdMarker is the ID of the first traffic policy * in the next group of MaxItems traffic policies. *

* * @return If the value of IsTruncated is true, * TrafficPolicyIdMarker is the ID of the first traffic * policy in the next group of MaxItems traffic * policies. */ public String getTrafficPolicyIdMarker() { return this.trafficPolicyIdMarker; } /** *

* If the value of IsTruncated is true, * TrafficPolicyIdMarker is the ID of the first traffic policy * in the next group of MaxItems traffic policies. *

* * @param trafficPolicyIdMarker * If the value of IsTruncated is true, * TrafficPolicyIdMarker 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 ListTrafficPoliciesResult withTrafficPolicyIdMarker( String trafficPolicyIdMarker) { setTrafficPolicyIdMarker(trafficPolicyIdMarker); return this; } /** *

* The value that you specified for the MaxItems parameter in * the call to ListTrafficPolicies that produced the current * response. *

* * @param maxItems * The value that you specified for the MaxItems * parameter in the call to ListTrafficPolicies that * produced the current response. */ public void setMaxItems(String maxItems) { this.maxItems = maxItems; } /** *

* The value that you specified for the MaxItems parameter in * the call to ListTrafficPolicies that produced the current * response. *

* * @return The value that you specified for the MaxItems * parameter in the call to ListTrafficPolicies that * produced the current response. */ public String getMaxItems() { return this.maxItems; } /** *

* The value that you specified for the MaxItems parameter in * the call to ListTrafficPolicies that produced the current * response. *

* * @param maxItems * The value that you specified for the MaxItems * parameter in the call to ListTrafficPolicies that * produced the current response. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListTrafficPoliciesResult 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 (getTrafficPolicySummaries() != null) sb.append("TrafficPolicySummaries: " + getTrafficPolicySummaries() + ","); if (getIsTruncated() != null) sb.append("IsTruncated: " + getIsTruncated() + ","); 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 ListTrafficPoliciesResult == false) return false; ListTrafficPoliciesResult other = (ListTrafficPoliciesResult) obj; if (other.getTrafficPolicySummaries() == null ^ this.getTrafficPolicySummaries() == null) return false; if (other.getTrafficPolicySummaries() != null && other.getTrafficPolicySummaries().equals( this.getTrafficPolicySummaries()) == false) return false; if (other.getIsTruncated() == null ^ this.getIsTruncated() == null) return false; if (other.getIsTruncated() != null && other.getIsTruncated().equals(this.getIsTruncated()) == false) return false; 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 + ((getTrafficPolicySummaries() == null) ? 0 : getTrafficPolicySummaries().hashCode()); hashCode = prime * hashCode + ((getIsTruncated() == null) ? 0 : getIsTruncated().hashCode()); hashCode = prime * hashCode + ((getTrafficPolicyIdMarker() == null) ? 0 : getTrafficPolicyIdMarker().hashCode()); hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode()); return hashCode; } @Override public ListTrafficPoliciesResult clone() { try { return (ListTrafficPoliciesResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException( "Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy