Interface RoutingRule.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<RoutingRule.Builder,,- RoutingRule> - SdkBuilder<RoutingRule.Builder,,- RoutingRule> - SdkPojo
- Enclosing class:
- RoutingRule
- 
Method SummaryModifier and TypeMethodDescriptiondefault RoutingRule.Buildercondition(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.Builderredirect(Consumer<Redirect.Builder> redirect) Container for redirect information.Container for redirect information.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
conditionA 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 /docsfolder, redirect to the/documentsfolder. 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- /docsfolder, redirect to the- /documentsfolder. 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.
 
- 
conditionA 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/docsfolder, redirect to the/documentsfolder. 2. If request results in HTTP error 4xx, redirect request to another host where you might process the error.Condition.Builderavoiding the need to create one manually viaCondition.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocondition(Condition).- Parameters:
- condition- a consumer that will call methods on- Condition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
redirectContainer 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.
 
- 
redirectContainer 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.Builderavoiding the need to create one manually viaRedirect.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toredirect(Redirect).- Parameters:
- redirect- a consumer that will call methods on- Redirect.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-