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

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

* A complex type that contains general information about the hosted zone. *

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

* For the second and subsequent calls to ListHostedZonesByName, DNSName is the value that * you specified for the dnsname parameter in the request that produced the current response. *

*/ private String dNSName; /** *

* The ID that Amazon Route 53 assigned to the hosted zone when you created it. *

*/ private String hostedZoneId; /** *

* A flag that indicates whether there are more hosted zones to be listed. If the response was truncated, you can * get the next group of maxitems hosted zones by calling ListHostedZonesByName again and * specifying the values of NextDNSName and NextHostedZoneId elements in the * dnsname and hostedzoneid parameters. *

*/ private Boolean isTruncated; /** *

* If IsTruncated is true, the value of NextDNSName is the name of the first hosted zone * in the next group of maxitems hosted zones. Call ListHostedZonesByName again and * specify the value of NextDNSName and NextHostedZoneId in the dnsname and * hostedzoneid parameters, respectively. *

*

* This element is present only if IsTruncated is true. *

*/ private String nextDNSName; /** *

* If IsTruncated is true, the value of NextHostedZoneId identifies the first * hosted zone in the next group of maxitems hosted zones. Call ListHostedZonesByName * again and specify the value of NextDNSName and NextHostedZoneId in the * dnsname and hostedzoneid parameters, respectively. *

*

* This element is present only if IsTruncated is true. *

*/ private String nextHostedZoneId; /** *

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

*/ private String maxItems; /** *

* A complex type that contains general information about the hosted zone. *

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

* A complex type that contains general information about the hosted zone. *

* * @param hostedZones * A complex type that contains general information about the hosted zone. */ 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 general information about the hosted zone. *

*

* 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 general information about the hosted zone. * @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 general information about the hosted zone. *

* * @param hostedZones * A complex type that contains general information about the hosted zone. * @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; } /** *

* For the second and subsequent calls to ListHostedZonesByName, DNSName is the value that * you specified for the dnsname parameter in the request that produced the current response. *

* * @param dNSName * For the second and subsequent calls to ListHostedZonesByName, DNSName is the * value that you specified for the dnsname parameter in the request that produced the current * response. */ public void setDNSName(String dNSName) { this.dNSName = dNSName; } /** *

* For the second and subsequent calls to ListHostedZonesByName, DNSName is the value that * you specified for the dnsname parameter in the request that produced the current response. *

* * @return For the second and subsequent calls to ListHostedZonesByName, DNSName is the * value that you specified for the dnsname parameter in the request that produced the current * response. */ public String getDNSName() { return this.dNSName; } /** *

* For the second and subsequent calls to ListHostedZonesByName, DNSName is the value that * you specified for the dnsname parameter in the request that produced the current response. *

* * @param dNSName * For the second and subsequent calls to ListHostedZonesByName, DNSName is the * value that you specified for the dnsname parameter in the request that produced the current * response. * @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 ID that Amazon Route 53 assigned to the hosted zone when you created it. *

* * @param hostedZoneId * The ID that Amazon Route 53 assigned to the hosted zone when you created it. */ public void setHostedZoneId(String hostedZoneId) { this.hostedZoneId = hostedZoneId; } /** *

* The ID that Amazon Route 53 assigned to the hosted zone when you created it. *

* * @return The ID that Amazon Route 53 assigned to the hosted zone when you created it. */ public String getHostedZoneId() { return this.hostedZoneId; } /** *

* The ID that Amazon Route 53 assigned to the hosted zone when you created it. *

* * @param hostedZoneId * The ID that Amazon Route 53 assigned to the hosted zone when you created it. * @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 that indicates whether there are more hosted zones to be listed. If the response was truncated, you can * get the next group of maxitems hosted zones by calling ListHostedZonesByName again and * specifying the values of NextDNSName and NextHostedZoneId elements in the * dnsname and hostedzoneid parameters. *

* * @param isTruncated * A flag that indicates whether there are more hosted zones to be listed. If the response was truncated, you * can get the next group of maxitems hosted zones by calling ListHostedZonesByName * again and specifying the values of NextDNSName and NextHostedZoneId elements in * the dnsname and hostedzoneid parameters. */ public void setIsTruncated(Boolean isTruncated) { this.isTruncated = isTruncated; } /** *

* A flag that indicates whether there are more hosted zones to be listed. If the response was truncated, you can * get the next group of maxitems hosted zones by calling ListHostedZonesByName again and * specifying the values of NextDNSName and NextHostedZoneId elements in the * dnsname and hostedzoneid parameters. *

* * @return A flag that indicates whether there are more hosted zones to be listed. If the response was truncated, * you can get the next group of maxitems hosted zones by calling * ListHostedZonesByName again and specifying the values of NextDNSName and * NextHostedZoneId elements in the dnsname and hostedzoneid * parameters. */ public Boolean getIsTruncated() { return this.isTruncated; } /** *

* A flag that indicates whether there are more hosted zones to be listed. If the response was truncated, you can * get the next group of maxitems hosted zones by calling ListHostedZonesByName again and * specifying the values of NextDNSName and NextHostedZoneId elements in the * dnsname and hostedzoneid parameters. *

* * @param isTruncated * A flag that indicates whether there are more hosted zones to be listed. If the response was truncated, you * can get the next group of maxitems hosted zones by calling ListHostedZonesByName * again and specifying the values of NextDNSName and NextHostedZoneId elements in * the dnsname and hostedzoneid parameters. * @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 that indicates whether there are more hosted zones to be listed. If the response was truncated, you can * get the next group of maxitems hosted zones by calling ListHostedZonesByName again and * specifying the values of NextDNSName and NextHostedZoneId elements in the * dnsname and hostedzoneid parameters. *

* * @return A flag that indicates whether there are more hosted zones to be listed. If the response was truncated, * you can get the next group of maxitems hosted zones by calling * ListHostedZonesByName again and specifying the values of NextDNSName and * NextHostedZoneId elements in the dnsname and hostedzoneid * parameters. */ public Boolean isTruncated() { return this.isTruncated; } /** *

* If IsTruncated is true, the value of NextDNSName is the name of the first hosted zone * in the next group of maxitems hosted zones. Call ListHostedZonesByName again and * specify the value of NextDNSName and NextHostedZoneId in the dnsname and * hostedzoneid parameters, respectively. *

*

* This element is present only if IsTruncated is true. *

* * @param nextDNSName * If IsTruncated is true, the value of NextDNSName is the name of the first hosted * zone in the next group of maxitems hosted zones. Call ListHostedZonesByName * again and specify the value of NextDNSName and NextHostedZoneId in the * dnsname and hostedzoneid parameters, respectively.

*

* This element is present only if IsTruncated is true. */ public void setNextDNSName(String nextDNSName) { this.nextDNSName = nextDNSName; } /** *

* If IsTruncated is true, the value of NextDNSName is the name of the first hosted zone * in the next group of maxitems hosted zones. Call ListHostedZonesByName again and * specify the value of NextDNSName and NextHostedZoneId in the dnsname and * hostedzoneid parameters, respectively. *

*

* This element is present only if IsTruncated is true. *

* * @return If IsTruncated is true, the value of NextDNSName is the name of the first * hosted zone in the next group of maxitems hosted zones. Call * ListHostedZonesByName again and specify the value of NextDNSName and * NextHostedZoneId in the dnsname and hostedzoneid parameters, * respectively.

*

* This element is present only if IsTruncated is true. */ public String getNextDNSName() { return this.nextDNSName; } /** *

* If IsTruncated is true, the value of NextDNSName is the name of the first hosted zone * in the next group of maxitems hosted zones. Call ListHostedZonesByName again and * specify the value of NextDNSName and NextHostedZoneId in the dnsname and * hostedzoneid parameters, respectively. *

*

* This element is present only if IsTruncated is true. *

* * @param nextDNSName * If IsTruncated is true, the value of NextDNSName is the name of the first hosted * zone in the next group of maxitems hosted zones. Call ListHostedZonesByName * again and specify the value of NextDNSName and NextHostedZoneId in the * dnsname and hostedzoneid parameters, respectively.

*

* This element is present only if IsTruncated is true. * @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 IsTruncated is true, the value of NextHostedZoneId identifies the first * hosted zone in the next group of maxitems hosted zones. Call ListHostedZonesByName * again and specify the value of NextDNSName and NextHostedZoneId in the * dnsname and hostedzoneid parameters, respectively. *

*

* This element is present only if IsTruncated is true. *

* * @param nextHostedZoneId * If IsTruncated is true, the value of NextHostedZoneId identifies * the first hosted zone in the next group of maxitems hosted zones. Call * ListHostedZonesByName again and specify the value of NextDNSName and * NextHostedZoneId in the dnsname and hostedzoneid parameters, * respectively.

*

* This element is present only if IsTruncated is true. */ public void setNextHostedZoneId(String nextHostedZoneId) { this.nextHostedZoneId = nextHostedZoneId; } /** *

* If IsTruncated is true, the value of NextHostedZoneId identifies the first * hosted zone in the next group of maxitems hosted zones. Call ListHostedZonesByName * again and specify the value of NextDNSName and NextHostedZoneId in the * dnsname and hostedzoneid parameters, respectively. *

*

* This element is present only if IsTruncated is true. *

* * @return If IsTruncated is true, the value of NextHostedZoneId identifies * the first hosted zone in the next group of maxitems hosted zones. Call * ListHostedZonesByName again and specify the value of NextDNSName and * NextHostedZoneId in the dnsname and hostedzoneid parameters, * respectively.

*

* This element is present only if IsTruncated is true. */ public String getNextHostedZoneId() { return this.nextHostedZoneId; } /** *

* If IsTruncated is true, the value of NextHostedZoneId identifies the first * hosted zone in the next group of maxitems hosted zones. Call ListHostedZonesByName * again and specify the value of NextDNSName and NextHostedZoneId in the * dnsname and hostedzoneid parameters, respectively. *

*

* This element is present only if IsTruncated is true. *

* * @param nextHostedZoneId * If IsTruncated is true, the value of NextHostedZoneId identifies * the first hosted zone in the next group of maxitems hosted zones. Call * ListHostedZonesByName again and specify the value of NextDNSName and * NextHostedZoneId in the dnsname and hostedzoneid parameters, * respectively.

*

* This element is present only if IsTruncated is true. * @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 value that you specified for the maxitems parameter in the call to * ListHostedZonesByName that produced the current response. *

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

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

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

* * @param maxItems * The value that you specified for the maxitems parameter in the call to * ListHostedZonesByName that produced the current response. * @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. 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 (getHostedZones() != null) sb.append("HostedZones: ").append(getHostedZones()).append(","); if (getDNSName() != null) sb.append("DNSName: ").append(getDNSName()).append(","); if (getHostedZoneId() != null) sb.append("HostedZoneId: ").append(getHostedZoneId()).append(","); if (getIsTruncated() != null) sb.append("IsTruncated: ").append(getIsTruncated()).append(","); if (getNextDNSName() != null) sb.append("NextDNSName: ").append(getNextDNSName()).append(","); if (getNextHostedZoneId() != null) sb.append("NextHostedZoneId: ").append(getNextHostedZoneId()).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 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