Interface RoutingRule.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RoutingRule.Builder,
,RoutingRule> SdkBuilder<RoutingRule.Builder,
,RoutingRule> SdkPojo
- Enclosing class:
RoutingRule
-
Method Summary
Modifier and TypeMethodDescriptiondefault RoutingRule.Builder
condition
(Consumer<Condition.Builder> condition) A container for describing a condition that must be met for the specified redirect to apply.A container for describing a condition that must be met for the specified redirect to apply.default RoutingRule.Builder
redirect
(Consumer<Redirect.Builder> redirect) Container for redirect information.Container for redirect information.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
-
condition
A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the
/docs
folder, redirect to the/documents
folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.- Parameters:
condition
- A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the/docs
folder, redirect to the/documents
folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
condition
A container for describing a condition that must be met for the specified redirect to apply. For example, 1. If request is for pages in the
This is a convenience method that creates an instance of the/docs
folder, redirect to the/documents
folder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.Condition.Builder
avoiding the need to create one manually viaCondition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocondition(Condition)
.- Parameters:
condition
- a consumer that will call methods onCondition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
redirect
Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return.
- Parameters:
redirect
- Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
redirect
Container for redirect information. You can redirect requests to another host, to another page, or with another protocol. In the event of an error, you can specify a different error code to return.
This is a convenience method that creates an instance of theRedirect.Builder
avoiding the need to create one manually viaRedirect.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toredirect(Redirect)
.- Parameters:
redirect
- a consumer that will call methods onRedirect.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-