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;

A streaming distribution list.

 
 public class StreamingDistributionList {

    
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 streaming distributions 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 streaming distributions 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 distributions in the list.
 
     private Boolean isTruncated;

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

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

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

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

Returns:
An XML structure containing a summary of the streaming distribution.
        
        if ( == null) {
        }
        return ;
    }
    
    
An XML structure containing a summary of the streaming distribution.

Parameters:
streamingDistributionSummaries An XML structure containing a summary of the streaming distribution.
    public void setStreamingDistributionSummaries(java.util.Collection<StreamingDistributionSummarystreamingDistributionSummaries) {
        if (streamingDistributionSummaries == null) {
            this. = null;
            return;
        }
        java.util.List<StreamingDistributionSummarystreamingDistributionSummariesCopy = new java.util.ArrayList<StreamingDistributionSummary>(streamingDistributionSummaries.size());
        streamingDistributionSummariesCopy.addAll(streamingDistributionSummaries);
        this. = streamingDistributionSummariesCopy;
    }
    
    
An XML structure containing a summary of the streaming distribution.

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

Parameters:
streamingDistributionSummaries An XML structure containing a summary of the streaming distribution.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (getStreamingDistributionSummaries() == nullsetStreamingDistributionSummaries(new java.util.ArrayList<StreamingDistributionSummary>(streamingDistributionSummaries.length));
        for (StreamingDistributionSummary value : streamingDistributionSummaries) {
            getStreamingDistributionSummaries().add(value);
        }
        return this;
    }
    
    
An XML structure containing a summary of the streaming distribution.

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

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