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

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

/*
 * 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 ListTrafficPoliciesResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* A list that contains one TrafficPolicySummary element for each traffic policy that was created by * the current Amazon Web Services 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 traffic policies by submitting another ListTrafficPolicies request and * specifying the value of TrafficPolicyIdMarker in the TrafficPolicyIdMarker request * parameter. *

*/ 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 ListTrafficPolicies * request 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 Amazon Web Services account. *

* * @return A list that contains one TrafficPolicySummary element for each traffic policy that was * created by the current Amazon Web Services 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 Amazon Web Services account. *

* * @param trafficPolicySummaries * A list that contains one TrafficPolicySummary element for each traffic policy that was * created by the current Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services account. *

* * @param trafficPolicySummaries * A list that contains one TrafficPolicySummary element for each traffic policy that was * created by the current Amazon Web Services 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 traffic policies by submitting another ListTrafficPolicies request and * specifying the value of TrafficPolicyIdMarker in the TrafficPolicyIdMarker request * parameter. *

* * @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 traffic policies by submitting another ListTrafficPolicies * request and specifying the value of TrafficPolicyIdMarker in the * TrafficPolicyIdMarker request parameter. */ 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 traffic policies by submitting another ListTrafficPolicies request and * specifying the value of TrafficPolicyIdMarker in the TrafficPolicyIdMarker request * parameter. *

* * @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 traffic policies by submitting another * ListTrafficPolicies request and specifying the value of TrafficPolicyIdMarker * in the TrafficPolicyIdMarker request parameter. */ 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 traffic policies by submitting another ListTrafficPolicies request and * specifying the value of TrafficPolicyIdMarker in the TrafficPolicyIdMarker request * parameter. *

* * @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 traffic policies by submitting another ListTrafficPolicies * request and specifying the value of TrafficPolicyIdMarker in the * TrafficPolicyIdMarker request parameter. * @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 traffic policies by submitting another ListTrafficPolicies request and * specifying the value of TrafficPolicyIdMarker in the TrafficPolicyIdMarker request * parameter. *

* * @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 traffic policies by submitting another * ListTrafficPolicies request and specifying the value of TrafficPolicyIdMarker * in the TrafficPolicyIdMarker request parameter. */ 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 ListTrafficPolicies * request that produced the current response. *

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

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

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

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

* * @param maxItems * The value that you specified for the MaxItems parameter in the * ListTrafficPolicies request 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. 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 (getTrafficPolicySummaries() != null) sb.append("TrafficPolicySummaries: ").append(getTrafficPolicySummaries()).append(","); if (getIsTruncated() != null) sb.append("IsTruncated: ").append(getIsTruncated()).append(","); if (getTrafficPolicyIdMarker() != null) sb.append("TrafficPolicyIdMarker: ").append(getTrafficPolicyIdMarker()).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 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