Interface CustomErrorResponses.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CustomErrorResponses.Builder,CustomErrorResponses>,SdkBuilder<CustomErrorResponses.Builder,CustomErrorResponses>,SdkPojo
- Enclosing class:
- CustomErrorResponses
@Mutable @NotThreadSafe 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.Builderitems(Collection<CustomErrorResponse> items)A complex type that contains aCustomErrorResponseelement for each HTTP status code for which you want to specify a custom error page and/or a caching duration.CustomErrorResponses.Builderitems(Consumer<CustomErrorResponse.Builder>... items)A complex type that contains aCustomErrorResponseelement for each HTTP status code for which you want to specify a custom error page and/or a caching duration.CustomErrorResponses.Builderitems(CustomErrorResponse... items)A complex type that contains aCustomErrorResponseelement for each HTTP status code for which you want to specify a custom error page and/or a caching duration.CustomErrorResponses.Builderquantity(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, sdkFieldNameToField, 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
Quantityis0, 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. IfQuantityis0, 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
CustomErrorResponseelement 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 aCustomErrorResponseelement 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
CustomErrorResponseelement 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 aCustomErrorResponseelement 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 theCustomErrorResponseelement for each HTTP status code for which you want to specify a custom error page and/or a caching duration.CustomErrorResponse.Builderavoiding the need to create one manually viaCustomErrorResponse.builder().When the
Consumercompletes,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)
-
-