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

A streaming distribution list.

 
 public class StreamingDistributionList implements SerializableCloneable {

    
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;

    
The number of streaming distributions that were created by the current AWS account.
 
     private Integer quantity;

    
A complex type that contains one StreamingDistributionSummary element for each distribution that was created by the current AWS account.
 
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 ;
    }

    
The number of streaming distributions that were created by the current AWS account.

Returns:
The number of streaming distributions that were created by the current AWS account.
    public Integer getQuantity() {
        return ;
    }
    
    
The number of streaming distributions that were created by the current AWS account.

Parameters:
quantity The number of streaming distributions that were created by the current AWS account.
    public void setQuantity(Integer quantity) {
        this. = quantity;
    }
    
    
The number of streaming distributions that were created by the current AWS account.

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

Parameters:
quantity The number of streaming distributions that were created by the current AWS account.
Returns:
A reference to this updated object so that method calls can be chained together.
    public StreamingDistributionList withQuantity(Integer quantity) {
        this. = quantity;
        return this;
    }

    
A complex type that contains one StreamingDistributionSummary element for each distribution that was created by the current AWS account.

Returns:
A complex type that contains one StreamingDistributionSummary element for each distribution that was created by the current AWS account.
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A complex type that contains one StreamingDistributionSummary element for each distribution that was created by the current AWS account.

Parameters:
items A complex type that contains one StreamingDistributionSummary element for each distribution that was created by the current AWS account.
    public void setItems(java.util.Collection<StreamingDistributionSummaryitems) {
        if (items == null) {
            this. = null;
            return;
        }
        itemsCopy.addAll(items);
        this. = itemsCopy;
    }
    
    
A complex type that contains one StreamingDistributionSummary element for each distribution that was created by the current AWS account.

NOTE: This method appends the values to the existing list (if any). Use setItems(java.util.Collection) or withItems(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:
items A complex type that contains one StreamingDistributionSummary element for each distribution that was created by the current AWS account.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (getItems() == nullsetItems(new java.util.ArrayList<StreamingDistributionSummary>(items.length));
        for (StreamingDistributionSummary value : items) {
            getItems().add(value);
        }
        return this;
    }
    
    
A complex type that contains one StreamingDistributionSummary element for each distribution that was created by the current AWS account.

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

Parameters:
items A complex type that contains one StreamingDistributionSummary element for each distribution that was created by the current AWS account.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (items == null) {
            this. = null;
        } else {
            itemsCopy.addAll(items);
            this. = itemsCopy;
        }
        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 (getMarker() != nullsb.append("Marker: " + getMarker() + ",");
        if (getNextMarker() != nullsb.append("NextMarker: " + getNextMarker() + ",");
        if (getMaxItems() != nullsb.append("MaxItems: " + getMaxItems() + ",");
        if (isTruncated() != nullsb.append("IsTruncated: " + isTruncated() + ",");
        if (getQuantity() != nullsb.append("Quantity: " + getQuantity() + ",");
        if (getItems() != nullsb.append("Items: " + getItems() );
        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 + ((getQuantity() == null) ? 0 : getQuantity().hashCode()); 
        hashCode = prime * hashCode + ((getItems() == null) ? 0 : getItems().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.getQuantity() == null ^ this.getQuantity() == nullreturn false;
        if (other.getQuantity() != null && other.getQuantity().equals(this.getQuantity()) == falsereturn false
        if (other.getItems() == null ^ this.getItems() == nullreturn false;
        if (other.getItems() != null && other.getItems().equals(this.getItems()) == falsereturn false
        return true;
    }
    
    @Override
    public StreamingDistributionList clone() {
        try {
            return (StreamingDistributionListsuper.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