@Stability(value=Stable) public static final class ExposeDeploymentViaServiceOptions.Builder extends Object implements software.amazon.jsii.Builder<ExposeDeploymentViaServiceOptions>
ExposeDeploymentViaServiceOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ExposeDeploymentViaServiceOptions |
build()
Builds the configured instance.
|
ExposeDeploymentViaServiceOptions.Builder |
name(String name)
Sets the value of
ExposeDeploymentViaServiceOptions.getName() |
ExposeDeploymentViaServiceOptions.Builder |
port(Number port)
Sets the value of
ExposeDeploymentViaServiceOptions.getPort() |
ExposeDeploymentViaServiceOptions.Builder |
protocol(Protocol protocol)
Sets the value of
ExposeDeploymentViaServiceOptions.getProtocol() |
ExposeDeploymentViaServiceOptions.Builder |
serviceType(ServiceType serviceType)
Sets the value of
ExposeDeploymentViaServiceOptions.getServiceType() |
ExposeDeploymentViaServiceOptions.Builder |
targetPort(Number targetPort)
Sets the value of
ExposeDeploymentViaServiceOptions.getTargetPort() |
@Stability(value=Stable) public ExposeDeploymentViaServiceOptions.Builder name(String name)
ExposeDeploymentViaServiceOptions.getName()name - The name of the service to expose.
This will be set on the Service.metadata and must be a DNS_LABELthis@Stability(value=Stable) public ExposeDeploymentViaServiceOptions.Builder port(Number port)
ExposeDeploymentViaServiceOptions.getPort()port - The port that the service should serve on.this@Stability(value=Stable) public ExposeDeploymentViaServiceOptions.Builder protocol(Protocol protocol)
ExposeDeploymentViaServiceOptions.getProtocol()protocol - The IP protocol for this port.
Supports "TCP", "UDP", and "SCTP". Default is TCP.this@Stability(value=Stable) public ExposeDeploymentViaServiceOptions.Builder serviceType(ServiceType serviceType)
ExposeDeploymentViaServiceOptions.getServiceType()serviceType - The type of the exposed service.this@Stability(value=Stable) public ExposeDeploymentViaServiceOptions.Builder targetPort(Number targetPort)
ExposeDeploymentViaServiceOptions.getTargetPort()targetPort - The port number the service will redirect to.this@Stability(value=Stable) public ExposeDeploymentViaServiceOptions build()
build in interface software.amazon.jsii.Builder<ExposeDeploymentViaServiceOptions>ExposeDeploymentViaServiceOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.