@Stability(value=Stable) public static final class CfnListener.RedirectConfigProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnListener.RedirectConfigProperty>
CfnListener.RedirectConfigProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnListener.RedirectConfigProperty |
build()
Builds the configured instance.
|
CfnListener.RedirectConfigProperty.Builder |
host(String host)
Sets the value of
CfnListener.RedirectConfigProperty.getHost() |
CfnListener.RedirectConfigProperty.Builder |
path(String path)
Sets the value of
CfnListener.RedirectConfigProperty.getPath() |
CfnListener.RedirectConfigProperty.Builder |
port(String port)
Sets the value of
CfnListener.RedirectConfigProperty.getPort() |
CfnListener.RedirectConfigProperty.Builder |
protocol(String protocol)
Sets the value of
CfnListener.RedirectConfigProperty.getProtocol() |
CfnListener.RedirectConfigProperty.Builder |
query(String query)
Sets the value of
CfnListener.RedirectConfigProperty.getQuery() |
CfnListener.RedirectConfigProperty.Builder |
statusCode(String statusCode)
Sets the value of
CfnListener.RedirectConfigProperty.getStatusCode() |
@Stability(value=Stable) public CfnListener.RedirectConfigProperty.Builder statusCode(String statusCode)
CfnListener.RedirectConfigProperty.getStatusCode()statusCode - The HTTP redirect code. This parameter is required.
The redirect is either permanent (HTTP 301) or temporary (HTTP 302).this@Stability(value=Stable) public CfnListener.RedirectConfigProperty.Builder host(String host)
CfnListener.RedirectConfigProperty.getHost()host - The hostname.
This component is not percent-encoded. The hostname can contain #{host}.this@Stability(value=Stable) public CfnListener.RedirectConfigProperty.Builder path(String path)
CfnListener.RedirectConfigProperty.getPath()path - The absolute path, starting with the leading "/".
This component is not percent-encoded. The path can contain #{host}, #{path}, and #{port}.this@Stability(value=Stable) public CfnListener.RedirectConfigProperty.Builder port(String port)
CfnListener.RedirectConfigProperty.getPort()port - The port.
You can specify a value from 1 to 65535 or #{port}.this@Stability(value=Stable) public CfnListener.RedirectConfigProperty.Builder protocol(String protocol)
CfnListener.RedirectConfigProperty.getProtocol()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.this@Stability(value=Stable) public CfnListener.RedirectConfigProperty.Builder query(String query)
CfnListener.RedirectConfigProperty.getQuery()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.this@Stability(value=Stable) public CfnListener.RedirectConfigProperty build()
build in interface software.amazon.jsii.Builder<CfnListener.RedirectConfigProperty>CfnListener.RedirectConfigPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.