Class AddRedirectResponseProps.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.AddRedirectResponseProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AddRedirectResponseProps>
- Enclosing interface:
AddRedirectResponseProps
@Stability(Deprecated)
@Deprecated
public static final class AddRedirectResponseProps.Builder
extends Object
implements software.amazon.jsii.Builder<AddRedirectResponseProps>
Deprecated.
A builder for
AddRedirectResponseProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Deprecated.conditions
(List<? extends ListenerCondition> conditions) Deprecated.Sets the value ofAddRuleProps.getConditions()
Deprecated.hostHeader
(String hostHeader) Deprecated.Use `conditions` instead.Deprecated.pathPattern
(String pathPattern) Deprecated.Use `conditions` instead.pathPatterns
(List<String> pathPatterns) Deprecated.Use `conditions` instead.Deprecated.Deprecated.Sets the value ofAddRuleProps.getPriority()
Deprecated.Deprecated.statusCode
(String statusCode) Deprecated.
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
conditions
@Stability(Stable) public AddRedirectResponseProps.Builder conditions(List<? extends ListenerCondition> conditions) Deprecated.Sets the value ofAddRuleProps.getConditions()
- Parameters:
conditions
- Rule applies if matches the conditions.- Returns:
this
-
hostHeader
@Stability(Deprecated) @Deprecated public AddRedirectResponseProps.Builder hostHeader(String hostHeader) Deprecated.Use `conditions` instead.Sets the value ofAddRuleProps.getHostHeader()
- Parameters:
hostHeader
- Rule applies if the requested host matches the indicated host. May contain up to three '*' wildcards.Requires that priority is set.
- Returns:
this
-
pathPattern
@Stability(Deprecated) @Deprecated public AddRedirectResponseProps.Builder pathPattern(String pathPattern) Deprecated.Use `conditions` instead.Sets the value ofAddRuleProps.getPathPattern()
- Parameters:
pathPattern
- Rule applies if the requested path matches the given path pattern. May contain up to three '*' wildcards.Requires that priority is set.
- Returns:
this
-
pathPatterns
@Stability(Deprecated) @Deprecated public AddRedirectResponseProps.Builder pathPatterns(List<String> pathPatterns) Deprecated.Use `conditions` instead.Sets the value ofAddRuleProps.getPathPatterns()
- Parameters:
pathPatterns
- Rule applies if the requested path matches any of the given patterns. May contain up to three '*' wildcards.Requires that priority is set.
- Returns:
this
-
priority
Deprecated.Sets the value ofAddRuleProps.getPriority()
- Parameters:
priority
- Priority of this target group. The rule with the lowest priority will be used for every request. If priority is not given, these target groups will be added as defaults, and must not have conditions.Priorities must be unique.
- Returns:
this
-
statusCode
@Stability(Deprecated) @Deprecated public AddRedirectResponseProps.Builder statusCode(String statusCode) Deprecated.Sets the value ofRedirectResponse.getStatusCode()
- Parameters:
statusCode
- The HTTP redirect code (HTTP_301 or HTTP_302). This parameter is required.- Returns:
this
-
host
Deprecated.Sets the value ofRedirectResponse.getHost()
- Parameters:
host
- The hostname. This component is not percent-encoded. The hostname can contain #{host}.- Returns:
this
-
path
Deprecated.Sets the value ofRedirectResponse.getPath()
- Parameters:
path
- The absolute path, starting with the leading "/". This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}.- Returns:
this
-
port
Deprecated.Sets the value ofRedirectResponse.getPort()
- Parameters:
port
- The port. You can specify a value from 1 to 65535 or #{port}.- Returns:
this
-
protocol
@Stability(Deprecated) @Deprecated public AddRedirectResponseProps.Builder protocol(String protocol) Deprecated.Sets the value ofRedirectResponse.getProtocol()
- Parameters:
protocol
- The protocol. You can specify HTTP, HTTPS, or #{protocol}. You can redirect HTTP to HTTP, HTTP to HTTPS, and HTTPS to HTTPS. You cannot redirect HTTPS to HTTP.- Returns:
this
-
query
Deprecated.Sets the value ofRedirectResponse.getQuery()
- Parameters:
query
- The query parameters, URL-encoded when necessary, but not percent-encoded. Do not include the leading "?", as it is automatically added. You can specify any of the reserved keywords.- Returns:
this
-
build
Deprecated.Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AddRedirectResponseProps>
- Returns:
- a new instance of
AddRedirectResponseProps
- Throws:
NullPointerException
- if any required attribute was not provided
-