Class V1CustomResourceDefinitionNames

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1CustomResourceDefinitionNames extends Object
CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition
  • Field Details

  • Constructor Details

    • V1CustomResourceDefinitionNames

      public V1CustomResourceDefinitionNames(String kind, String plural)
  • Method Details

    • getKind

      public String getKind()
      kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.
      Returns:
      the kind property value
    • setKind

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

      Set kind in a chainable fashion.
      Returns:
      The same instance of V1CustomResourceDefinitionNames for chaining.
    • getPlural

      public String getPlural()
      plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase.
      Returns:
      the plural property value
    • setPlural

      public void setPlural(String plural)
      Set the plural property value
      Parameters:
      plural - property value to set
    • plural

      public V1CustomResourceDefinitionNames plural(String plural)
      Set plural in a chainable fashion.
      Returns:
      The same instance of V1CustomResourceDefinitionNames for chaining.
    • getCategories

      public List<@NotNull String> getCategories()
      categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.
      Returns:
      the categories property value
    • setCategories

      public void setCategories(List<@NotNull String> categories)
      Set the categories property value
      Parameters:
      categories - property value to set
    • categories

      public V1CustomResourceDefinitionNames categories(List<@NotNull String> categories)
      Set categories in a chainable fashion.
      Returns:
      The same instance of V1CustomResourceDefinitionNames for chaining.
    • addcategoriesItem

      public V1CustomResourceDefinitionNames addcategoriesItem(String categoriesItem)
      Add an item to the categories property in a chainable fashion.
      Returns:
      The same instance of V1CustomResourceDefinitionNames for chaining.
    • getListKind

      public String getListKind()
      listKind is the serialized kind of the list for this resource. Defaults to \"`kind`List\".
      Returns:
      the listKind property value
    • setListKind

      public void setListKind(String listKind)
      Set the listKind property value
      Parameters:
      listKind - property value to set
    • listKind

      public V1CustomResourceDefinitionNames listKind(String listKind)
      Set listKind in a chainable fashion.
      Returns:
      The same instance of V1CustomResourceDefinitionNames for chaining.
    • getShortNames

      public List<@NotNull String> getShortNames()
      shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase.
      Returns:
      the shortNames property value
    • setShortNames

      public void setShortNames(List<@NotNull String> shortNames)
      Set the shortNames property value
      Parameters:
      shortNames - property value to set
    • shortNames

      public V1CustomResourceDefinitionNames shortNames(List<@NotNull String> shortNames)
      Set shortNames in a chainable fashion.
      Returns:
      The same instance of V1CustomResourceDefinitionNames for chaining.
    • addshortNamesItem

      public V1CustomResourceDefinitionNames addshortNamesItem(String shortNamesItem)
      Add an item to the shortNames property in a chainable fashion.
      Returns:
      The same instance of V1CustomResourceDefinitionNames for chaining.
    • getSingular

      public String getSingular()
      singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
      Returns:
      the singular property value
    • setSingular

      public void setSingular(String singular)
      Set the singular property value
      Parameters:
      singular - property value to set
    • singular

      public V1CustomResourceDefinitionNames singular(String singular)
      Set singular in a chainable fashion.
      Returns:
      The same instance of V1CustomResourceDefinitionNames 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