Interface RoutingRule.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<RoutingRule.Builder,RoutingRule>
,SdkBuilder<RoutingRule.Builder,RoutingRule>
,SdkPojo
- Enclosing class:
- RoutingRule
public static interface RoutingRule.Builder extends SdkPojo, CopyableBuilder<RoutingRule.Builder,RoutingRule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default RoutingRule.Builder
condition(Consumer<Condition.Builder> condition)
A container for describing a condition that must be met for the specified redirect to apply.RoutingRule.Builder
condition(Condition condition)
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.RoutingRule.Builder
redirect(Redirect redirect)
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
condition
RoutingRule.Builder condition(Condition 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
default RoutingRule.Builder condition(Consumer<Condition.Builder> 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:
condition(Condition)
-
redirect
RoutingRule.Builder redirect(Redirect 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
default RoutingRule.Builder redirect(Consumer<Redirect.Builder> 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:
redirect(Redirect)
-
-