Class V1OwnerReference

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

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1OwnerReference extends Object
OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.
  • Field Details

  • Constructor Details

  • Method Details

    • getApiVersion

      public String getApiVersion()
      API version of the referent.
      Returns:
      the apiVersion property value
    • setApiVersion

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

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

      public String getKind()
      Kind of the referent. 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
      Parameters:
      kind - property value to set
    • kind

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

      public String getName()
      Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
      Returns:
      the name property value
    • setName

      public void setName(String name)
      Set the name property value
      Parameters:
      name - property value to set
    • name

      public V1OwnerReference name(String name)
      Set name in a chainable fashion.
      Returns:
      The same instance of V1OwnerReference for chaining.
    • getUid

      public String getUid()
      UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
      Returns:
      the uid property value
    • setUid

      public void setUid(String uid)
      Set the uid property value
      Parameters:
      uid - property value to set
    • uid

      public V1OwnerReference uid(String uid)
      Set uid in a chainable fashion.
      Returns:
      The same instance of V1OwnerReference for chaining.
    • getBlockOwnerDeletion

      public Boolean getBlockOwnerDeletion()
      If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.
      Returns:
      the blockOwnerDeletion property value
    • setBlockOwnerDeletion

      public void setBlockOwnerDeletion(Boolean blockOwnerDeletion)
      Set the blockOwnerDeletion property value
      Parameters:
      blockOwnerDeletion - property value to set
    • blockOwnerDeletion

      public V1OwnerReference blockOwnerDeletion(Boolean blockOwnerDeletion)
      Set blockOwnerDeletion in a chainable fashion.
      Returns:
      The same instance of V1OwnerReference for chaining.
    • getController

      public Boolean getController()
      If true, this reference points to the managing controller.
      Returns:
      the controller property value
    • setController

      public void setController(Boolean controller)
      Set the controller property value
      Parameters:
      controller - property value to set
    • controller

      public V1OwnerReference controller(Boolean controller)
      Set controller in a chainable fashion.
      Returns:
      The same instance of V1OwnerReference 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