Class AssociateCloudMapServiceOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.AssociateCloudMapServiceOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AssociateCloudMapServiceOptions>
- Enclosing interface:
- AssociateCloudMapServiceOptions
@Stability(Stable)
public static final class AssociateCloudMapServiceOptions.Builder
extends Object
implements software.amazon.jsii.Builder<AssociateCloudMapServiceOptions>
A builder for
AssociateCloudMapServiceOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.container(ContainerDefinition container) Sets the value ofAssociateCloudMapServiceOptions.getContainer()containerPort(Number containerPort) Sets the value ofAssociateCloudMapServiceOptions.getContainerPort()Sets the value ofAssociateCloudMapServiceOptions.getService()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
service
Sets the value ofAssociateCloudMapServiceOptions.getService()- Parameters:
service- The cloudmap service to register with. This parameter is required.- Returns:
this
-
container
@Stability(Stable) public AssociateCloudMapServiceOptions.Builder container(ContainerDefinition container) Sets the value ofAssociateCloudMapServiceOptions.getContainer()- Parameters:
container- The container to point to for a SRV record.- Returns:
this
-
containerPort
@Stability(Stable) public AssociateCloudMapServiceOptions.Builder containerPort(Number containerPort) Sets the value ofAssociateCloudMapServiceOptions.getContainerPort()- Parameters:
containerPort- The port to point to for a SRV record.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AssociateCloudMapServiceOptions>- Returns:
- a new instance of
AssociateCloudMapServiceOptions - Throws:
NullPointerException- if any required attribute was not provided
-