Class RoutingRule.Builder
java.lang.Object
software.amazon.awscdk.services.s3.RoutingRule.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RoutingRule>
- Enclosing interface:
RoutingRule
@Stability(Stable)
public static final class RoutingRule.Builder
extends Object
implements software.amazon.jsii.Builder<RoutingRule>
A builder for
RoutingRule-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.condition(RoutingRuleCondition condition) Sets the value ofRoutingRule.getCondition()Sets the value ofRoutingRule.getHostName()httpRedirectCode(String httpRedirectCode) Sets the value ofRoutingRule.getHttpRedirectCode()protocol(RedirectProtocol protocol) Sets the value ofRoutingRule.getProtocol()replaceKey(ReplaceKey replaceKey) Sets the value ofRoutingRule.getReplaceKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
condition
Sets the value ofRoutingRule.getCondition()- Parameters:
condition- Specifies a condition that must be met for the specified redirect to apply.- Returns:
this
-
hostName
Sets the value ofRoutingRule.getHostName()- Parameters:
hostName- The host name to use in the redirect request.- Returns:
this
-
httpRedirectCode
Sets the value ofRoutingRule.getHttpRedirectCode()- Parameters:
httpRedirectCode- The HTTP redirect code to use on the response.- Returns:
this
-
protocol
Sets the value ofRoutingRule.getProtocol()- Parameters:
protocol- Protocol to use when redirecting requests.- Returns:
this
-
replaceKey
Sets the value ofRoutingRule.getReplaceKey()- Parameters:
replaceKey- Specifies the object key prefix to use in the redirect request.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<RoutingRule>- Returns:
- a new instance of
RoutingRule - Throws:
NullPointerException- if any required attribute was not provided
-