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 OwnerReferenceBuilder
edit()
Map<String,Object>
getAdditionalProperties()
String
getApiVersion()
API version of the referent.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.Boolean
getController()
If true, this reference points to the managing controller.String
getKind()
Kind of the referent.String
getName()
Name of the referent.String
getUid()
UID of the referent.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setApiVersion(String apiVersion)
API version of the referent.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.void
setController(Boolean controller)
If true, this reference points to the managing controller.void
setKind(String kind)
Kind of the referent.void
setName(String name)
Name of the referent.void
setUid(String uid)
UID of the referent.OwnerReferenceBuilder
toBuilder()
-
-
-
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:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<OwnerReferenceBuilder>
-
toBuilder
public OwnerReferenceBuilder toBuilder()
-
-