@Stability(value=Stable) public static final class AddDeploymentOptions.Builder extends Object implements software.amazon.jsii.Builder<AddDeploymentOptions>
AddDeploymentOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
AddDeploymentOptions |
build()
Builds the configured instance.
|
AddDeploymentOptions.Builder |
name(String name)
Sets the value of
ServicePortOptions.getName() |
AddDeploymentOptions.Builder |
nodePort(Number nodePort)
Sets the value of
ServicePortOptions.getNodePort() |
AddDeploymentOptions.Builder |
port(Number port)
Sets the value of
AddDeploymentOptions.getPort() |
AddDeploymentOptions.Builder |
protocol(Protocol protocol)
Sets the value of
ServicePortOptions.getProtocol() |
AddDeploymentOptions.Builder |
targetPort(Number targetPort)
Sets the value of
ServicePortOptions.getTargetPort() |
@Stability(value=Stable) public AddDeploymentOptions.Builder port(Number port)
AddDeploymentOptions.getPort()port - The port number the service will bind to.this@Stability(value=Stable) public AddDeploymentOptions.Builder name(String name)
ServicePortOptions.getName()name - The name of this port within the service.
This must be a DNS_LABEL. All
ports within a ServiceSpec must have unique names. This maps to the 'Name'
field in EndpointPort objects. Optional if only one ServicePort is defined
on this service.this@Stability(value=Stable) public AddDeploymentOptions.Builder nodePort(Number nodePort)
ServicePortOptions.getNodePort()nodePort - The port on each node on which this service is exposed when type=NodePort or LoadBalancer.
Usually assigned by the system. If specified, it will be
allocated to the service if unused or else creation of the service will
fail. Default is to auto-allocate a port if the ServiceType of this Service
requires one.this@Stability(value=Stable) public AddDeploymentOptions.Builder protocol(Protocol protocol)
ServicePortOptions.getProtocol()protocol - The IP protocol for this port.
Supports "TCP", "UDP", and "SCTP". Default is TCP.this@Stability(value=Stable) public AddDeploymentOptions.Builder targetPort(Number targetPort)
ServicePortOptions.getTargetPort()targetPort - The port number the service will redirect to.this@Stability(value=Stable) public AddDeploymentOptions build()
build in interface software.amazon.jsii.Builder<AddDeploymentOptions>AddDeploymentOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.