Package io.fabric8.kubernetes.api.model
Class OwnerReference
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.OwnerReference
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<OwnerReferenceBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class OwnerReference extends Object implements io.fabric8.kubernetes.api.builder.Editable<OwnerReferenceBuilder>, KubernetesResource
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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OwnerReference()No args constructor for use in serializationOwnerReference(String apiVersion, Boolean blockOwnerDeletion, Boolean controller, String kind, String name, String uid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OwnerReferenceBuilderedit()Map<String,Object>getAdditionalProperties()StringgetApiVersion()API version of the referent.BooleangetBlockOwnerDeletion()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.BooleangetController()If true, this reference points to the managing controller.StringgetKind()Kind of the referent.StringgetName()Name of the referent.StringgetUid()UID of the referent.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetApiVersion(String apiVersion)API version of the referent.voidsetBlockOwnerDeletion(Boolean 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.voidsetController(Boolean controller)If true, this reference points to the managing controller.voidsetKind(String kind)Kind of the referent.voidsetName(String name)Name of the referent.voidsetUid(String uid)UID of the referent.OwnerReferenceBuildertoBuilder()
-
-
-
Method Detail
-
getApiVersion
public String getApiVersion()
API version of the referent.
-
setApiVersion
public void setApiVersion(String apiVersion)
API version of the referent.
-
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.
-
setBlockOwnerDeletion
public void setBlockOwnerDeletion(Boolean 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.
-
getController
public Boolean getController()
If true, this reference points to the managing controller.
-
setController
public void setController(Boolean controller)
If true, this reference points to the managing controller.
-
getKind
public String getKind()
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
setKind
public void setKind(String kind)
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
getName
public String getName()
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
-
setName
public void setName(String name)
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
-
getUid
public String getUid()
UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
-
setUid
public void setUid(String uid)
UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
-
edit
public OwnerReferenceBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<OwnerReferenceBuilder>
-
toBuilder
public OwnerReferenceBuilder toBuilder()
-
-