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

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

The newest version!
/*
 * Copyright 2019-2024 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 javax.annotation.Generated;

/**
 * 

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

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ListTrafficPolicyInstancesByPolicyResult extends com.amazonaws.AmazonWebServiceResult 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 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 traffic policy instances by calling * ListTrafficPolicyInstancesByPolicy again and specifying the values of the * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker elements in the corresponding request parameters. *

*/ private Boolean isTruncated; /** *

* The value that you specified for the MaxItems parameter in the call to * ListTrafficPolicyInstancesByPolicy 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 ListTrafficPolicyInstancesByPolicyResult 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 ListTrafficPolicyInstancesByPolicyResult 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 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 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 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 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 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 traffic policy instances. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrafficPolicyInstancesByPolicyResult 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 ListTrafficPolicyInstancesByPolicyResult 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 ListTrafficPolicyInstancesByPolicyResult 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) { withTrafficPolicyInstanceTypeMarker(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 ListTrafficPolicyInstancesByPolicyResult withTrafficPolicyInstanceTypeMarker(RRType trafficPolicyInstanceTypeMarker) { this.trafficPolicyInstanceTypeMarker = trafficPolicyInstanceTypeMarker.toString(); 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 traffic policy instances by calling * ListTrafficPolicyInstancesByPolicy again and specifying the values of the * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker elements in the corresponding request parameters. *

* * @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 traffic policy instances by calling * ListTrafficPolicyInstancesByPolicy again and specifying the values of the * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker elements in the corresponding request parameters. */ 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 traffic policy instances by calling * ListTrafficPolicyInstancesByPolicy again and specifying the values of the * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker elements in the corresponding request parameters. *

* * @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 traffic policy instances by calling * ListTrafficPolicyInstancesByPolicy again and specifying the values of the * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker elements in the corresponding request parameters. */ 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 traffic policy instances by calling * ListTrafficPolicyInstancesByPolicy again and specifying the values of the * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker elements in the corresponding request parameters. *

* * @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 traffic policy instances by calling * ListTrafficPolicyInstancesByPolicy again and specifying the values of the * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker elements in the corresponding request parameters. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrafficPolicyInstancesByPolicyResult 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 traffic policy instances by calling * ListTrafficPolicyInstancesByPolicy again and specifying the values of the * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker elements in the corresponding request parameters. *

* * @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 traffic policy instances by calling * ListTrafficPolicyInstancesByPolicy again and specifying the values of the * HostedZoneIdMarker, TrafficPolicyInstanceNameMarker, and * TrafficPolicyInstanceTypeMarker elements in the corresponding request parameters. */ public Boolean isTruncated() { return this.isTruncated; } /** *

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

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

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

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

* * @param maxItems * The value that you specified for the MaxItems parameter in the call to * ListTrafficPolicyInstancesByPolicy that produced the current response. * @return Returns a reference to this object so that method calls can be chained together. */ public ListTrafficPolicyInstancesByPolicyResult withMaxItems(String maxItems) { setMaxItems(maxItems); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @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: ").append(getTrafficPolicyInstances()).append(","); if (getHostedZoneIdMarker() != null) sb.append("HostedZoneIdMarker: ").append(getHostedZoneIdMarker()).append(","); if (getTrafficPolicyInstanceNameMarker() != null) sb.append("TrafficPolicyInstanceNameMarker: ").append(getTrafficPolicyInstanceNameMarker()).append(","); if (getTrafficPolicyInstanceTypeMarker() != null) sb.append("TrafficPolicyInstanceTypeMarker: ").append(getTrafficPolicyInstanceTypeMarker()).append(","); if (getIsTruncated() != null) sb.append("IsTruncated: ").append(getIsTruncated()).append(","); if (getMaxItems() != null) sb.append("MaxItems: ").append(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 ListTrafficPolicyInstancesByPolicyResult == false) return false; ListTrafficPolicyInstancesByPolicyResult other = (ListTrafficPolicyInstancesByPolicyResult) 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 ListTrafficPolicyInstancesByPolicyResult clone() { try { return (ListTrafficPolicyInstancesByPolicyResult) 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