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