@Generated(value="software.amazon.awssdk:codegen") public final class CustomErrorResponses extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CustomErrorResponses.Builder,CustomErrorResponses>
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.
Modifier and Type | Class and Description |
---|---|
static interface |
CustomErrorResponses.Builder |
Modifier and Type | Method and Description |
---|---|
static CustomErrorResponses.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<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. |
Integer |
quantity()
The number of HTTP status codes for which you want to specify a custom error page and/or a caching duration.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CustomErrorResponses.Builder> |
serializableBuilderClass() |
CustomErrorResponses.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public 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
is 0
, you can omit Items
.public List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
CustomErrorResponse
element for each HTTP status code for
which you want to specify a custom error page and/or a caching duration.public CustomErrorResponses.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CustomErrorResponses.Builder,CustomErrorResponses>
public static CustomErrorResponses.Builder builder()
public static Class<? extends CustomErrorResponses.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.