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 aCustomErrorResponseelement 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 aCustomErrorResponseelement 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 aCustomErrorResponseelement 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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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
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
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
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
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 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:
-