@Stability(value=Stable) public static final class ExposeOptions.Builder extends Object implements software.amazon.jsii.Builder<ExposeOptions>
ExposeOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ExposeOptions |
build()
Builds the configured instance.
|
ExposeOptions.Builder |
name(String name)
Sets the value of
ExposeOptions.getName() |
ExposeOptions.Builder |
protocol(Protocol protocol)
Sets the value of
ExposeOptions.getProtocol() |
ExposeOptions.Builder |
serviceType(ServiceType serviceType)
Sets the value of
ExposeOptions.getServiceType() |
ExposeOptions.Builder |
targetPort(Number targetPort)
Sets the value of
ExposeOptions.getTargetPort() |
@Stability(value=Stable) public ExposeOptions.Builder name(String name)
ExposeOptions.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 ExposeOptions.Builder protocol(Protocol protocol)
ExposeOptions.getProtocol()protocol - The IP protocol for this port.
Supports "TCP", "UDP", and "SCTP". Default is TCP.this@Stability(value=Stable) public ExposeOptions.Builder serviceType(ServiceType serviceType)
ExposeOptions.getServiceType()serviceType - The type of the exposed service.this@Stability(value=Stable) public ExposeOptions.Builder targetPort(Number targetPort)
ExposeOptions.getTargetPort()targetPort - The port number the service will redirect to.this@Stability(value=Stable) public ExposeOptions build()
build in interface software.amazon.jsii.Builder<ExposeOptions>ExposeOptionsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.