@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CustomErrorResponses extends Object implements Serializable, Cloneable
A complex type that controls:
Whether CloudFront replaces HTTP status codes in the 4xx and 5xx range with custom error messages before returning the response to the viewer.
How long CloudFront caches HTTP status codes in the 4xx and 5xx range.
For more information about custom error pages, see Customizing Error Responses in the Amazon CloudFront Developer Guide.
Constructor and Description |
---|
CustomErrorResponses() |
Modifier and Type | Method and Description |
---|---|
CustomErrorResponses |
clone() |
boolean |
equals(Object obj) |
List<CustomErrorResponse> |
getItems()
A complex type that contains a
CustomErrorResponse element for each HTTP status code for which you
want to specify a custom error page and/or a caching duration. |
Integer |
getQuantity()
The number of HTTP status codes for which you want to specify a custom error page and/or a caching duration.
|
int |
hashCode() |
void |
setItems(Collection<CustomErrorResponse> items)
A complex type that contains a
CustomErrorResponse element for each HTTP status code for which you
want to specify a custom error page and/or a caching duration. |
void |
setQuantity(Integer quantity)
The number of HTTP status codes for which you want to specify a custom error page and/or a caching duration.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CustomErrorResponses |
withItems(Collection<CustomErrorResponse> items)
A complex type that contains a
CustomErrorResponse element for each HTTP status code for which you
want to specify a custom error page and/or a caching duration. |
CustomErrorResponses |
withItems(CustomErrorResponse... items)
A complex type that contains a
CustomErrorResponse element for each HTTP status code for which you
want to specify a custom error page and/or a caching duration. |
CustomErrorResponses |
withQuantity(Integer quantity)
The number of HTTP status codes for which you want to specify a custom error page and/or a caching duration.
|
public void setQuantity(Integer quantity)
The number of HTTP status codes for which you want to specify a custom error page and/or a caching duration. If
Quantity
is 0
, you can omit Items
.
quantity
- The number of HTTP status codes for which you want to specify a custom error page and/or a caching
duration. If Quantity
is 0
, you can omit Items
.public Integer getQuantity()
The number of HTTP status codes for which you want to specify a custom error page and/or a caching duration. If
Quantity
is 0
, you can omit Items
.
Quantity
is 0
, you can omit Items
.public CustomErrorResponses withQuantity(Integer quantity)
The number of HTTP status codes for which you want to specify a custom error page and/or a caching duration. If
Quantity
is 0
, you can omit Items
.
quantity
- The number of HTTP status codes for which you want to specify a custom error page and/or a caching
duration. If Quantity
is 0
, you can omit Items
.public List<CustomErrorResponse> getItems()
A complex type that contains a CustomErrorResponse
element for each HTTP status code for which you
want to specify a custom error page and/or a caching duration.
CustomErrorResponse
element for each HTTP status code for
which you want to specify a custom error page and/or a caching duration.public void setItems(Collection<CustomErrorResponse> items)
A complex type that contains a CustomErrorResponse
element for each HTTP status code for which you
want to specify a custom error page and/or a caching duration.
items
- A complex type that contains a CustomErrorResponse
element for each HTTP status code for
which you want to specify a custom error page and/or a caching duration.public CustomErrorResponses withItems(CustomErrorResponse... items)
A complex type that contains a CustomErrorResponse
element for each HTTP status code for which you
want to specify a custom error page and/or a caching duration.
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.
items
- A complex type that contains a CustomErrorResponse
element for each HTTP status code for
which you want to specify a custom error page and/or a caching duration.public CustomErrorResponses withItems(Collection<CustomErrorResponse> items)
A complex type that contains a CustomErrorResponse
element for each HTTP status code for which you
want to specify a custom error page and/or a caching duration.
items
- A complex type that contains a CustomErrorResponse
element for each HTTP status code for
which you want to specify a custom error page and/or a caching duration.public String toString()
toString
in class Object
Object.toString()
public CustomErrorResponses clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.