@Stability(value=Stable) public static final class RoutingRuleCondition.Builder extends Object implements software.amazon.jsii.Builder<RoutingRuleCondition>
RoutingRuleCondition
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RoutingRuleCondition |
build()
Builds the configured instance.
|
RoutingRuleCondition.Builder |
httpErrorCodeReturnedEquals(String httpErrorCodeReturnedEquals)
Sets the value of
RoutingRuleCondition.getHttpErrorCodeReturnedEquals() |
RoutingRuleCondition.Builder |
keyPrefixEquals(String keyPrefixEquals)
Sets the value of
RoutingRuleCondition.getKeyPrefixEquals() |
@Stability(value=Stable) public RoutingRuleCondition.Builder httpErrorCodeReturnedEquals(String httpErrorCodeReturnedEquals)
RoutingRuleCondition.getHttpErrorCodeReturnedEquals()
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.
this
@Stability(value=Stable) public RoutingRuleCondition.Builder keyPrefixEquals(String keyPrefixEquals)
RoutingRuleCondition.getKeyPrefixEquals()
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.this
@Stability(value=Stable) public RoutingRuleCondition build()
build
in interface software.amazon.jsii.Builder<RoutingRuleCondition>
RoutingRuleCondition
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.