@CustomType.Setter
        public Builder ports(@Nullable List<EndpointPort> ports) {

            this.ports = ports;
            return this;
        }
@return ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates &#34;all ports&#34;. Each slice may include a maximum of 100 ports.
sdk/java/src/main/java/com/pulumi/kubernetes/discovery/v1beta1/outputs/EndpointSlice.java