Class RedirectResponse.Builder
java.lang.Object
software.amazon.awscdk.services.elasticloadbalancingv2.RedirectResponse.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RedirectResponse>
- Enclosing interface:
RedirectResponse
@Stability(Deprecated)
@Deprecated
public static final class RedirectResponse.Builder
extends Object
implements software.amazon.jsii.Builder<RedirectResponse>
Deprecated.
A builder for
RedirectResponse
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.statusCode
(String statusCode) Deprecated.
-
Constructor Details
-
Builder
public Builder()Deprecated.
-
-
Method Details
-
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
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<RedirectResponse>
- Returns:
- a new instance of
RedirectResponse
- Throws:
NullPointerException
- if any required attribute was not provided
-