Interface CustomErrorResponses.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<CustomErrorResponses.Builder,CustomErrorResponses>
,SdkBuilder<CustomErrorResponses.Builder,CustomErrorResponses>
,SdkPojo
- Enclosing class:
- CustomErrorResponses
public static interface CustomErrorResponses.Builder extends SdkPojo, CopyableBuilder<CustomErrorResponses.Builder,CustomErrorResponses>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CustomErrorResponses.Builder
items(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.CustomErrorResponses.Builder
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.CustomErrorResponses.Builder
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.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.-
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 Detail
-
quantity
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. 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
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.- 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
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.- 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
CustomErrorResponses.Builder items(Consumer<CustomErrorResponse.Builder>... 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 to#items(List
.) - 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:
#items(java.util.Collection
)
-
-