Class EndpointSlice.Builder

  • Enclosing class:
    EndpointSlice

    public static class EndpointSlice.Builder
    extends java.lang.Object
    • Method Detail

      • addressType

        public EndpointSlice.Builder addressType​(@NonNull
                                                 @NonNull java.lang.String addressType)
        addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.
        Returns:
        this.
      • apiVersion

        public EndpointSlice.Builder apiVersion​(java.lang.String apiVersion)
        APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
        Returns:
        this.
      • kind

        public EndpointSlice.Builder kind​(java.lang.String kind)
        Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        Returns:
        this.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object