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

com.amazonaws.services.route53.model.ListHostedZonesByNameResult 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 2010-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 for the request. *

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

* A complex type that contains information about the hosted zones * associated with the current AWS account. *

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

* The DNSName value sent in the request. *

*/ private String dNSName; /** *

* The HostedZoneId value sent in the request. *

*/ private String hostedZoneId; /** *

* A flag indicating whether there are more hosted zones to be listed. If * your results were truncated, you can make a follow-up request for the * next page of results by using the NextDNSName and * NextHostedZoneId elements. *

*

* Valid Values: true | false *

*/ private Boolean isTruncated; /** *

* If the value of IsTruncated in the * ListHostedZonesByNameResponse is true, there * are more hosted zones associated with the current AWS account. To get the * next page of results, make another request to * ListHostedZonesByName. Specify the value of * NextDNSName in the DNSName parameter. Specify * NextHostedZoneId in the HostedZoneId parameter. *

*/ private String nextDNSName; /** *

* If the value of IsTruncated in the * ListHostedZonesByNameResponse is true, there * are more hosted zones associated with the current AWS account. To get the * next page of results, make another request to * ListHostedZonesByName. Specify the value of * NextDNSName in the DNSName parameter. Specify * NextHostedZoneId in the HostedZoneId parameter. *

*/ private String nextHostedZoneId; /** *

* The maximum number of hosted zones to be included in the response body. * If the number of hosted zones associated with this AWS account exceeds * MaxItems, the value of IsTruncated in the * ListHostedZonesByNameResponse is true. Call * ListHostedZonesByName again and specify the value of * NextDNSName and NextHostedZoneId elements from * the previous response to get the next page of results. *

*/ private String maxItems; /** *

* A complex type that contains information about the hosted zones * associated with the current AWS account. *

* * @return A complex type that contains information about the hosted zones * associated with the current AWS account. */ public java.util.List getHostedZones() { if (hostedZones == null) { hostedZones = new com.amazonaws.internal.SdkInternalList(); } return hostedZones; } /** *

* A complex type that contains information about the hosted zones * associated with the current AWS account. *

* * @param hostedZones * A complex type that contains information about the hosted zones * associated with the current AWS account. */ public void setHostedZones(java.util.Collection hostedZones) { if (hostedZones == null) { this.hostedZones = null; return; } this.hostedZones = new com.amazonaws.internal.SdkInternalList( hostedZones); } /** *

* A complex type that contains information about the hosted zones * associated with the current AWS account. *

*

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

* * @param hostedZones * A complex type that contains information about the hosted zones * associated with the current AWS account. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListHostedZonesByNameResult withHostedZones( HostedZone... hostedZones) { if (this.hostedZones == null) { setHostedZones(new com.amazonaws.internal.SdkInternalList( hostedZones.length)); } for (HostedZone ele : hostedZones) { this.hostedZones.add(ele); } return this; } /** *

* A complex type that contains information about the hosted zones * associated with the current AWS account. *

* * @param hostedZones * A complex type that contains information about the hosted zones * associated with the current AWS account. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListHostedZonesByNameResult withHostedZones( java.util.Collection hostedZones) { setHostedZones(hostedZones); return this; } /** *

* The DNSName value sent in the request. *

* * @param dNSName * The DNSName value sent in the request. */ public void setDNSName(String dNSName) { this.dNSName = dNSName; } /** *

* The DNSName value sent in the request. *

* * @return The DNSName value sent in the request. */ public String getDNSName() { return this.dNSName; } /** *

* The DNSName value sent in the request. *

* * @param dNSName * The DNSName value sent in the request. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListHostedZonesByNameResult withDNSName(String dNSName) { setDNSName(dNSName); return this; } /** *

* The HostedZoneId value sent in the request. *

* * @param hostedZoneId * The HostedZoneId value sent in the request. */ public void setHostedZoneId(String hostedZoneId) { this.hostedZoneId = hostedZoneId; } /** *

* The HostedZoneId value sent in the request. *

* * @return The HostedZoneId value sent in the request. */ public String getHostedZoneId() { return this.hostedZoneId; } /** *

* The HostedZoneId value sent in the request. *

* * @param hostedZoneId * The HostedZoneId value sent in the request. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListHostedZonesByNameResult withHostedZoneId(String hostedZoneId) { setHostedZoneId(hostedZoneId); return this; } /** *

* A flag indicating whether there are more hosted zones to be listed. If * your results were truncated, you can make a follow-up request for the * next page of results by using the NextDNSName and * NextHostedZoneId elements. *

*

* Valid Values: true | false *

* * @param isTruncated * A flag indicating whether there are more hosted zones to be * listed. If your results were truncated, you can make a follow-up * request for the next page of results by using the * NextDNSName and NextHostedZoneId * elements.

*

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

* A flag indicating whether there are more hosted zones to be listed. If * your results were truncated, you can make a follow-up request for the * next page of results by using the NextDNSName and * NextHostedZoneId elements. *

*

* Valid Values: true | false *

* * @return A flag indicating whether there are more hosted zones to be * listed. If your results were truncated, you can make a follow-up * request for the next page of results by using the * NextDNSName and NextHostedZoneId * elements.

*

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

* A flag indicating whether there are more hosted zones to be listed. If * your results were truncated, you can make a follow-up request for the * next page of results by using the NextDNSName and * NextHostedZoneId elements. *

*

* Valid Values: true | false *

* * @param isTruncated * A flag indicating whether there are more hosted zones to be * listed. If your results were truncated, you can make a follow-up * request for the next page of results by using the * NextDNSName and NextHostedZoneId * elements.

*

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

* A flag indicating whether there are more hosted zones to be listed. If * your results were truncated, you can make a follow-up request for the * next page of results by using the NextDNSName and * NextHostedZoneId elements. *

*

* Valid Values: true | false *

* * @return A flag indicating whether there are more hosted zones to be * listed. If your results were truncated, you can make a follow-up * request for the next page of results by using the * NextDNSName and NextHostedZoneId * elements.

*

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

* If the value of IsTruncated in the * ListHostedZonesByNameResponse is true, there * are more hosted zones associated with the current AWS account. To get the * next page of results, make another request to * ListHostedZonesByName. Specify the value of * NextDNSName in the DNSName parameter. Specify * NextHostedZoneId in the HostedZoneId parameter. *

* * @param nextDNSName * If the value of IsTruncated in the * ListHostedZonesByNameResponse is true, * there are more hosted zones associated with the current AWS * account. To get the next page of results, make another request to * ListHostedZonesByName. Specify the value of * NextDNSName in the DNSName parameter. * Specify NextHostedZoneId in the * HostedZoneId parameter. */ public void setNextDNSName(String nextDNSName) { this.nextDNSName = nextDNSName; } /** *

* If the value of IsTruncated in the * ListHostedZonesByNameResponse is true, there * are more hosted zones associated with the current AWS account. To get the * next page of results, make another request to * ListHostedZonesByName. Specify the value of * NextDNSName in the DNSName parameter. Specify * NextHostedZoneId in the HostedZoneId parameter. *

* * @return If the value of IsTruncated in the * ListHostedZonesByNameResponse is true, * there are more hosted zones associated with the current AWS * account. To get the next page of results, make another request to * ListHostedZonesByName. Specify the value of * NextDNSName in the DNSName parameter. * Specify NextHostedZoneId in the * HostedZoneId parameter. */ public String getNextDNSName() { return this.nextDNSName; } /** *

* If the value of IsTruncated in the * ListHostedZonesByNameResponse is true, there * are more hosted zones associated with the current AWS account. To get the * next page of results, make another request to * ListHostedZonesByName. Specify the value of * NextDNSName in the DNSName parameter. Specify * NextHostedZoneId in the HostedZoneId parameter. *

* * @param nextDNSName * If the value of IsTruncated in the * ListHostedZonesByNameResponse is true, * there are more hosted zones associated with the current AWS * account. To get the next page of results, make another request to * ListHostedZonesByName. Specify the value of * NextDNSName in the DNSName parameter. * Specify NextHostedZoneId in the * HostedZoneId parameter. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListHostedZonesByNameResult withNextDNSName(String nextDNSName) { setNextDNSName(nextDNSName); return this; } /** *

* If the value of IsTruncated in the * ListHostedZonesByNameResponse is true, there * are more hosted zones associated with the current AWS account. To get the * next page of results, make another request to * ListHostedZonesByName. Specify the value of * NextDNSName in the DNSName parameter. Specify * NextHostedZoneId in the HostedZoneId parameter. *

* * @param nextHostedZoneId * If the value of IsTruncated in the * ListHostedZonesByNameResponse is true, * there are more hosted zones associated with the current AWS * account. To get the next page of results, make another request to * ListHostedZonesByName. Specify the value of * NextDNSName in the DNSName parameter. * Specify NextHostedZoneId in the * HostedZoneId parameter. */ public void setNextHostedZoneId(String nextHostedZoneId) { this.nextHostedZoneId = nextHostedZoneId; } /** *

* If the value of IsTruncated in the * ListHostedZonesByNameResponse is true, there * are more hosted zones associated with the current AWS account. To get the * next page of results, make another request to * ListHostedZonesByName. Specify the value of * NextDNSName in the DNSName parameter. Specify * NextHostedZoneId in the HostedZoneId parameter. *

* * @return If the value of IsTruncated in the * ListHostedZonesByNameResponse is true, * there are more hosted zones associated with the current AWS * account. To get the next page of results, make another request to * ListHostedZonesByName. Specify the value of * NextDNSName in the DNSName parameter. * Specify NextHostedZoneId in the * HostedZoneId parameter. */ public String getNextHostedZoneId() { return this.nextHostedZoneId; } /** *

* If the value of IsTruncated in the * ListHostedZonesByNameResponse is true, there * are more hosted zones associated with the current AWS account. To get the * next page of results, make another request to * ListHostedZonesByName. Specify the value of * NextDNSName in the DNSName parameter. Specify * NextHostedZoneId in the HostedZoneId parameter. *

* * @param nextHostedZoneId * If the value of IsTruncated in the * ListHostedZonesByNameResponse is true, * there are more hosted zones associated with the current AWS * account. To get the next page of results, make another request to * ListHostedZonesByName. Specify the value of * NextDNSName in the DNSName parameter. * Specify NextHostedZoneId in the * HostedZoneId parameter. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListHostedZonesByNameResult withNextHostedZoneId( String nextHostedZoneId) { setNextHostedZoneId(nextHostedZoneId); return this; } /** *

* The maximum number of hosted zones to be included in the response body. * If the number of hosted zones associated with this AWS account exceeds * MaxItems, the value of IsTruncated in the * ListHostedZonesByNameResponse is true. Call * ListHostedZonesByName again and specify the value of * NextDNSName and NextHostedZoneId elements from * the previous response to get the next page of results. *

* * @param maxItems * The maximum number of hosted zones to be included in the response * body. If the number of hosted zones associated with this AWS * account exceeds MaxItems, the value of * IsTruncated in the * ListHostedZonesByNameResponse is true. * Call ListHostedZonesByName again and specify the * value of NextDNSName and * NextHostedZoneId elements from the previous response * to get the next page of results. */ public void setMaxItems(String maxItems) { this.maxItems = maxItems; } /** *

* The maximum number of hosted zones to be included in the response body. * If the number of hosted zones associated with this AWS account exceeds * MaxItems, the value of IsTruncated in the * ListHostedZonesByNameResponse is true. Call * ListHostedZonesByName again and specify the value of * NextDNSName and NextHostedZoneId elements from * the previous response to get the next page of results. *

* * @return The maximum number of hosted zones to be included in the response * body. If the number of hosted zones associated with this AWS * account exceeds MaxItems, the value of * IsTruncated in the * ListHostedZonesByNameResponse is true. * Call ListHostedZonesByName again and specify the * value of NextDNSName and * NextHostedZoneId elements from the previous response * to get the next page of results. */ public String getMaxItems() { return this.maxItems; } /** *

* The maximum number of hosted zones to be included in the response body. * If the number of hosted zones associated with this AWS account exceeds * MaxItems, the value of IsTruncated in the * ListHostedZonesByNameResponse is true. Call * ListHostedZonesByName again and specify the value of * NextDNSName and NextHostedZoneId elements from * the previous response to get the next page of results. *

* * @param maxItems * The maximum number of hosted zones to be included in the response * body. If the number of hosted zones associated with this AWS * account exceeds MaxItems, the value of * IsTruncated in the * ListHostedZonesByNameResponse is true. * Call ListHostedZonesByName again and specify the * value of NextDNSName and * NextHostedZoneId elements from the previous response * to get the next page of results. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListHostedZonesByNameResult 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 (getHostedZones() != null) sb.append("HostedZones: " + getHostedZones() + ","); if (getDNSName() != null) sb.append("DNSName: " + getDNSName() + ","); if (getHostedZoneId() != null) sb.append("HostedZoneId: " + getHostedZoneId() + ","); if (getIsTruncated() != null) sb.append("IsTruncated: " + getIsTruncated() + ","); if (getNextDNSName() != null) sb.append("NextDNSName: " + getNextDNSName() + ","); if (getNextHostedZoneId() != null) sb.append("NextHostedZoneId: " + getNextHostedZoneId() + ","); 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 ListHostedZonesByNameResult == false) return false; ListHostedZonesByNameResult other = (ListHostedZonesByNameResult) obj; if (other.getHostedZones() == null ^ this.getHostedZones() == null) return false; if (other.getHostedZones() != null && other.getHostedZones().equals(this.getHostedZones()) == false) return false; if (other.getDNSName() == null ^ this.getDNSName() == null) return false; if (other.getDNSName() != null && other.getDNSName().equals(this.getDNSName()) == false) return false; if (other.getHostedZoneId() == null ^ this.getHostedZoneId() == null) return false; if (other.getHostedZoneId() != null && other.getHostedZoneId().equals(this.getHostedZoneId()) == 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.getNextDNSName() == null ^ this.getNextDNSName() == null) return false; if (other.getNextDNSName() != null && other.getNextDNSName().equals(this.getNextDNSName()) == false) return false; if (other.getNextHostedZoneId() == null ^ this.getNextHostedZoneId() == null) return false; if (other.getNextHostedZoneId() != null && other.getNextHostedZoneId().equals( this.getNextHostedZoneId()) == 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 + ((getHostedZones() == null) ? 0 : getHostedZones().hashCode()); hashCode = prime * hashCode + ((getDNSName() == null) ? 0 : getDNSName().hashCode()); hashCode = prime * hashCode + ((getHostedZoneId() == null) ? 0 : getHostedZoneId() .hashCode()); hashCode = prime * hashCode + ((getIsTruncated() == null) ? 0 : getIsTruncated().hashCode()); hashCode = prime * hashCode + ((getNextDNSName() == null) ? 0 : getNextDNSName().hashCode()); hashCode = prime * hashCode + ((getNextHostedZoneId() == null) ? 0 : getNextHostedZoneId() .hashCode()); hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode()); return hashCode; } @Override public ListHostedZonesByNameResult clone() { try { return (ListHostedZonesByNameResult) 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