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