Interface DistributionCustomErrorResponse.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<DistributionCustomErrorResponse.Builder,,DistributionCustomErrorResponse> SdkBuilder<DistributionCustomErrorResponse.Builder,,DistributionCustomErrorResponse> SdkPojo
- Enclosing class:
DistributionCustomErrorResponse
@Mutable
@NotThreadSafe
public static interface DistributionCustomErrorResponse.Builder
extends SdkPojo, CopyableBuilder<DistributionCustomErrorResponse.Builder,DistributionCustomErrorResponse>
-
Method Summary
Modifier and TypeMethodDescriptionerrorCachingMinTTL(Long errorCachingMinTTL) The minimum time, in seconds, that the distribution caches the custom error response before requesting the object again from the origin.The HTTP error code from the origin that triggers the custom error response (for example,403or404).responseCode(String responseCode) The HTTP status code that the distribution returns to the viewer for the custom error response.responsePagePath(String responsePagePath) The path to the custom error page that the distribution returns to the viewer (for example,/404.html).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, sdkFieldNameToField, sdkFields
-
Method Details
-
errorCode
The HTTP error code from the origin that triggers the custom error response (for example,
403or404).- Parameters:
errorCode- The HTTP error code from the origin that triggers the custom error response (for example,403or404).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
responseCode
The HTTP status code that the distribution returns to the viewer for the custom error response.
- Parameters:
responseCode- The HTTP status code that the distribution returns to the viewer for the custom error response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
responsePagePath
The path to the custom error page that the distribution returns to the viewer (for example,
/404.html). The path must begin with a forward slash (/) and reference an object that is available from the origin.- Parameters:
responsePagePath- The path to the custom error page that the distribution returns to the viewer (for example,/404.html). The path must begin with a forward slash (/) and reference an object that is available from the origin.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errorCachingMinTTL
The minimum time, in seconds, that the distribution caches the custom error response before requesting the object again from the origin. If you don't specify a value, the default is
10seconds.- Parameters:
errorCachingMinTTL- The minimum time, in seconds, that the distribution caches the custom error response before requesting the object again from the origin. If you don't specify a value, the default is10seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-