Class CfnBucketPropsMixin.RoutingRuleConditionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.s3.CfnBucketPropsMixin.RoutingRuleConditionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucketPropsMixin.RoutingRuleConditionProperty>
- Enclosing interface:
CfnBucketPropsMixin.RoutingRuleConditionProperty
@Stability(Stable)
public static final class CfnBucketPropsMixin.RoutingRuleConditionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucketPropsMixin.RoutingRuleConditionProperty>
A builder for
CfnBucketPropsMixin.RoutingRuleConditionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.httpErrorCodeReturnedEquals(String httpErrorCodeReturnedEquals) keyPrefixEquals(String keyPrefixEquals) Sets the value ofCfnBucketPropsMixin.RoutingRuleConditionProperty.getKeyPrefixEquals()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
httpErrorCodeReturnedEquals
@Stability(Stable) public CfnBucketPropsMixin.RoutingRuleConditionProperty.Builder httpErrorCodeReturnedEquals(String httpErrorCodeReturnedEquals) - Parameters:
httpErrorCodeReturnedEquals- The HTTP error code when the redirect is applied. In the event of an error, if the error code equals this value, then the specified redirect is applied.Required when parent element
Conditionis specified and siblingKeyPrefixEqualsis not specified. If both are specified, then both must be true for the redirect to be applied.- Returns:
this
-
keyPrefixEquals
@Stability(Stable) public CfnBucketPropsMixin.RoutingRuleConditionProperty.Builder keyPrefixEquals(String keyPrefixEquals) Sets the value ofCfnBucketPropsMixin.RoutingRuleConditionProperty.getKeyPrefixEquals()- Parameters:
keyPrefixEquals- The object key name prefix when the redirect is applied. For example, to redirect requests forExamplePage.html, the key prefix will beExamplePage.html. To redirect request for all pages with the prefixdocs/, the key prefix will bedocs/, which identifies all objects in the docs/ folder.Required when the parent element
Conditionis specified and siblingHttpErrorCodeReturnedEqualsis not specified. If both conditions are specified, both must be true for the redirect to be applied.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucketPropsMixin.RoutingRuleConditionProperty>- Returns:
- a new instance of
CfnBucketPropsMixin.RoutingRuleConditionProperty - Throws:
NullPointerException- if any required attribute was not provided
-