Class CfnContainer.PublicEndpointProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnContainer.PublicEndpointProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainer.PublicEndpointProperty>
- Enclosing interface:
- CfnContainer.PublicEndpointProperty
@Stability(Stable)
public static final class CfnContainer.PublicEndpointProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainer.PublicEndpointProperty>
A builder for
CfnContainer.PublicEndpointProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.containerName
(String containerName) Sets the value ofCfnContainer.PublicEndpointProperty.getContainerName()
containerPort
(Number containerPort) Sets the value ofCfnContainer.PublicEndpointProperty.getContainerPort()
healthCheckConfig
(IResolvable healthCheckConfig) Sets the value ofCfnContainer.PublicEndpointProperty.getHealthCheckConfig()
healthCheckConfig
(CfnContainer.HealthCheckConfigProperty healthCheckConfig) Sets the value ofCfnContainer.PublicEndpointProperty.getHealthCheckConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerName
@Stability(Stable) public CfnContainer.PublicEndpointProperty.Builder containerName(String containerName) Sets the value ofCfnContainer.PublicEndpointProperty.getContainerName()
- Parameters:
containerName
- The name of the container entry of the deployment that the endpoint configuration applies to.- Returns:
this
-
containerPort
@Stability(Stable) public CfnContainer.PublicEndpointProperty.Builder containerPort(Number containerPort) Sets the value ofCfnContainer.PublicEndpointProperty.getContainerPort()
- Parameters:
containerPort
- The port of the specified container to which traffic is forwarded to.- Returns:
this
-
healthCheckConfig
@Stability(Stable) public CfnContainer.PublicEndpointProperty.Builder healthCheckConfig(IResolvable healthCheckConfig) Sets the value ofCfnContainer.PublicEndpointProperty.getHealthCheckConfig()
- Parameters:
healthCheckConfig
- An object that describes the health check configuration of the container.- Returns:
this
-
healthCheckConfig
@Stability(Stable) public CfnContainer.PublicEndpointProperty.Builder healthCheckConfig(CfnContainer.HealthCheckConfigProperty healthCheckConfig) Sets the value ofCfnContainer.PublicEndpointProperty.getHealthCheckConfig()
- Parameters:
healthCheckConfig
- An object that describes the health check configuration of the container.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnContainer.PublicEndpointProperty>
- Returns:
- a new instance of
CfnContainer.PublicEndpointProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-