public static interface CustomErrorResponses.Builder extends CopyableBuilder<CustomErrorResponses.Builder,CustomErrorResponses>
| Modifier and Type | Method and Description |
|---|---|
CustomErrorResponses.Builder |
items(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.Builder |
items(Consumer<CustomErrorResponse.Builder>... 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.Builder |
items(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.Builder |
quantity(Integer quantity)
The number of HTTP status codes for which you want to specify a custom error page and/or a caching duration.
|
copyapply, buildCustomErrorResponses.Builder quantity(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.CustomErrorResponses.Builder items(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.CustomErrorResponses.Builder items(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.CustomErrorResponses.Builder items(Consumer<CustomErrorResponse.Builder>... 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.
List.Builder avoiding the
need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately
and its result is passed to #items(List) .items - a consumer that will call methods on List.Builder #items(List) Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.