Class CustomErrorResponses
- java.lang.Object
-
- com.amazonaws.services.cloudfront.model.CustomErrorResponses
-
- All Implemented Interfaces:
Serializable,Cloneable
public class CustomErrorResponses extends Object implements Serializable, Cloneable
A complex type that contains zero or more CustomErrorResponse elements.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CustomErrorResponses()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomErrorResponsesclone()booleanequals(Object obj)List<CustomErrorResponse>getItems()Optional: A complex type that contains custom error responses for this distribution.IntegergetQuantity()The number of custom error responses for this distribution.inthashCode()voidsetItems(Collection<CustomErrorResponse> items)Optional: A complex type that contains custom error responses for this distribution.voidsetQuantity(Integer quantity)The number of custom error responses for this distribution.StringtoString()Returns a string representation of this object; useful for testing and debugging.CustomErrorResponseswithItems(CustomErrorResponse... items)Optional: A complex type that contains custom error responses for this distribution.CustomErrorResponseswithItems(Collection<CustomErrorResponse> items)Optional: A complex type that contains custom error responses for this distribution.CustomErrorResponseswithQuantity(Integer quantity)The number of custom error responses for this distribution.
-
-
-
Method Detail
-
setQuantity
public void setQuantity(Integer quantity)
The number of custom error responses for this distribution.- Parameters:
quantity- The number of custom error responses for this distribution.
-
getQuantity
public Integer getQuantity()
The number of custom error responses for this distribution.- Returns:
- The number of custom error responses for this distribution.
-
withQuantity
public CustomErrorResponses withQuantity(Integer quantity)
The number of custom error responses for this distribution.- Parameters:
quantity- The number of custom error responses for this distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getItems
public List<CustomErrorResponse> getItems()
Optional: A complex type that contains custom error responses for this distribution. If Quantity is 0, you can omit Items.- Returns:
- Optional: A complex type that contains custom error responses for this distribution. If Quantity is 0, you can omit Items.
-
setItems
public void setItems(Collection<CustomErrorResponse> items)
Optional: A complex type that contains custom error responses for this distribution. If Quantity is 0, you can omit Items.- Parameters:
items- Optional: A complex type that contains custom error responses for this distribution. If Quantity is 0, you can omit Items.
-
withItems
public CustomErrorResponses withItems(CustomErrorResponse... items)
Optional: A complex type that contains custom error responses for this distribution. If Quantity is 0, you can omit Items.NOTE: This method appends the values to the existing list (if any). Use
setItems(java.util.Collection)orwithItems(java.util.Collection)if you want to override the existing values.- Parameters:
items- Optional: A complex type that contains custom error responses for this distribution. If Quantity is 0, you can omit Items.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withItems
public CustomErrorResponses withItems(Collection<CustomErrorResponse> items)
Optional: A complex type that contains custom error responses for this distribution. If Quantity is 0, you can omit Items.- Parameters:
items- Optional: A complex type that contains custom error responses for this distribution. If Quantity is 0, you can omit Items.- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CustomErrorResponses clone()
-
-