Interface ContainerServiceEndpoint.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ContainerServiceEndpoint.Builder,
,ContainerServiceEndpoint> SdkBuilder<ContainerServiceEndpoint.Builder,
,ContainerServiceEndpoint> SdkPojo
- Enclosing class:
ContainerServiceEndpoint
public static interface ContainerServiceEndpoint.Builder
extends SdkPojo, CopyableBuilder<ContainerServiceEndpoint.Builder,ContainerServiceEndpoint>
-
Method Summary
Modifier and TypeMethodDescriptioncontainerName
(String containerName) The name of the container entry of the deployment that the endpoint configuration applies to.containerPort
(Integer containerPort) The port of the specified container to which traffic is forwarded to.default ContainerServiceEndpoint.Builder
healthCheck
(Consumer<ContainerServiceHealthCheckConfig.Builder> healthCheck) An object that describes the health check configuration of the container.healthCheck
(ContainerServiceHealthCheckConfig healthCheck) An object that describes the health check configuration of the container.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
containerName
The name of the container entry of the deployment that the endpoint configuration applies to.
- Parameters:
containerName
- The name of the container entry of the deployment that the endpoint configuration applies to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerPort
The port of the specified container to which traffic is forwarded to.
- Parameters:
containerPort
- The port of the specified container to which traffic is forwarded to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthCheck
An object that describes the health check configuration of the container.
- Parameters:
healthCheck
- An object that describes the health check configuration of the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthCheck
default ContainerServiceEndpoint.Builder healthCheck(Consumer<ContainerServiceHealthCheckConfig.Builder> healthCheck) An object that describes the health check configuration of the container.
This is a convenience method that creates an instance of theContainerServiceHealthCheckConfig.Builder
avoiding the need to create one manually viaContainerServiceHealthCheckConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohealthCheck(ContainerServiceHealthCheckConfig)
.- Parameters:
healthCheck
- a consumer that will call methods onContainerServiceHealthCheckConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-