Class CustomRuleOptions.Builder
java.lang.Object
software.amazon.awscdk.services.amplify.alpha.CustomRuleOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomRuleOptions>
- Enclosing interface:
CustomRuleOptions
@Stability(Experimental)
public static final class CustomRuleOptions.Builder
extends Object
implements software.amazon.jsii.Builder<CustomRuleOptions>
A builder for
CustomRuleOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCustomRuleOptions.getCondition()
Sets the value ofCustomRuleOptions.getSource()
status
(RedirectStatus status) Sets the value ofCustomRuleOptions.getStatus()
Sets the value ofCustomRuleOptions.getTarget()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
source
Sets the value ofCustomRuleOptions.getSource()
- Parameters:
source
- The source pattern for a URL rewrite or redirect rule. This parameter is required.- Returns:
this
-
target
Sets the value ofCustomRuleOptions.getTarget()
- Parameters:
target
- The target pattern for a URL rewrite or redirect rule. This parameter is required.- Returns:
this
-
condition
Sets the value ofCustomRuleOptions.getCondition()
- Parameters:
condition
- The condition for a URL rewrite or redirect rule, e.g. country code.- Returns:
this
-
status
Sets the value ofCustomRuleOptions.getStatus()
- Parameters:
status
- The status code for a URL rewrite or redirect rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CustomRuleOptions>
- Returns:
- a new instance of
CustomRuleOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-