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.cloudfront_2012_03_15.model;

An invalidation list.

 
 public class InvalidationList {

    
The value you provided for the Marker request parameter.
 
     private String marker;

    
If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your invalidation batches where they left off.
 
     private String nextMarker;

    
The value you provided for the MaxItems request parameter.
 
     private Integer maxItems;

    
A flag that indicates whether more invalidation batch requests remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more invalidation batches in the list.
 
     private Boolean isTruncated;

    
A complex type that lists the Invalidation ID and the status of that request.
 
Default constructor for a new InvalidationList object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.
 
     public InvalidationList() {}
    
    
The value you provided for the Marker request parameter.

Returns:
The value you provided for the Marker request parameter.
 
     public String getMarker() {
         return ;
     }
    
    
The value you provided for the Marker request parameter.

Parameters:
marker The value you provided for the Marker request parameter.
 
     public void setMarker(String marker) {
         this. = marker;
     }
    
    
The value you provided for the Marker request parameter.

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

Parameters:
marker The value you provided for the Marker request parameter.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public InvalidationList withMarker(String marker) {
         this. = marker;
         return this;
     }
    
    
    
If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your invalidation batches where they left off.

Returns:
If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your invalidation batches where they left off.
    public String getNextMarker() {
        return ;
    }
    
    
If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your invalidation batches where they left off.

Parameters:
nextMarker If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your invalidation batches where they left off.
    public void setNextMarker(String nextMarker) {
        this. = nextMarker;
    }
    
    
If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your invalidation batches where they left off.

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

Parameters:
nextMarker If IsTruncated is true, this element is present and contains the value you can use for the Marker request parameter to continue listing your invalidation batches where they left off.
Returns:
A reference to this updated object so that method calls can be chained together.
    public InvalidationList withNextMarker(String nextMarker) {
        this. = nextMarker;
        return this;
    }
    
    
    
The value you provided for the MaxItems request parameter.

Returns:
The value you provided for the MaxItems request parameter.
    public Integer getMaxItems() {
        return ;
    }
    
    
The value you provided for the MaxItems request parameter.

Parameters:
maxItems The value you provided for the MaxItems request parameter.
    public void setMaxItems(Integer maxItems) {
        this. = maxItems;
    }
    
    
The value you provided for the MaxItems request parameter.

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

Parameters:
maxItems The value you provided for the MaxItems request parameter.
Returns:
A reference to this updated object so that method calls can be chained together.
    public InvalidationList withMaxItems(Integer maxItems) {
        this. = maxItems;
        return this;
    }
    
    
    
A flag that indicates whether more invalidation batch requests remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more invalidation batches in the list.

Returns:
A flag that indicates whether more invalidation batch requests remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more invalidation batches in the list.
    public Boolean isTruncated() {
        return ;
    }
    
    
A flag that indicates whether more invalidation batch requests remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more invalidation batches in the list.

Parameters:
isTruncated A flag that indicates whether more invalidation batch requests remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more invalidation batches in the list.
    public void setIsTruncated(Boolean isTruncated) {
        this. = isTruncated;
    }
    
    
A flag that indicates whether more invalidation batch requests remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more invalidation batches in the list.

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

Parameters:
isTruncated A flag that indicates whether more invalidation batch requests remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more invalidation batches in the list.
Returns:
A reference to this updated object so that method calls can be chained together.
    public InvalidationList withIsTruncated(Boolean isTruncated) {
        this. = isTruncated;
        return this;
    }
    
    
    
A flag that indicates whether more invalidation batch requests remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more invalidation batches in the list.

Returns:
A flag that indicates whether more invalidation batch requests remain to be listed. If your results were truncated, you can make a follow-up pagination request using the Marker request parameter to retrieve more invalidation batches in the list.
    public Boolean getIsTruncated() {
        return ;
    }
    
    
A complex type that lists the Invalidation ID and the status of that request.

Returns:
A complex type that lists the Invalidation ID and the status of that request.
        
        if ( == null) {
             = new java.util.ArrayList<InvalidationSummary>();
        }
        return ;
    }
    
    
A complex type that lists the Invalidation ID and the status of that request.

Parameters:
invalidationSummaries A complex type that lists the Invalidation ID and the status of that request.
    public void setInvalidationSummaries(java.util.Collection<InvalidationSummaryinvalidationSummaries) {
        if (invalidationSummaries == null) {
            this. = null;
            return;
        }
        java.util.List<InvalidationSummaryinvalidationSummariesCopy = new java.util.ArrayList<InvalidationSummary>(invalidationSummaries.size());
        invalidationSummariesCopy.addAll(invalidationSummaries);
        this. = invalidationSummariesCopy;
    }
    
    
A complex type that lists the Invalidation ID and the status of that request.

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

Parameters:
invalidationSummaries A complex type that lists the Invalidation ID and the status of that request.
Returns:
A reference to this updated object so that method calls can be chained together.
    public InvalidationList withInvalidationSummaries(InvalidationSummary... invalidationSummaries) {
        if (getInvalidationSummaries() == nullsetInvalidationSummaries(new java.util.ArrayList<InvalidationSummary>(invalidationSummaries.length));
        for (InvalidationSummary value : invalidationSummaries) {
            getInvalidationSummaries().add(value);
        }
        return this;
    }
    
    
A complex type that lists the Invalidation ID and the status of that request.

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

Parameters:
invalidationSummaries A complex type that lists the Invalidation ID and the status of that request.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (invalidationSummaries == null) {
            this. = null;
        } else {
            java.util.List<InvalidationSummaryinvalidationSummariesCopy = new java.util.ArrayList<InvalidationSummary>(invalidationSummaries.size());
            invalidationSummariesCopy.addAll(invalidationSummaries);
            this. = invalidationSummariesCopy;
        }
        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 ( != nullsb.append("Marker: " +  + ", ");
        if ( != nullsb.append("NextMarker: " +  + ", ");
        if ( != nullsb.append("MaxItems: " +  + ", ");
        if ( != nullsb.append("IsTruncated: " +  + ", ");
        if ( != nullsb.append("InvalidationSummaries: " +  + ", ");
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); 
        hashCode = prime * hashCode + ((getNextMarker() == null) ? 0 : getNextMarker().hashCode()); 
        hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode()); 
        hashCode = prime * hashCode + ((isTruncated() == null) ? 0 : isTruncated().hashCode()); 
        hashCode = prime * hashCode + ((getInvalidationSummaries() == null) ? 0 : getInvalidationSummaries().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
    
        if (obj instanceof InvalidationList == falsereturn false;
        InvalidationList other = (InvalidationList)obj;
        
        if (other.getMarker() == null ^ this.getMarker() == nullreturn false;
        if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == 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
        if (other.isTruncated() == null ^ this.isTruncated() == nullreturn false;
        if (other.isTruncated() != null && other.isTruncated().equals(this.isTruncated()) == falsereturn false
        if (other.getInvalidationSummaries() == null ^ this.getInvalidationSummaries() == nullreturn false;
        if (other.getInvalidationSummaries() != null && other.getInvalidationSummaries().equals(this.getInvalidationSummaries()) == falsereturn false
        return true;
    }
    
}
    
New to GrepCode? Check out our FAQ X