Class OwnerReference.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • kind

        @Stability(Stable)
        public OwnerReference.Builder kind​(String kind)
        Sets the value of OwnerReference.getKind()
        Parameters:
        kind - Kind of the referent. This parameter is required. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        Returns:
        this
      • name

        @Stability(Stable)
        public OwnerReference.Builder name​(String name)
        Sets the value of OwnerReference.getName()
        Parameters:
        name - Name of the referent. This parameter is required. More info: http://kubernetes.io/docs/user-guide/identifiers#names
        Returns:
        this
      • uid

        @Stability(Stable)
        public OwnerReference.Builder uid​(String uid)
        Sets the value of OwnerReference.getUid()
        Parameters:
        uid - UID of the referent. This parameter is required. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
        Returns:
        this
      • blockOwnerDeletion

        @Stability(Stable)
        public OwnerReference.Builder blockOwnerDeletion​(Boolean blockOwnerDeletion)
        Parameters:
        blockOwnerDeletion - 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:
        this