Interface OriginGroupFailoverCriteria.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<OriginGroupFailoverCriteria.Builder,
,OriginGroupFailoverCriteria> SdkBuilder<OriginGroupFailoverCriteria.Builder,
,OriginGroupFailoverCriteria> SdkPojo
- Enclosing class:
OriginGroupFailoverCriteria
public static interface OriginGroupFailoverCriteria.Builder
extends SdkPojo, CopyableBuilder<OriginGroupFailoverCriteria.Builder,OriginGroupFailoverCriteria>
-
Method Summary
Modifier and TypeMethodDescriptionstatusCodes
(Consumer<StatusCodes.Builder> statusCodes) The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the second origin.statusCodes
(StatusCodes statusCodes) The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the second origin.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
-
statusCodes
The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the second origin.
- Parameters:
statusCodes
- The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the second origin.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statusCodes
The status codes that, when returned from the primary origin, will trigger CloudFront to failover to the second origin.
This is a convenience method that creates an instance of theStatusCodes.Builder
avoiding the need to create one manually viaStatusCodes.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatusCodes(StatusCodes)
.- Parameters:
statusCodes
- a consumer that will call methods onStatusCodes.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-