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 information about the resource record sets that are returned by the request and information about the response.

 
 public class ListResourceRecordSetsResult implements SerializableCloneable {

    
A complex type that contains information about the resource record sets that are returned by the request.
 
A flag that indicates whether there are more resource record sets to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the ListResourceRecordSetsResponse$NextRecordName element.

Valid Values: true | false

 
     private Boolean isTruncated;

    
If the results were truncated, the name of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.

Constraints:
Length: 0 - 1024

 
     private String nextRecordName;

    
If the results were truncated, the type of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.

Constraints:
Allowed Values: SOA, A, TXT, NS, CNAME, MX, PTR, SRV, SPF, AAAA

 
     private String nextRecordType;

    
Weighted resource record sets only: If results were truncated for a given DNS name and type, the value of SetIdentifier for the next resource record set that has the current DNS name and type.

Constraints:
Length: 1 - 128

 
     private String nextRecordIdentifier;

    
The maximum number of records you requested. The maximum value of MaxItems is 100.
 
     private String maxItems;

    
A complex type that contains information about the resource record sets that are returned by the request.

Returns:
A complex type that contains information about the resource record sets that are returned by the request.
 
         if ( == null) {
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
A complex type that contains information about the resource record sets that are returned by the request.

Parameters:
resourceRecordSets A complex type that contains information about the resource record sets that are returned by the request.
    public void setResourceRecordSets(java.util.Collection<ResourceRecordSetresourceRecordSets) {
        if (resourceRecordSets == null) {
            this. = null;
            return;
        }
        resourceRecordSetsCopy.addAll(resourceRecordSets);
        this. = resourceRecordSetsCopy;
    }
    
    
A complex type that contains information about the resource record sets that are returned by the request.

NOTE: This method appends the values to the existing list (if any). Use setResourceRecordSets(java.util.Collection) or withResourceRecordSets(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:
resourceRecordSets A complex type that contains information about the resource record sets that are returned by the request.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (getResourceRecordSets() == nullsetResourceRecordSets(new java.util.ArrayList<ResourceRecordSet>(resourceRecordSets.length));
        for (ResourceRecordSet value : resourceRecordSets) {
            getResourceRecordSets().add(value);
        }
        return this;
    }
    
    
A complex type that contains information about the resource record sets that are returned by the request.

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

Parameters:
resourceRecordSets A complex type that contains information about the resource record sets that are returned by the request.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (resourceRecordSets == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<ResourceRecordSetresourceRecordSetsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<ResourceRecordSet>(resourceRecordSets.size());
            resourceRecordSetsCopy.addAll(resourceRecordSets);
            this. = resourceRecordSetsCopy;
        }
        return this;
    }

    
A flag that indicates whether there are more resource record sets to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the ListResourceRecordSetsResponse$NextRecordName element.

Valid Values: true | false

Returns:
A flag that indicates whether there are more resource record sets to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the ListResourceRecordSetsResponse$NextRecordName element.

Valid Values: true | false

    public Boolean isTruncated() {
        return ;
    }
    
    
A flag that indicates whether there are more resource record sets to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the ListResourceRecordSetsResponse$NextRecordName element.

Valid Values: true | false

Parameters:
isTruncated A flag that indicates whether there are more resource record sets to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the ListResourceRecordSetsResponse$NextRecordName element.

Valid Values: true | false

    public void setIsTruncated(Boolean isTruncated) {
        this. = isTruncated;
    }
    
    
A flag that indicates whether there are more resource record sets to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the ListResourceRecordSetsResponse$NextRecordName element.

Valid Values: true | false

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

Parameters:
isTruncated A flag that indicates whether there are more resource record sets to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the ListResourceRecordSetsResponse$NextRecordName element.

Valid Values: true | false

Returns:
A reference to this updated object so that method calls can be chained together.
    public ListResourceRecordSetsResult withIsTruncated(Boolean isTruncated) {
        this. = isTruncated;
        return this;
    }

    
A flag that indicates whether there are more resource record sets to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the ListResourceRecordSetsResponse$NextRecordName element.

Valid Values: true | false

Returns:
A flag that indicates whether there are more resource record sets to be listed. If your results were truncated, you can make a follow-up request for the next page of results by using the ListResourceRecordSetsResponse$NextRecordName element.

Valid Values: true | false

    public Boolean getIsTruncated() {
        return ;
    }

    
If the results were truncated, the name of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.

Constraints:
Length: 0 - 1024

Returns:
If the results were truncated, the name of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.
    public String getNextRecordName() {
        return ;
    }
    
    
If the results were truncated, the name of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.

Constraints:
Length: 0 - 1024

Parameters:
nextRecordName If the results were truncated, the name of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.
    public void setNextRecordName(String nextRecordName) {
        this. = nextRecordName;
    }
    
    
If the results were truncated, the name of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.

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

Constraints:
Length: 0 - 1024

Parameters:
nextRecordName If the results were truncated, the name of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListResourceRecordSetsResult withNextRecordName(String nextRecordName) {
        this. = nextRecordName;
        return this;
    }

    
If the results were truncated, the type of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.

Constraints:
Allowed Values: SOA, A, TXT, NS, CNAME, MX, PTR, SRV, SPF, AAAA

Returns:
If the results were truncated, the type of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.
See also:
RRType
    public String getNextRecordType() {
        return ;
    }
    
    
If the results were truncated, the type of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.

Constraints:
Allowed Values: SOA, A, TXT, NS, CNAME, MX, PTR, SRV, SPF, AAAA

Parameters:
nextRecordType If the results were truncated, the type of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.
See also:
RRType
    public void setNextRecordType(String nextRecordType) {
        this. = nextRecordType;
    }
    
    
If the results were truncated, the type of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.

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

Constraints:
Allowed Values: SOA, A, TXT, NS, CNAME, MX, PTR, SRV, SPF, AAAA

Parameters:
nextRecordType If the results were truncated, the type of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
RRType
    public ListResourceRecordSetsResult withNextRecordType(String nextRecordType) {
        this. = nextRecordType;
        return this;
    }

    
If the results were truncated, the type of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.

Constraints:
Allowed Values: SOA, A, TXT, NS, CNAME, MX, PTR, SRV, SPF, AAAA

Parameters:
nextRecordType If the results were truncated, the type of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.
See also:
RRType
    public void setNextRecordType(RRType nextRecordType) {
        this. = nextRecordType.toString();
    }
    
    
If the results were truncated, the type of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.

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

Constraints:
Allowed Values: SOA, A, TXT, NS, CNAME, MX, PTR, SRV, SPF, AAAA

Parameters:
nextRecordType If the results were truncated, the type of the next record in the list. This element is present only if ListResourceRecordSetsResponse$IsTruncated is true.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
RRType
    public ListResourceRecordSetsResult withNextRecordType(RRType nextRecordType) {
        this. = nextRecordType.toString();
        return this;
    }

    
Weighted resource record sets only: If results were truncated for a given DNS name and type, the value of SetIdentifier for the next resource record set that has the current DNS name and type.

Constraints:
Length: 1 - 128

Returns:
Weighted resource record sets only: If results were truncated for a given DNS name and type, the value of SetIdentifier for the next resource record set that has the current DNS name and type.
    public String getNextRecordIdentifier() {
        return ;
    }
    
    
Weighted resource record sets only: If results were truncated for a given DNS name and type, the value of SetIdentifier for the next resource record set that has the current DNS name and type.

Constraints:
Length: 1 - 128

Parameters:
nextRecordIdentifier Weighted resource record sets only: If results were truncated for a given DNS name and type, the value of SetIdentifier for the next resource record set that has the current DNS name and type.
    public void setNextRecordIdentifier(String nextRecordIdentifier) {
        this. = nextRecordIdentifier;
    }
    
    
Weighted resource record sets only: If results were truncated for a given DNS name and type, the value of SetIdentifier for the next resource record set that has the current DNS name and type.

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

Constraints:
Length: 1 - 128

Parameters:
nextRecordIdentifier Weighted resource record sets only: If results were truncated for a given DNS name and type, the value of SetIdentifier for the next resource record set that has the current DNS name and type.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListResourceRecordSetsResult withNextRecordIdentifier(String nextRecordIdentifier) {
        this. = nextRecordIdentifier;
        return this;
    }

    
The maximum number of records you requested. The maximum value of MaxItems is 100.

Returns:
The maximum number of records you requested. The maximum value of MaxItems is 100.
    public String getMaxItems() {
        return ;
    }
    
    
The maximum number of records you requested. The maximum value of MaxItems is 100.

Parameters:
maxItems The maximum number of records you requested. The maximum value of MaxItems is 100.
    public void setMaxItems(String maxItems) {
        this. = maxItems;
    }
    
    
The maximum number of records you requested. The maximum value of MaxItems is 100.

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

Parameters:
maxItems The maximum number of records you requested. The maximum value of MaxItems is 100.
Returns:
A reference to this updated object so that method calls can be chained together.
    public ListResourceRecordSetsResult 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 (getResourceRecordSets() != nullsb.append("ResourceRecordSets: " + getResourceRecordSets() + ",");
        if (isTruncated() != nullsb.append("IsTruncated: " + isTruncated() + ",");
        if (getNextRecordName() != nullsb.append("NextRecordName: " + getNextRecordName() + ",");
        if (getNextRecordType() != nullsb.append("NextRecordType: " + getNextRecordType() + ",");
        if (getNextRecordIdentifier() != nullsb.append("NextRecordIdentifier: " + getNextRecordIdentifier() + ",");
        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 + ((getResourceRecordSets() == null) ? 0 : getResourceRecordSets().hashCode()); 
        hashCode = prime * hashCode + ((isTruncated() == null) ? 0 : isTruncated().hashCode()); 
        hashCode = prime * hashCode + ((getNextRecordName() == null) ? 0 : getNextRecordName().hashCode()); 
        hashCode = prime * hashCode + ((getNextRecordType() == null) ? 0 : getNextRecordType().hashCode()); 
        hashCode = prime * hashCode + ((getNextRecordIdentifier() == null) ? 0 : getNextRecordIdentifier().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 ListResourceRecordSetsResult == falsereturn false;
        
        if (other.getResourceRecordSets() == null ^ this.getResourceRecordSets() == nullreturn false;
        if (other.getResourceRecordSets() != null && other.getResourceRecordSets().equals(this.getResourceRecordSets()) == falsereturn false
        if (other.isTruncated() == null ^ this.isTruncated() == nullreturn false;
        if (other.isTruncated() != null && other.isTruncated().equals(this.isTruncated()) == falsereturn false
        if (other.getNextRecordName() == null ^ this.getNextRecordName() == nullreturn false;
        if (other.getNextRecordName() != null && other.getNextRecordName().equals(this.getNextRecordName()) == falsereturn false
        if (other.getNextRecordType() == null ^ this.getNextRecordType() == nullreturn false;
        if (other.getNextRecordType() != null && other.getNextRecordType().equals(this.getNextRecordType()) == falsereturn false
        if (other.getNextRecordIdentifier() == null ^ this.getNextRecordIdentifier() == nullreturn false;
        if (other.getNextRecordIdentifier() != null && other.getNextRecordIdentifier().equals(this.getNextRecordIdentifier()) == 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 (ListResourceRecordSetsResultsuper.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