java.lang.Object
com.amazonaws.services.cloudfront.model.Origins
All Implemented Interfaces:
Serializable, Cloneable

public class Origins extends Object implements Serializable, Cloneable
A complex type that contains information about origins for this distribution.
See Also:
  • Constructor Details

    • Origins

      public Origins()
  • Method Details

    • setQuantity

      public void setQuantity(Integer quantity)
      The number of origins for this distribution.
      Parameters:
      quantity - The number of origins for this distribution.
    • getQuantity

      public Integer getQuantity()
      The number of origins for this distribution.
      Returns:
      The number of origins for this distribution.
    • withQuantity

      public Origins withQuantity(Integer quantity)
      The number of origins for this distribution.
      Parameters:
      quantity - The number of origins for this distribution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getItems

      public List<Origin> getItems()
      A complex type that contains origins for this distribution.
      Returns:
      A complex type that contains origins for this distribution.
    • setItems

      public void setItems(Collection<Origin> items)
      A complex type that contains origins for this distribution.
      Parameters:
      items - A complex type that contains origins for this distribution.
    • withItems

      public Origins withItems(Origin... items)
      A complex type that contains origins for this distribution.

      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.

      Parameters:
      items - A complex type that contains origins for this distribution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withItems

      public Origins withItems(Collection<Origin> items)
      A complex type that contains origins for this distribution.
      Parameters:
      items - A complex type that contains origins for this distribution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Origins clone()
      Overrides:
      clone in class Object