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