public EndpointPortArgs build() {
            if ($.port == null) {
                throw new MissingRequiredPropertyException("EndpointPortArgs", "port");
            }
            return $;
        }
@param protocol The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.

@return builder
sdk/java/src/main/java/com/pulumi/kubernetes/core/v1/inputs/EndpointPortArgs.java