public static final class CfnListenerRule.RedirectConfigProperty.Builder
extends java.lang.Object
CfnListenerRule.RedirectConfigProperty
Constructor and Description |
---|
Builder() |
public CfnListenerRule.RedirectConfigProperty.Builder statusCode(java.lang.String statusCode)
CfnListenerRule.RedirectConfigProperty.getStatusCode()
statusCode
- The HTTP redirect code. This parameter is required.
The redirect is either permanent (HTTP 301) or temporary (HTTP 302).this
public CfnListenerRule.RedirectConfigProperty.Builder host(java.lang.String host)
CfnListenerRule.RedirectConfigProperty.getHost()
host
- The hostname.
This component is not percent-encoded. The hostname can contain #{host}.this
public CfnListenerRule.RedirectConfigProperty.Builder path(java.lang.String path)
CfnListenerRule.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
public CfnListenerRule.RedirectConfigProperty.Builder port(java.lang.String port)
CfnListenerRule.RedirectConfigProperty.getPort()
port
- The port.
You can specify a value from 1 to 65535 or #{port}.this
public CfnListenerRule.RedirectConfigProperty.Builder protocol(java.lang.String protocol)
CfnListenerRule.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
public CfnListenerRule.RedirectConfigProperty.Builder query(java.lang.String query)
CfnListenerRule.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
public CfnListenerRule.RedirectConfigProperty build()
CfnListenerRule.RedirectConfigProperty
java.lang.NullPointerException
- if any required attribute was not provided