Class CfnBucket.RedirectAllRequestsToProperty.Builder
java.lang.Object
software.amazon.awscdk.services.s3.CfnBucket.RedirectAllRequestsToProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucket.RedirectAllRequestsToProperty>
- Enclosing interface:
CfnBucket.RedirectAllRequestsToProperty
@Stability(Stable)
public static final class CfnBucket.RedirectAllRequestsToProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucket.RedirectAllRequestsToProperty>
A builder for
CfnBucket.RedirectAllRequestsToProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnBucket.RedirectAllRequestsToProperty.getHostName()Sets the value ofCfnBucket.RedirectAllRequestsToProperty.getProtocol()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hostName
Sets the value ofCfnBucket.RedirectAllRequestsToProperty.getHostName()- Parameters:
hostName- Name of the host where requests are redirected. This parameter is required.- Returns:
this
-
protocol
Sets the value ofCfnBucket.RedirectAllRequestsToProperty.getProtocol()- Parameters:
protocol- Protocol to use when redirecting requests. The default is the protocol that is used in the original request.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucket.RedirectAllRequestsToProperty>- Returns:
- a new instance of
CfnBucket.RedirectAllRequestsToProperty - Throws:
NullPointerException- if any required attribute was not provided
-