Class CfnBucket.RoutingRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.RoutingRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.RoutingRuleProperty>
- Enclosing interface:
CfnBucket.RoutingRuleProperty
@Stability(Stable)
public static final class CfnBucket.RoutingRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.RoutingRuleProperty>
A builder for
CfnBucket.RoutingRuleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.redirectRule
(IResolvable redirectRule) Sets the value ofCfnBucket.RoutingRuleProperty.getRedirectRule()
redirectRule
(CfnBucket.RedirectRuleProperty redirectRule) Sets the value ofCfnBucket.RoutingRuleProperty.getRedirectRule()
routingRuleCondition
(IResolvable routingRuleCondition) Sets the value ofCfnBucket.RoutingRuleProperty.getRoutingRuleCondition()
routingRuleCondition
(CfnBucket.RoutingRuleConditionProperty routingRuleCondition) Sets the value ofCfnBucket.RoutingRuleProperty.getRoutingRuleCondition()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
redirectRule
@Stability(Stable) public CfnBucket.RoutingRuleProperty.Builder redirectRule(IResolvable redirectRule) Sets the value ofCfnBucket.RoutingRuleProperty.getRedirectRule()
- Parameters:
redirectRule
- Container for redirect information. This parameter is required. 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:
this
-
redirectRule
@Stability(Stable) public CfnBucket.RoutingRuleProperty.Builder redirectRule(CfnBucket.RedirectRuleProperty redirectRule) Sets the value ofCfnBucket.RoutingRuleProperty.getRedirectRule()
- Parameters:
redirectRule
- Container for redirect information. This parameter is required. 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:
this
-
routingRuleCondition
@Stability(Stable) public CfnBucket.RoutingRuleProperty.Builder routingRuleCondition(IResolvable routingRuleCondition) Sets the value ofCfnBucket.RoutingRuleProperty.getRoutingRuleCondition()
- Parameters:
routingRuleCondition
- 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:
this
-
routingRuleCondition
@Stability(Stable) public CfnBucket.RoutingRuleProperty.Builder routingRuleCondition(CfnBucket.RoutingRuleConditionProperty routingRuleCondition) Sets the value ofCfnBucket.RoutingRuleProperty.getRoutingRuleCondition()
- Parameters:
routingRuleCondition
- 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:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBucket.RoutingRuleProperty>
- Returns:
- a new instance of
CfnBucket.RoutingRuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-