Interface CustomRule.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CustomRule.Builder,CustomRule>,SdkBuilder<CustomRule.Builder,CustomRule>,SdkPojo
- Enclosing class:
- CustomRule
public static interface CustomRule.Builder extends SdkPojo, CopyableBuilder<CustomRule.Builder,CustomRule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CustomRule.Buildercondition(String condition)The condition for a URL rewrite or redirect rule, such as a country code.CustomRule.Buildersource(String source)The source pattern for a URL rewrite or redirect rule.CustomRule.Builderstatus(String status)The status code for a URL rewrite or redirect rule.CustomRule.Buildertarget(String target)The target pattern for a URL rewrite or redirect rule.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
source
CustomRule.Builder source(String source)
The source pattern for a URL rewrite or redirect rule.
- Parameters:
source- The source pattern for a URL rewrite or redirect rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
CustomRule.Builder target(String target)
The target pattern for a URL rewrite or redirect rule.
- Parameters:
target- The target pattern for a URL rewrite or redirect rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
CustomRule.Builder status(String status)
The status code for a URL rewrite or redirect rule.
- 200
-
Represents a 200 rewrite rule.
- 301
-
Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL.
- 302
-
Represents a 302 temporary redirect rule.
- 404
-
Represents a 404 redirect rule.
- 404-200
-
Represents a 404 rewrite rule.
- Parameters:
status- The status code for a URL rewrite or redirect rule.- 200
-
Represents a 200 rewrite rule.
- 301
-
Represents a 301 (moved pemanently) redirect rule. This and all future requests should be directed to the target URL.
- 302
-
Represents a 302 temporary redirect rule.
- 404
-
Represents a 404 redirect rule.
- 404-200
-
Represents a 404 rewrite rule.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
condition
CustomRule.Builder condition(String condition)
The condition for a URL rewrite or redirect rule, such as a country code.
- Parameters:
condition- The condition for a URL rewrite or redirect rule, such as a country code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-