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;

The CloudFrontOriginAccessIdentityList type.

 
 public class CloudFrontOriginAccessIdentityList {

    
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 origin access identities 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 origin access identities 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 items in the list.
 
     private Boolean isTruncated;

    
An XML structure containing a summary of the origin access identity.
 
Default constructor for a new CloudFrontOriginAccessIdentityList object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.
 
     public CloudFrontOriginAccessIdentityList() {}
    
    
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.
 
         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 origin access identities 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 origin access identities 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 origin access identities 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 origin access identities 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 origin access identities 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 origin access identities where they left off.
Returns:
A reference to this updated object so that method calls can be chained together.
        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.
        this. = maxItems;
        return this;
    }
    
    
    
A flag that indicates whether more origin access identities 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 items in the list.

Returns:
A flag that indicates whether more origin access identities 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 items in the list.
    public Boolean isTruncated() {
        return ;
    }
    
    
A flag that indicates whether more origin access identities 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 items in the list.

Parameters:
isTruncated A flag that indicates whether more origin access identities 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 items in the list.
    public void setIsTruncated(Boolean isTruncated) {
        this. = isTruncated;
    }
    
    
A flag that indicates whether more origin access identities 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 items 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 origin access identities 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 items in the list.
Returns:
A reference to this updated object so that method calls can be chained together.
        this. = isTruncated;
        return this;
    }
    
    
    
A flag that indicates whether more origin access identities 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 items in the list.

Returns:
A flag that indicates whether more origin access identities 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 items in the list.
    public Boolean getIsTruncated() {
        return ;
    }
    
    
An XML structure containing a summary of the origin access identity.

Returns:
An XML structure containing a summary of the origin access identity.
        
        if ( == null) {
        }
    }
    
    
An XML structure containing a summary of the origin access identity.

Parameters:
cloudFrontOriginAccessIdentitySummaries An XML structure containing a summary of the origin access identity.
    public void setCloudFrontOriginAccessIdentitySummaries(java.util.Collection<CloudFrontOriginAccessIdentitySummarycloudFrontOriginAccessIdentitySummaries) {
        if (cloudFrontOriginAccessIdentitySummaries == null) {
            this. = null;
            return;
        }
        java.util.List<CloudFrontOriginAccessIdentitySummarycloudFrontOriginAccessIdentitySummariesCopy = new java.util.ArrayList<CloudFrontOriginAccessIdentitySummary>(cloudFrontOriginAccessIdentitySummaries.size());
        cloudFrontOriginAccessIdentitySummariesCopy.addAll(cloudFrontOriginAccessIdentitySummaries);
        this. = cloudFrontOriginAccessIdentitySummariesCopy;
    }
    
    
An XML structure containing a summary of the origin access identity.

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

Parameters:
cloudFrontOriginAccessIdentitySummaries An XML structure containing a summary of the origin access identity.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (getCloudFrontOriginAccessIdentitySummaries() == nullsetCloudFrontOriginAccessIdentitySummaries(new java.util.ArrayList<CloudFrontOriginAccessIdentitySummary>(cloudFrontOriginAccessIdentitySummaries.length));
        for (CloudFrontOriginAccessIdentitySummary value : cloudFrontOriginAccessIdentitySummaries) {
            getCloudFrontOriginAccessIdentitySummaries().add(value);
        }
        return this;
    }
    
    
An XML structure containing a summary of the origin access identity.

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

Parameters:
cloudFrontOriginAccessIdentitySummaries An XML structure containing a summary of the origin access identity.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (cloudFrontOriginAccessIdentitySummaries == null) {
            this. = null;
        } else {
            java.util.List<CloudFrontOriginAccessIdentitySummarycloudFrontOriginAccessIdentitySummariesCopy = new java.util.ArrayList<CloudFrontOriginAccessIdentitySummary>(cloudFrontOriginAccessIdentitySummaries.size());
            cloudFrontOriginAccessIdentitySummariesCopy.addAll(cloudFrontOriginAccessIdentitySummaries);
            this. = cloudFrontOriginAccessIdentitySummariesCopy;
        }
        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("CloudFrontOriginAccessIdentitySummaries: " +  + ", ");
        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 + ((getCloudFrontOriginAccessIdentitySummaries() == null) ? 0 : getCloudFrontOriginAccessIdentitySummaries().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
    
        if (obj instanceof CloudFrontOriginAccessIdentityList == falsereturn false;
        
        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.getCloudFrontOriginAccessIdentitySummaries() == null ^ this.getCloudFrontOriginAccessIdentitySummaries() == nullreturn false;
        if (other.getCloudFrontOriginAccessIdentitySummaries() != null && other.getCloudFrontOriginAccessIdentitySummaries().equals(this.getCloudFrontOriginAccessIdentitySummaries()) == falsereturn false
        return true;
    }
    
}
    
New to GrepCode? Check out our FAQ X