Class V2beta1APIGroupDiscovery

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V2beta1APIGroupDiscovery
All Implemented Interfaces:
KubernetesObject, KubernetesType

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V2beta1APIGroupDiscovery extends Object implements KubernetesObject
APIGroupDiscovery holds information about which resources are being served for all version of the API Group. It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. Versions are in descending order of preference, with the first version being the preferred entry.
  • Field Details

  • Constructor Details

    • V2beta1APIGroupDiscovery

      public V2beta1APIGroupDiscovery()
  • Method Details

    • getApiVersion

      public String getApiVersion()
      Description copied from interface: KubernetesType
      Gets api version.

      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: Resources

      Specified by:
      getApiVersion in interface KubernetesType
      Returns:
      the apiVersion property value
    • setApiVersion

      public void setApiVersion(String apiVersion)
      Set the apiVersion property value
      Parameters:
      apiVersion - property value to set
    • apiVersion

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

      public String getKind()
      Description copied from interface: KubernetesType
      Gets 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: Types (Kinds)

      Specified by:
      getKind in interface KubernetesType
      Returns:
      the kind property value
    • setKind

      public void setKind(String kind)
      Set the kind property value
      Parameters:
      kind - property value to set
    • kind

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

      public V1ObjectMeta getMetadata()
      Description copied from interface: KubernetesObject
      Gets metadata.

      ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

      Specified by:
      getMetadata in interface KubernetesObject
      Returns:
      the metadata property value
    • setMetadata

      public void setMetadata(V1ObjectMeta metadata)
      Set the metadata property value
      Parameters:
      metadata - property value to set
    • metadata

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

      public List<@Valid V2beta1APIVersionDiscovery> getVersions()
      Returns:
      the versions property value
    • setVersions

      public void setVersions(List<@Valid V2beta1APIVersionDiscovery> versions)
      Set the versions property value
      Parameters:
      versions - property value to set
    • versions

      public V2beta1APIGroupDiscovery versions(List<@Valid V2beta1APIVersionDiscovery> versions)
      Set versions in a chainable fashion.
      Returns:
      The same instance of V2beta1APIGroupDiscovery for chaining.
    • addVersionsItem

      public V2beta1APIGroupDiscovery addVersionsItem(V2beta1APIVersionDiscovery versionsItem)
      Add an item to the versions property in a chainable fashion.
      Returns:
      The same instance of V2beta1APIGroupDiscovery 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