Class V1EndpointSlice

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1EndpointSlice

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1EndpointSlice extends Object
EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.
  • Field Details

  • Constructor Details

  • Method Details

    • getAddressType

      public String getAddressType()
      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:
      the addressType property value
    • setAddressType

      public void setAddressType(String addressType)
      Set the addressType property value
    • addressType

      public V1EndpointSlice addressType(String addressType)
      Set addressType in a chainable fashion.
      Returns:
      The same instance of V1EndpointSlice for chaining.
    • getApiVersion

      public String getApiVersion()
      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:
      the apiVersion property value
    • setApiVersion

      public void setApiVersion(String apiVersion)
      Set the apiVersion property value
    • apiVersion

      public V1EndpointSlice apiVersion(String apiVersion)
      Set apiVersion in a chainable fashion.
      Returns:
      The same instance of V1EndpointSlice for chaining.
    • getEndpoints

      public List<@Valid V1Endpoint> getEndpoints()
      endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.
      Returns:
      the endpoints property value
    • setEndpoints

      public void setEndpoints(List<@Valid V1Endpoint> endpoints)
      Set the endpoints property value
    • endpoints

      public V1EndpointSlice endpoints(List<@Valid V1Endpoint> endpoints)
      Set endpoints in a chainable fashion.
      Returns:
      The same instance of V1EndpointSlice for chaining.
    • addendpointsItem

      public V1EndpointSlice addendpointsItem(V1Endpoint endpointsItem)
      Add an item to the endpoints property in a chainable fashion.
      Returns:
      The same instance of V1EndpointSlice for chaining.
    • getKind

      public String getKind()
      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:
      the kind property value
    • setKind

      public void setKind(String kind)
      Set the kind property value
    • kind

      public V1EndpointSlice kind(String kind)
      Set kind in a chainable fashion.
      Returns:
      The same instance of V1EndpointSlice for chaining.
    • getMetadata

      public V1ObjectMeta getMetadata()
      Returns:
      the metadata property value
    • setMetadata

      public void setMetadata(V1ObjectMeta metadata)
      Set the metadata property value
    • metadata

      public V1EndpointSlice metadata(V1ObjectMeta metadata)
      Set metadata in a chainable fashion.
      Returns:
      The same instance of V1EndpointSlice for chaining.
    • getPorts

      public List<@Valid DiscoveryV1EndpointPort> getPorts()
      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 \"all ports\". Each slice may include a maximum of 100 ports.
      Returns:
      the ports property value
    • setPorts

      public void setPorts(List<@Valid DiscoveryV1EndpointPort> ports)
      Set the ports property value
    • ports

      public V1EndpointSlice ports(List<@Valid DiscoveryV1EndpointPort> ports)
      Set ports in a chainable fashion.
      Returns:
      The same instance of V1EndpointSlice for chaining.
    • addportsItem

      public V1EndpointSlice addportsItem(DiscoveryV1EndpointPort portsItem)
      Add an item to the ports property in a chainable fashion.
      Returns:
      The same instance of V1EndpointSlice for chaining.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object