Interface Routing.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Routing.Builder,,Routing> SdkBuilder<Routing.Builder,,Routing> SdkPojo
- Enclosing class:
Routing
@Mutable
@NotThreadSafe
public static interface Routing.Builder
extends SdkPojo, CopyableBuilder<Routing.Builder,Routing>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Routing.Builderalias(Consumer<AliasRouting.Builder> alias) Routes traffic for the domain to an alias.alias(AliasRouting alias) Routes traffic for the domain to an alias.default Routing.Builderredirect(Consumer<RedirectRouting.Builder> redirect) Redirects traffic for the domain to another URL.redirect(RedirectRouting redirect) Redirects traffic for the domain to another URL.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
-
alias
Routes traffic for the domain to an alias.
- Parameters:
alias- Routes traffic for the domain to an alias.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alias
Routes traffic for the domain to an alias.
This is a convenience method that creates an instance of theAliasRouting.Builderavoiding the need to create one manually viaAliasRouting.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toalias(AliasRouting).- Parameters:
alias- a consumer that will call methods onAliasRouting.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
redirect
Redirects traffic for the domain to another URL.
- Parameters:
redirect- Redirects traffic for the domain to another URL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
redirect
Redirects traffic for the domain to another URL.
This is a convenience method that creates an instance of theRedirectRouting.Builderavoiding the need to create one manually viaRedirectRouting.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toredirect(RedirectRouting).- Parameters:
redirect- a consumer that will call methods onRedirectRouting.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-