Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.cloudfront.model
Class Origins

java.lang.Object
  extended by com.amazonaws.services.cloudfront.model.Origins
All Implemented Interfaces:
Serializable

public class Origins
extends Object
implements Serializable

A complex type that contains information about origins for this distribution.

See Also:
Serialized Form

Constructor Summary
Origins()
           
 
Method Summary
 boolean equals(Object obj)
           
 List<Origin> getItems()
          A complex type that contains origins for this distribution.
 Integer getQuantity()
          The number of origins for this distribution.
 int hashCode()
           
 void setItems(Collection<Origin> items)
          A complex type that contains origins for this distribution.
 void setQuantity(Integer quantity)
          The number of origins for this distribution.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Origins withItems(Collection<Origin> items)
          A complex type that contains origins for this distribution.
 Origins withItems(Origin... items)
          A complex type that contains origins for this distribution.
 Origins withQuantity(Integer quantity)
          The number of origins for this distribution.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Origins

public Origins()
Method Detail

getQuantity

public Integer getQuantity()
The number of origins for this distribution.

Returns:
The number of origins for this distribution.

setQuantity

public void setQuantity(Integer quantity)
The number of origins for this distribution.

Parameters:
quantity - The number of origins for this distribution.

withQuantity

public Origins withQuantity(Integer quantity)
The number of origins for this distribution.

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

Parameters:
quantity - The number of origins for this distribution.
Returns:
A reference to this updated object so that method calls can be chained together.

getItems

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

Constraints:
Length: 1 -

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.

Constraints:
Length: 1 -

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.

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

Constraints:
Length: 1 -

Parameters:
items - A complex type that contains origins for this distribution.
Returns:
A reference to this updated 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.

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

Constraints:
Length: 1 -

Parameters:
items - A complex type that contains origins for this distribution.
Returns:
A reference to this updated 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:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.