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