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

com.amazonaws.services.route53.model.ListTrafficPolicyInstancesResult 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 ListTrafficPolicyInstancesResult implements Serializable, Cloneable { /** *

* A list that contains one TrafficPolicyInstance element for * each traffic policy instance that matches the elements in the request. *

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

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

*/ private String hostedZoneIdMarker; /** *

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

*/ private String trafficPolicyInstanceNameMarker; /** *

* If IsTruncated is true, * TrafficPolicyInstanceTypeMarker is the DNS type of the * resource record sets that are associated with the first traffic policy * instance in the next group of MaxItems traffic policy * instances. *

*/ private String trafficPolicyInstanceTypeMarker; /** *

* A flag that indicates whether there are more traffic policy instances to * be listed. If the response was truncated, you can get the next group of * MaxItems traffic policy instances by calling * ListTrafficPolicyInstances again and specifying the values * of the HostedZoneIdMarker, * TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker elements in the * corresponding request parameters. *

*

* Valid Values: true | false *

*/ private Boolean isTruncated; /** *

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

*/ private String maxItems; /** *

* A list that contains one TrafficPolicyInstance element for * each traffic policy instance that matches the elements in the request. *

* * @return A list that contains one TrafficPolicyInstance * element for each traffic policy instance that matches the * elements in the request. */ public java.util.List getTrafficPolicyInstances() { if (trafficPolicyInstances == null) { trafficPolicyInstances = new com.amazonaws.internal.SdkInternalList(); } return trafficPolicyInstances; } /** *

* A list that contains one TrafficPolicyInstance element for * each traffic policy instance that matches the elements in the request. *

* * @param trafficPolicyInstances * A list that contains one TrafficPolicyInstance * element for each traffic policy instance that matches the elements * in the request. */ public void setTrafficPolicyInstances( java.util.Collection trafficPolicyInstances) { if (trafficPolicyInstances == null) { this.trafficPolicyInstances = null; return; } this.trafficPolicyInstances = new com.amazonaws.internal.SdkInternalList( trafficPolicyInstances); } /** *

* A list that contains one TrafficPolicyInstance element for * each traffic policy instance that matches the elements in the request. *

*

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

* * @param trafficPolicyInstances * A list that contains one TrafficPolicyInstance * element for each traffic policy instance that matches the elements * in the request. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListTrafficPolicyInstancesResult withTrafficPolicyInstances( TrafficPolicyInstance... trafficPolicyInstances) { if (this.trafficPolicyInstances == null) { setTrafficPolicyInstances(new com.amazonaws.internal.SdkInternalList( trafficPolicyInstances.length)); } for (TrafficPolicyInstance ele : trafficPolicyInstances) { this.trafficPolicyInstances.add(ele); } return this; } /** *

* A list that contains one TrafficPolicyInstance element for * each traffic policy instance that matches the elements in the request. *

* * @param trafficPolicyInstances * A list that contains one TrafficPolicyInstance * element for each traffic policy instance that matches the elements * in the request. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListTrafficPolicyInstancesResult withTrafficPolicyInstances( java.util.Collection trafficPolicyInstances) { setTrafficPolicyInstances(trafficPolicyInstances); return this; } /** *

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

* * @param hostedZoneIdMarker * If IsTruncated is true, * HostedZoneIdMarker is the ID of the hosted zone of * the first traffic policy instance in the next group of * MaxItems traffic policy instances. */ public void setHostedZoneIdMarker(String hostedZoneIdMarker) { this.hostedZoneIdMarker = hostedZoneIdMarker; } /** *

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

* * @return If IsTruncated is true, * HostedZoneIdMarker is the ID of the hosted zone of * the first traffic policy instance in the next group of * MaxItems traffic policy instances. */ public String getHostedZoneIdMarker() { return this.hostedZoneIdMarker; } /** *

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

* * @param hostedZoneIdMarker * If IsTruncated is true, * HostedZoneIdMarker is the ID of the hosted zone of * 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 ListTrafficPolicyInstancesResult withHostedZoneIdMarker( String hostedZoneIdMarker) { setHostedZoneIdMarker(hostedZoneIdMarker); return this; } /** *

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

* * @param trafficPolicyInstanceNameMarker * If IsTruncated is true, * TrafficPolicyInstanceNameMarker is the name of the * first traffic policy instance in the next group of * MaxItems traffic policy instances. */ public void setTrafficPolicyInstanceNameMarker( String trafficPolicyInstanceNameMarker) { this.trafficPolicyInstanceNameMarker = trafficPolicyInstanceNameMarker; } /** *

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

* * @return If IsTruncated is true, * TrafficPolicyInstanceNameMarker is the name of the * first traffic policy instance in the next group of * MaxItems traffic policy instances. */ public String getTrafficPolicyInstanceNameMarker() { return this.trafficPolicyInstanceNameMarker; } /** *

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

* * @param trafficPolicyInstanceNameMarker * If IsTruncated is true, * TrafficPolicyInstanceNameMarker is the name of 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 ListTrafficPolicyInstancesResult withTrafficPolicyInstanceNameMarker( String trafficPolicyInstanceNameMarker) { setTrafficPolicyInstanceNameMarker(trafficPolicyInstanceNameMarker); return this; } /** *

* If IsTruncated is true, * TrafficPolicyInstanceTypeMarker is the DNS type of the * resource record sets that are associated with the first traffic policy * instance in the next group of MaxItems traffic policy * instances. *

* * @param trafficPolicyInstanceTypeMarker * If IsTruncated is true, * TrafficPolicyInstanceTypeMarker is the DNS type of * the resource record sets that are associated with the first * traffic policy instance in the next group of MaxItems * traffic policy instances. * @see RRType */ public void setTrafficPolicyInstanceTypeMarker( String trafficPolicyInstanceTypeMarker) { this.trafficPolicyInstanceTypeMarker = trafficPolicyInstanceTypeMarker; } /** *

* If IsTruncated is true, * TrafficPolicyInstanceTypeMarker is the DNS type of the * resource record sets that are associated with the first traffic policy * instance in the next group of MaxItems traffic policy * instances. *

* * @return If IsTruncated is true, * TrafficPolicyInstanceTypeMarker is the DNS type of * the resource record sets that are associated with the first * traffic policy instance in the next group of * MaxItems traffic policy instances. * @see RRType */ public String getTrafficPolicyInstanceTypeMarker() { return this.trafficPolicyInstanceTypeMarker; } /** *

* If IsTruncated is true, * TrafficPolicyInstanceTypeMarker is the DNS type of the * resource record sets that are associated with the first traffic policy * instance in the next group of MaxItems traffic policy * instances. *

* * @param trafficPolicyInstanceTypeMarker * If IsTruncated is true, * TrafficPolicyInstanceTypeMarker is the DNS type of * the resource record sets that are associated with 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. * @see RRType */ public ListTrafficPolicyInstancesResult withTrafficPolicyInstanceTypeMarker( String trafficPolicyInstanceTypeMarker) { setTrafficPolicyInstanceTypeMarker(trafficPolicyInstanceTypeMarker); return this; } /** *

* If IsTruncated is true, * TrafficPolicyInstanceTypeMarker is the DNS type of the * resource record sets that are associated with the first traffic policy * instance in the next group of MaxItems traffic policy * instances. *

* * @param trafficPolicyInstanceTypeMarker * If IsTruncated is true, * TrafficPolicyInstanceTypeMarker is the DNS type of * the resource record sets that are associated with the first * traffic policy instance in the next group of MaxItems * traffic policy instances. * @see RRType */ public void setTrafficPolicyInstanceTypeMarker( RRType trafficPolicyInstanceTypeMarker) { this.trafficPolicyInstanceTypeMarker = trafficPolicyInstanceTypeMarker .toString(); } /** *

* If IsTruncated is true, * TrafficPolicyInstanceTypeMarker is the DNS type of the * resource record sets that are associated with the first traffic policy * instance in the next group of MaxItems traffic policy * instances. *

* * @param trafficPolicyInstanceTypeMarker * If IsTruncated is true, * TrafficPolicyInstanceTypeMarker is the DNS type of * the resource record sets that are associated with 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. * @see RRType */ public ListTrafficPolicyInstancesResult withTrafficPolicyInstanceTypeMarker( RRType trafficPolicyInstanceTypeMarker) { setTrafficPolicyInstanceTypeMarker(trafficPolicyInstanceTypeMarker); return this; } /** *

* A flag that indicates whether there are more traffic policy instances to * be listed. If the response was truncated, you can get the next group of * MaxItems traffic policy instances by calling * ListTrafficPolicyInstances again and specifying the values * of the HostedZoneIdMarker, * TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker elements in the * corresponding request parameters. *

*

* Valid Values: true | false *

* * @param isTruncated * A flag that indicates whether there are more traffic policy * instances to be listed. If the response was truncated, you can get * the next group of MaxItems traffic policy instances * by calling ListTrafficPolicyInstances again and * specifying the values of the HostedZoneIdMarker, * TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker elements in the * corresponding request parameters.

*

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

* A flag that indicates whether there are more traffic policy instances to * be listed. If the response was truncated, you can get the next group of * MaxItems traffic policy instances by calling * ListTrafficPolicyInstances again and specifying the values * of the HostedZoneIdMarker, * TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker elements in the * corresponding request parameters. *

*

* Valid Values: true | false *

* * @return A flag that indicates whether there are more traffic policy * instances to be listed. If the response was truncated, you can * get the next group of MaxItems traffic policy * instances by calling ListTrafficPolicyInstances * again and specifying the values of the * HostedZoneIdMarker, * TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker elements in the * corresponding request parameters.

*

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

* A flag that indicates whether there are more traffic policy instances to * be listed. If the response was truncated, you can get the next group of * MaxItems traffic policy instances by calling * ListTrafficPolicyInstances again and specifying the values * of the HostedZoneIdMarker, * TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker elements in the * corresponding request parameters. *

*

* Valid Values: true | false *

* * @param isTruncated * A flag that indicates whether there are more traffic policy * instances to be listed. If the response was truncated, you can get * the next group of MaxItems traffic policy instances * by calling ListTrafficPolicyInstances again and * specifying the values of the HostedZoneIdMarker, * TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker elements in the * corresponding request parameters.

*

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

* A flag that indicates whether there are more traffic policy instances to * be listed. If the response was truncated, you can get the next group of * MaxItems traffic policy instances by calling * ListTrafficPolicyInstances again and specifying the values * of the HostedZoneIdMarker, * TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker elements in the * corresponding request parameters. *

*

* Valid Values: true | false *

* * @return A flag that indicates whether there are more traffic policy * instances to be listed. If the response was truncated, you can * get the next group of MaxItems traffic policy * instances by calling ListTrafficPolicyInstances * again and specifying the values of the * HostedZoneIdMarker, * TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker elements in the * corresponding request parameters.

*

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

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

* * @param maxItems * The value that you specified for the MaxItems * parameter in the call to ListTrafficPolicyInstances * 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 ListTrafficPolicyInstances that produced the * current response. *

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

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

* * @param maxItems * The value that you specified for the MaxItems * parameter in the call to ListTrafficPolicyInstances * that produced the current response. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListTrafficPolicyInstancesResult 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 (getTrafficPolicyInstances() != null) sb.append("TrafficPolicyInstances: " + getTrafficPolicyInstances() + ","); if (getHostedZoneIdMarker() != null) sb.append("HostedZoneIdMarker: " + getHostedZoneIdMarker() + ","); if (getTrafficPolicyInstanceNameMarker() != null) sb.append("TrafficPolicyInstanceNameMarker: " + getTrafficPolicyInstanceNameMarker() + ","); if (getTrafficPolicyInstanceTypeMarker() != null) sb.append("TrafficPolicyInstanceTypeMarker: " + getTrafficPolicyInstanceTypeMarker() + ","); if (getIsTruncated() != null) sb.append("IsTruncated: " + getIsTruncated() + ","); 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 ListTrafficPolicyInstancesResult == false) return false; ListTrafficPolicyInstancesResult other = (ListTrafficPolicyInstancesResult) obj; if (other.getTrafficPolicyInstances() == null ^ this.getTrafficPolicyInstances() == null) return false; if (other.getTrafficPolicyInstances() != null && other.getTrafficPolicyInstances().equals( this.getTrafficPolicyInstances()) == 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.getIsTruncated() == null ^ this.getIsTruncated() == null) return false; if (other.getIsTruncated() != null && other.getIsTruncated().equals(this.getIsTruncated()) == 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 + ((getTrafficPolicyInstances() == null) ? 0 : getTrafficPolicyInstances().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 + ((getIsTruncated() == null) ? 0 : getIsTruncated().hashCode()); hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode()); return hashCode; } @Override public ListTrafficPolicyInstancesResult clone() { try { return (ListTrafficPolicyInstancesResult) 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