Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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;
 

A complex type that contains the response for the request.

 
 public class ListHostedZonesByNameResult implements SerializableCloneable {

    
A complex type that contains information about the hosted zones associated with the current AWS account.
 
The DNSName value sent in the request.

Constraints:
Length: 0 - 1024

 
     private String dNSName;

    
The HostedZoneId value sent in the request.

Constraints:
Length: 0 - 32

 
     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 ListHostedZonesByNameResponse$IsTruncated 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 ListHostedZonesByNameResponse$NextDNSName in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId in the ListHostedZonesByNameRequest$HostedZoneId element.

Constraints:
Length: 0 - 1024

 
     private String nextDNSName;

    
If ListHostedZonesByNameResponse$IsTruncated 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 ListHostedZonesByNameResponse$NextDNSName in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId in the ListHostedZonesByNameRequest$HostedZoneId element.

Constraints:
Length: 0 - 32

 
     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 ListHostedZonesByNameResponse$IsTruncated in the response is true. Call ListHostedZonesByName again and specify the value of ListHostedZonesByNameResponse$NextDNSName and ListHostedZonesByNameResponse$NextHostedZoneId elements respectively 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.

Returns:
A complex type that contains information about the hosted zones associated with the current AWS account.
    public java.util.List<HostedZonegetHostedZones() {
        if ( == null) {
               = new com.amazonaws.internal.ListWithAutoConstructFlag<HostedZone>();
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A complex type that contains information about the hosted zones associated with the current AWS account.

Parameters:
hostedZones A complex type that contains information about the hosted zones associated with the current AWS account.
    public void setHostedZones(java.util.Collection<HostedZonehostedZones) {
        if (hostedZones == null) {
            this. = null;
            return;
        }
        hostedZonesCopy.addAll(hostedZones);
        this. = hostedZonesCopy;
    }
    
    
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 setHostedZones(java.util.Collection) or withHostedZones(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
hostedZones A complex type that contains information about the hosted zones associated with the current AWS account.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListHostedZonesByNameResult withHostedZones(HostedZone... hostedZones) {
        if (getHostedZones() == nullsetHostedZones(new java.util.ArrayList<HostedZone>(hostedZones.length));
        for (HostedZone value : hostedZones) {
            getHostedZones().add(value);
        }
        return this;
    }
    
    
A complex type that contains information about the hosted zones associated with the current AWS account.

Returns a reference to this object so that method calls can be chained together.

Parameters:
hostedZones A complex type that contains information about the hosted zones associated with the current AWS account.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (hostedZones == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<HostedZonehostedZonesCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<HostedZone>(hostedZones.size());
            hostedZonesCopy.addAll(hostedZones);
            this. = hostedZonesCopy;
        }
        return this;
    }

    
The DNSName value sent in the request.

Constraints:
Length: 0 - 1024

Returns:
The DNSName value sent in the request.
    public String getDNSName() {
        return ;
    }
    
    
The DNSName value sent in the request.

Constraints:
Length: 0 - 1024

Parameters:
dNSName The DNSName value sent in the request.
    public void setDNSName(String dNSName) {
        this. = dNSName;
    }
    
    
The DNSName value sent in the request.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 1024

Parameters:
dNSName The DNSName value sent in the request.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListHostedZonesByNameResult withDNSName(String dNSName) {
        this. = dNSName;
        return this;
    }

    
The HostedZoneId value sent in the request.

Constraints:
Length: 0 - 32

Returns:
The HostedZoneId value sent in the request.
    public String getHostedZoneId() {
        return ;
    }
    
    
The HostedZoneId value sent in the request.

Constraints:
Length: 0 - 32

Parameters:
hostedZoneId The HostedZoneId value sent in the request.
    public void setHostedZoneId(String hostedZoneId) {
        this. = hostedZoneId;
    }
    
    
The HostedZoneId value sent in the request.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 32

Parameters:
hostedZoneId The HostedZoneId value sent in the request.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListHostedZonesByNameResult withHostedZoneId(String hostedZoneId) {
        this. = 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

Returns:
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 ;
    }
    
    
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

Parameters:
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;
    }
    
    
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

Returns a reference to this object so that method calls can be chained together.

Parameters:
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

Returns:
A reference to this updated object so that method calls can be chained together.
    public ListHostedZonesByNameResult withIsTruncated(Boolean isTruncated) {
        this. = 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

Returns:
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 ;
    }

    
If ListHostedZonesByNameResponse$IsTruncated 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 ListHostedZonesByNameResponse$NextDNSName in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId in the ListHostedZonesByNameRequest$HostedZoneId element.

Constraints:
Length: 0 - 1024

Returns:
If ListHostedZonesByNameResponse$IsTruncated 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 ListHostedZonesByNameResponse$NextDNSName in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId in the ListHostedZonesByNameRequest$HostedZoneId element.
    public String getNextDNSName() {
        return ;
    }
    
    
If ListHostedZonesByNameResponse$IsTruncated 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 ListHostedZonesByNameResponse$NextDNSName in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId in the ListHostedZonesByNameRequest$HostedZoneId element.

Constraints:
Length: 0 - 1024

Parameters:
nextDNSName If ListHostedZonesByNameResponse$IsTruncated 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 ListHostedZonesByNameResponse$NextDNSName in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId in the ListHostedZonesByNameRequest$HostedZoneId element.
    public void setNextDNSName(String nextDNSName) {
        this. = nextDNSName;
    }
    
    
If ListHostedZonesByNameResponse$IsTruncated 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 ListHostedZonesByNameResponse$NextDNSName in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId in the ListHostedZonesByNameRequest$HostedZoneId element.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 1024

Parameters:
nextDNSName If ListHostedZonesByNameResponse$IsTruncated 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 ListHostedZonesByNameResponse$NextDNSName in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId in the ListHostedZonesByNameRequest$HostedZoneId element.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListHostedZonesByNameResult withNextDNSName(String nextDNSName) {
        this. = nextDNSName;
        return this;
    }

    
If ListHostedZonesByNameResponse$IsTruncated 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 ListHostedZonesByNameResponse$NextDNSName in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId in the ListHostedZonesByNameRequest$HostedZoneId element.

Constraints:
Length: 0 - 32

Returns:
If ListHostedZonesByNameResponse$IsTruncated 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 ListHostedZonesByNameResponse$NextDNSName in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId in the ListHostedZonesByNameRequest$HostedZoneId element.
    public String getNextHostedZoneId() {
        return ;
    }
    
    
If ListHostedZonesByNameResponse$IsTruncated 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 ListHostedZonesByNameResponse$NextDNSName in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId in the ListHostedZonesByNameRequest$HostedZoneId element.

Constraints:
Length: 0 - 32

Parameters:
nextHostedZoneId If ListHostedZonesByNameResponse$IsTruncated 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 ListHostedZonesByNameResponse$NextDNSName in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId in the ListHostedZonesByNameRequest$HostedZoneId element.
    public void setNextHostedZoneId(String nextHostedZoneId) {
        this. = nextHostedZoneId;
    }
    
    
If ListHostedZonesByNameResponse$IsTruncated 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 ListHostedZonesByNameResponse$NextDNSName in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId in the ListHostedZonesByNameRequest$HostedZoneId element.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 32

Parameters:
nextHostedZoneId If ListHostedZonesByNameResponse$IsTruncated 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 ListHostedZonesByNameResponse$NextDNSName in the ListHostedZonesByNameRequest$DNSName element and ListHostedZonesByNameResponse$NextHostedZoneId in the ListHostedZonesByNameRequest$HostedZoneId element.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListHostedZonesByNameResult withNextHostedZoneId(String nextHostedZoneId) {
        this. = 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 ListHostedZonesByNameResponse$IsTruncated in the response is true. Call ListHostedZonesByName again and specify the value of ListHostedZonesByNameResponse$NextDNSName and ListHostedZonesByNameResponse$NextHostedZoneId elements respectively to get the next page of results.

Returns:
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 ListHostedZonesByNameResponse$IsTruncated in the response is true. Call ListHostedZonesByName again and specify the value of ListHostedZonesByNameResponse$NextDNSName and ListHostedZonesByNameResponse$NextHostedZoneId elements respectively to get the next page of results.
    public String getMaxItems() {
        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 ListHostedZonesByNameResponse$IsTruncated in the response is true. Call ListHostedZonesByName again and specify the value of ListHostedZonesByNameResponse$NextDNSName and ListHostedZonesByNameResponse$NextHostedZoneId elements respectively to get the next page of results.

Parameters:
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 ListHostedZonesByNameResponse$IsTruncated in the response is true. Call ListHostedZonesByName again and specify the value of ListHostedZonesByNameResponse$NextDNSName and ListHostedZonesByNameResponse$NextHostedZoneId elements respectively to get the next page of results.
    public void setMaxItems(String maxItems) {
        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 ListHostedZonesByNameResponse$IsTruncated in the response is true. Call ListHostedZonesByName again and specify the value of ListHostedZonesByNameResponse$NextDNSName and ListHostedZonesByNameResponse$NextHostedZoneId elements respectively to get the next page of results.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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 ListHostedZonesByNameResponse$IsTruncated in the response is true. Call ListHostedZonesByName again and specify the value of ListHostedZonesByNameResponse$NextDNSName and ListHostedZonesByNameResponse$NextHostedZoneId elements respectively to get the next page of results.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListHostedZonesByNameResult withMaxItems(String maxItems) {
        this. = maxItems;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getHostedZones() != nullsb.append("HostedZones: " + getHostedZones() + ",");
        if (getDNSName() != nullsb.append("DNSName: " + getDNSName() + ",");
        if (getHostedZoneId() != nullsb.append("HostedZoneId: " + getHostedZoneId() + ",");
        if (isTruncated() != nullsb.append("IsTruncated: " + isTruncated() + ",");
        if (getNextDNSName() != nullsb.append("NextDNSName: " + getNextDNSName() + ",");
        if (getNextHostedZoneId() != nullsb.append("NextHostedZoneId: " + getNextHostedZoneId() + ",");
        if (getMaxItems() != nullsb.append("MaxItems: " + getMaxItems() );
        sb.append("}");
        return sb.toString();
    }
    
    @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 + ((isTruncated() == null) ? 0 : isTruncated().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 boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof ListHostedZonesByNameResult == falsereturn false;
        
        if (other.getHostedZones() == null ^ this.getHostedZones() == nullreturn false;
        if (other.getHostedZones() != null && other.getHostedZones().equals(this.getHostedZones()) == falsereturn false
        if (other.getDNSName() == null ^ this.getDNSName() == nullreturn false;
        if (other.getDNSName() != null && other.getDNSName().equals(this.getDNSName()) == falsereturn false
        if (other.getHostedZoneId() == null ^ this.getHostedZoneId() == nullreturn false;
        if (other.getHostedZoneId() != null && other.getHostedZoneId().equals(this.getHostedZoneId()) == falsereturn false
        if (other.isTruncated() == null ^ this.isTruncated() == nullreturn false;
        if (other.isTruncated() != null && other.isTruncated().equals(this.isTruncated()) == falsereturn false
        if (other.getNextDNSName() == null ^ this.getNextDNSName() == nullreturn false;
        if (other.getNextDNSName() != null && other.getNextDNSName().equals(this.getNextDNSName()) == falsereturn false
        if (other.getNextHostedZoneId() == null ^ this.getNextHostedZoneId() == nullreturn false;
        if (other.getNextHostedZoneId() != null && other.getNextHostedZoneId().equals(this.getNextHostedZoneId()) == falsereturn false
        if (other.getMaxItems() == null ^ this.getMaxItems() == nullreturn false;
        if (other.getMaxItems() != null && other.getMaxItems().equals(this.getMaxItems()) == falsereturn false
        return true;
    }
    
    @Override
        try {
            return (ListHostedZonesByNameResultsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X