public static final class CfnBucket.RedirectAllRequestsToProperty.Builder
extends java.lang.Object
CfnBucket.RedirectAllRequestsToProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnBucket.RedirectAllRequestsToProperty |
build()
Builds the configured instance.
|
CfnBucket.RedirectAllRequestsToProperty.Builder |
hostName(java.lang.String hostName)
Sets the value of
CfnBucket.RedirectAllRequestsToProperty.getHostName() |
CfnBucket.RedirectAllRequestsToProperty.Builder |
protocol(java.lang.String protocol)
Sets the value of
CfnBucket.RedirectAllRequestsToProperty.getProtocol() |
public CfnBucket.RedirectAllRequestsToProperty.Builder hostName(java.lang.String hostName)
CfnBucket.RedirectAllRequestsToProperty.getHostName()
hostName
- Name of the host where requests are redirected. This parameter is required.this
public CfnBucket.RedirectAllRequestsToProperty.Builder protocol(java.lang.String protocol)
CfnBucket.RedirectAllRequestsToProperty.getProtocol()
protocol
- Protocol to use when redirecting requests.
The default is the protocol that is used in the original request.this
public CfnBucket.RedirectAllRequestsToProperty build()
CfnBucket.RedirectAllRequestsToProperty
java.lang.NullPointerException
- if any required attribute was not provided