Package org.cdk8s.plus24
Interface ServicePort
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,ServiceBindOptions
- All Known Implementing Classes:
ServicePort.Jsii$Proxy
@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-10-29T02:53:54.182Z") @Stability(Stable) public interface ServicePort extends software.amazon.jsii.JsiiSerializable, ServiceBindOptions
Definition of a service port.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ServicePort.Builder
A builder forServicePort
static class
ServicePort.Jsii$Proxy
An implementation forServicePort
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ServicePort.Builder
builder()
Number
getPort()
The port number the service will bind to.-
Methods inherited from interface org.cdk8s.plus24.ServiceBindOptions
getName, getNodePort, getProtocol, getTargetPort
-
-
-
-
Method Detail
-
getPort
@Stability(Stable) @NotNull Number getPort()
The port number the service will bind to.
-
builder
@Stability(Stable) static ServicePort.Builder builder()
- Returns:
- a
ServicePort.Builder
ofServicePort
-
-