Interface CustomErrorResponses.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CustomErrorResponses.Builder,
,CustomErrorResponses> SdkBuilder<CustomErrorResponses.Builder,
,CustomErrorResponses> SdkPojo
- Enclosing class:
CustomErrorResponses
-
Method Summary
Modifier and TypeMethodDescriptionitems
(Collection<CustomErrorResponse> items) A complex type that contains aCustomErrorResponse
element for each HTTP status code for which you want to specify a custom error page and/or a caching duration.items
(Consumer<CustomErrorResponse.Builder>... items) A complex type that contains aCustomErrorResponse
element for each HTTP status code for which you want to specify a custom error page and/or a caching duration.items
(CustomErrorResponse... items) A complex type that contains aCustomErrorResponse
element for each HTTP status code for which you want to specify a custom error page and/or a caching duration.The number of HTTP status codes for which you want to specify a custom error page and/or a caching duration.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
quantity
The number of HTTP status codes for which you want to specify a custom error page and/or a caching duration. If
Quantity
is0
, you can omitItems
.- Parameters:
quantity
- The number of HTTP status codes for which you want to specify a custom error page and/or a caching duration. IfQuantity
is0
, you can omitItems
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
items
- A complex type that contains aCustomErrorResponse
element for each HTTP status code for which you want to specify a custom error page and/or a caching duration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.- Parameters:
items
- A complex type that contains aCustomErrorResponse
element for each HTTP status code for which you want to specify a custom error page and/or a caching duration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
items
A complex type that contains a
This is a convenience method that creates an instance of theCustomErrorResponse
element for each HTTP status code for which you want to specify a custom error page and/or a caching duration.CustomErrorResponse.Builder
avoiding the need to create one manually viaCustomErrorResponse.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toitems(List<CustomErrorResponse>)
.- Parameters:
items
- a consumer that will call methods onCustomErrorResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-