@Stability(value=Experimental) public static final class DockerComposeServicePort.Builder extends Object implements software.amazon.jsii.Builder<DockerComposeServicePort>
DockerComposeServicePort| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
DockerComposeServicePort |
build()
Builds the configured instance.
|
DockerComposeServicePort.Builder |
mode(String mode)
Sets the value of
DockerComposeServicePort.getMode() |
DockerComposeServicePort.Builder |
protocol(DockerComposeProtocol protocol)
Sets the value of
DockerComposeServicePort.getProtocol() |
DockerComposeServicePort.Builder |
published(Number published)
Sets the value of
DockerComposeServicePort.getPublished() |
DockerComposeServicePort.Builder |
target(Number target)
Sets the value of
DockerComposeServicePort.getTarget() |
@Stability(value=Experimental) public DockerComposeServicePort.Builder mode(String mode)
DockerComposeServicePort.getMode()mode - Port mapping mode. This parameter is required.this@Stability(value=Experimental) public DockerComposeServicePort.Builder protocol(DockerComposeProtocol protocol)
DockerComposeServicePort.getProtocol()protocol - Network protocol. This parameter is required.this@Stability(value=Experimental) public DockerComposeServicePort.Builder published(Number published)
DockerComposeServicePort.getPublished()published - Published port number. This parameter is required.this@Stability(value=Experimental) public DockerComposeServicePort.Builder target(Number target)
DockerComposeServicePort.getTarget()target - Target port number. This parameter is required.this@Stability(value=Experimental) public DockerComposeServicePort build()
build in interface software.amazon.jsii.Builder<DockerComposeServicePort>DockerComposeServicePortNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.