Package org.cdk8s.plus20
Interface ServicePort
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,ServicePortOptions
- All Known Implementing Classes:
ServicePort.Jsii$Proxy
@Generated(value="jsii-pacmak/1.57.0 (build f614666)", date="2022-04-26T09:02:10.554Z") @Stability(Stable) public interface ServicePort extends software.amazon.jsii.JsiiSerializable, ServicePortOptions
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.plus20.ServicePortOptions
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
-
-