Interface ContainerGroupPortMapping.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ContainerGroupPortMapping.Builder,,ContainerGroupPortMapping> SdkBuilder<ContainerGroupPortMapping.Builder,,ContainerGroupPortMapping> SdkPojo
- Enclosing class:
ContainerGroupPortMapping
@Mutable
@NotThreadSafe
public static interface ContainerGroupPortMapping.Builder
extends SdkPojo, CopyableBuilder<ContainerGroupPortMapping.Builder,ContainerGroupPortMapping>
-
Method Summary
Modifier and TypeMethodDescriptioncontainerName(String containerName) The name of the container, as defined in the container group definition.containerPortMappings(Collection<ContainerPortMapping> containerPortMappings) A list ofContainerPortMappingobjects that describe the port mappings for this container.containerPortMappings(Consumer<ContainerPortMapping.Builder>... containerPortMappings) A list ofContainerPortMappingobjects that describe the port mappings for this container.containerPortMappings(ContainerPortMapping... containerPortMappings) A list ofContainerPortMappingobjects that describe the port mappings for this container.containerRuntimeId(String containerRuntimeId) The runtime ID for the container that's running in a compute.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
containerName
The name of the container, as defined in the container group definition.
- Parameters:
containerName- The name of the container, as defined in the container group definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerRuntimeId
The runtime ID for the container that's running in a compute. This value is unique within the compute.
- Parameters:
containerRuntimeId- The runtime ID for the container that's running in a compute. This value is unique within the compute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerPortMappings
ContainerGroupPortMapping.Builder containerPortMappings(Collection<ContainerPortMapping> containerPortMappings) A list of
ContainerPortMappingobjects that describe the port mappings for this container.- Parameters:
containerPortMappings- A list ofContainerPortMappingobjects that describe the port mappings for this container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerPortMappings
ContainerGroupPortMapping.Builder containerPortMappings(ContainerPortMapping... containerPortMappings) A list of
ContainerPortMappingobjects that describe the port mappings for this container.- Parameters:
containerPortMappings- A list ofContainerPortMappingobjects that describe the port mappings for this container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerPortMappings
ContainerGroupPortMapping.Builder containerPortMappings(Consumer<ContainerPortMapping.Builder>... containerPortMappings) A list of
This is a convenience method that creates an instance of theContainerPortMappingobjects that describe the port mappings for this container.ContainerPortMapping.Builderavoiding the need to create one manually viaContainerPortMapping.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontainerPortMappings(List<ContainerPortMapping>).- Parameters:
containerPortMappings- a consumer that will call methods onContainerPortMapping.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-