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 ListHostedZonesResult implements SerializableCloneable {

    
A complex type that contains information about the hosted zones associated with the current AWS account.
 
If the request returned more than one page of results, submit another request and specify the value of NextMarker from the last response in the marker parameter to get the next page of results.

Constraints:
Length: 0 - 64

 
     private String marker;

    
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 Marker element.

Valid Values: true | false

 
     private Boolean isTruncated;

    
Indicates where to continue listing hosted zones. If ListHostedZonesResponse$IsTruncated is true, make another request to ListHostedZones and include the value of the NextMarker element in the Marker element to get the next page of results.

Constraints:
Length: 0 - 64

 
     private String nextMarker;

    
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 ListHostedZonesResponse$IsTruncated in the response is true. Call ListHostedZones again and specify the value of ListHostedZonesResponse$NextMarker in the ListHostedZonesRequest$Marker element 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 ListHostedZonesResult 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;
    }

    
If the request returned more than one page of results, submit another request and specify the value of NextMarker from the last response in the marker parameter to get the next page of results.

Constraints:
Length: 0 - 64

Returns:
If the request returned more than one page of results, submit another request and specify the value of NextMarker from the last response in the marker parameter to get the next page of results.
    public String getMarker() {
        return ;
    }
    
    
If the request returned more than one page of results, submit another request and specify the value of NextMarker from the last response in the marker parameter to get the next page of results.

Constraints:
Length: 0 - 64

Parameters:
marker If the request returned more than one page of results, submit another request and specify the value of NextMarker from the last response in the marker parameter to get the next page of results.
    public void setMarker(String marker) {
        this. = marker;
    }
    
    
If the request returned more than one page of results, submit another request and specify the value of NextMarker from the last response in the marker parameter to get the next page of results.

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

Constraints:
Length: 0 - 64

Parameters:
marker If the request returned more than one page of results, submit another request and specify the value of NextMarker from the last response in the marker parameter to get the next page of results.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListHostedZonesResult withMarker(String marker) {
        this. = marker;
        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 Marker element.

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 Marker element.

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 Marker element.

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 Marker element.

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 Marker element.

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 Marker element.

Valid Values: true | false

Returns:
A reference to this updated object so that method calls can be chained together.
    public ListHostedZonesResult 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 Marker element.

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 Marker element.

Valid Values: true | false

    public Boolean getIsTruncated() {
        return ;
    }

    
Indicates where to continue listing hosted zones. If ListHostedZonesResponse$IsTruncated is true, make another request to ListHostedZones and include the value of the NextMarker element in the Marker element to get the next page of results.

Constraints:
Length: 0 - 64

Returns:
Indicates where to continue listing hosted zones. If ListHostedZonesResponse$IsTruncated is true, make another request to ListHostedZones and include the value of the NextMarker element in the Marker element to get the next page of results.
    public String getNextMarker() {
        return ;
    }
    
    
Indicates where to continue listing hosted zones. If ListHostedZonesResponse$IsTruncated is true, make another request to ListHostedZones and include the value of the NextMarker element in the Marker element to get the next page of results.

Constraints:
Length: 0 - 64

Parameters:
nextMarker Indicates where to continue listing hosted zones. If ListHostedZonesResponse$IsTruncated is true, make another request to ListHostedZones and include the value of the NextMarker element in the Marker element to get the next page of results.
    public void setNextMarker(String nextMarker) {
        this. = nextMarker;
    }
    
    
Indicates where to continue listing hosted zones. If ListHostedZonesResponse$IsTruncated is true, make another request to ListHostedZones and include the value of the NextMarker element in the Marker element to get the next page of results.

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

Constraints:
Length: 0 - 64

Parameters:
nextMarker Indicates where to continue listing hosted zones. If ListHostedZonesResponse$IsTruncated is true, make another request to ListHostedZones and include the value of the NextMarker element in the Marker element to get the next page of results.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListHostedZonesResult withNextMarker(String nextMarker) {
        this. = nextMarker;
        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 ListHostedZonesResponse$IsTruncated in the response is true. Call ListHostedZones again and specify the value of ListHostedZonesResponse$NextMarker in the ListHostedZonesRequest$Marker element 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 ListHostedZonesResponse$IsTruncated in the response is true. Call ListHostedZones again and specify the value of ListHostedZonesResponse$NextMarker in the ListHostedZonesRequest$Marker element 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 ListHostedZonesResponse$IsTruncated in the response is true. Call ListHostedZones again and specify the value of ListHostedZonesResponse$NextMarker in the ListHostedZonesRequest$Marker element 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 ListHostedZonesResponse$IsTruncated in the response is true. Call ListHostedZones again and specify the value of ListHostedZonesResponse$NextMarker in the ListHostedZonesRequest$Marker element 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 ListHostedZonesResponse$IsTruncated in the response is true. Call ListHostedZones again and specify the value of ListHostedZonesResponse$NextMarker in the ListHostedZonesRequest$Marker element 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 ListHostedZonesResponse$IsTruncated in the response is true. Call ListHostedZones again and specify the value of ListHostedZonesResponse$NextMarker in the ListHostedZonesRequest$Marker element to get the next page of results.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListHostedZonesResult 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 (getMarker() != nullsb.append("Marker: " + getMarker() + ",");
        if (isTruncated() != nullsb.append("IsTruncated: " + isTruncated() + ",");
        if (getNextMarker() != nullsb.append("NextMarker: " + getNextMarker() + ",");
        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 + ((getMarker() == null) ? 0 : getMarker().hashCode()); 
        hashCode = prime * hashCode + ((isTruncated() == null) ? 0 : isTruncated().hashCode()); 
        hashCode = prime * hashCode + ((getNextMarker() == null) ? 0 : getNextMarker().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 ListHostedZonesResult == falsereturn false;
        ListHostedZonesResult other = (ListHostedZonesResult)obj;
        
        if (other.getHostedZones() == null ^ this.getHostedZones() == nullreturn false;
        if (other.getHostedZones() != null && other.getHostedZones().equals(this.getHostedZones()) == falsereturn false
        if (other.getMarker() == null ^ this.getMarker() == nullreturn false;
        if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == falsereturn false
        if (other.isTruncated() == null ^ this.isTruncated() == nullreturn false;
        if (other.isTruncated() != null && other.isTruncated().equals(this.isTruncated()) == falsereturn false
        if (other.getNextMarker() == null ^ this.getNextMarker() == nullreturn false;
        if (other.getNextMarker() != null && other.getNextMarker().equals(this.getNextMarker()) == falsereturn false
        if (other.getMaxItems() == null ^ this.getMaxItems() == nullreturn false;
        if (other.getMaxItems() != null && other.getMaxItems().equals(this.getMaxItems()) == falsereturn false
        return true;
    }
    
    @Override
    public ListHostedZonesResult clone() {
        try {
            return (ListHostedZonesResultsuper.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