Class RoutingRuleCondition.Builder
java.lang.Object
software.amazon.awscdk.services.s3.RoutingRuleCondition.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RoutingRuleCondition>
- Enclosing interface:
RoutingRuleCondition
@Stability(Stable)
public static final class RoutingRuleCondition.Builder
extends Object
implements software.amazon.jsii.Builder<RoutingRuleCondition>
A builder for
RoutingRuleCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.httpErrorCodeReturnedEquals
(String httpErrorCodeReturnedEquals) Sets the value ofRoutingRuleCondition.getHttpErrorCodeReturnedEquals()
keyPrefixEquals
(String keyPrefixEquals) Sets the value ofRoutingRuleCondition.getKeyPrefixEquals()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
httpErrorCodeReturnedEquals
@Stability(Stable) public RoutingRuleCondition.Builder httpErrorCodeReturnedEquals(String httpErrorCodeReturnedEquals) Sets the value ofRoutingRuleCondition.getHttpErrorCodeReturnedEquals()
- 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.If both condition properties are specified, both must be true for the redirect to be applied.
- Returns:
this
-
keyPrefixEquals
Sets the value ofRoutingRuleCondition.getKeyPrefixEquals()
- Parameters:
keyPrefixEquals
- The object key name prefix when the redirect is applied. If both condition properties are specified, both must be true for the redirect to be applied.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RoutingRuleCondition>
- Returns:
- a new instance of
RoutingRuleCondition
- Throws:
NullPointerException
- if any required attribute was not provided
-