public Optional<Integer> hostPort() {
        return Optional.ofNullable(this.hostPort);
    }
@return Number of port to expose on the host. If specified, this must be a valid port number, 0 &lt; x &lt; 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.
sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/outputs/ContainerPort.java