Package org.cdk8s.plus25
Interface ServicePort
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,ServiceBindOptions
- All Known Implementing Classes:
ServicePort.Jsii$Proxy
@Generated(value="jsii-pacmak/1.88.0 (build eaabd08)", date="2023-09-11T06:17:58.432Z") @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 classServicePort.BuilderA builder forServicePortstatic classServicePort.Jsii$ProxyAn implementation forServicePort
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ServicePort.Builderbuilder()NumbergetPort()The port number the service will bind to.-
Methods inherited from interface org.cdk8s.plus25.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.BuilderofServicePort
-
-