Class OwnerReference
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.apimachinery.pkg.apis.meta.v1.OwnerReference
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class OwnerReference extends java.lang.Object implements com.marcnuri.yakc.model.Model
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OwnerReference.Builder
-
Constructor Summary
Constructors Constructor Description OwnerReference()
OwnerReference(@NonNull java.lang.String apiVersion, java.lang.Boolean blockOwnerDeletion, java.lang.Boolean controller, @NonNull java.lang.String kind, @NonNull java.lang.String name, @NonNull java.lang.String uid)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OwnerReference.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.lang.String
getApiVersion()
API version of the referent.java.lang.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.java.lang.Boolean
getController()
If true, this reference points to the managing controller.@NonNull java.lang.String
getKind()
Kind of the referent.@NonNull java.lang.String
getName()
Name of the referent.@NonNull java.lang.String
getUid()
UID of the referent.int
hashCode()
void
setApiVersion(@NonNull java.lang.String apiVersion)
API version of the referent.void
setBlockOwnerDeletion(java.lang.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(java.lang.Boolean controller)
If true, this reference points to the managing controller.void
setKind(@NonNull java.lang.String kind)
Kind of the referent.void
setName(@NonNull java.lang.String name)
Name of the referent.void
setUid(@NonNull java.lang.String uid)
UID of the referent.OwnerReference.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
OwnerReference
public OwnerReference(@NonNull @NonNull java.lang.String apiVersion, java.lang.Boolean blockOwnerDeletion, java.lang.Boolean controller, @NonNull @NonNull java.lang.String kind, @NonNull @NonNull java.lang.String name, @NonNull @NonNull java.lang.String uid)
-
OwnerReference
public OwnerReference()
-
-
Method Detail
-
builder
public static OwnerReference.Builder builder()
-
toBuilder
public OwnerReference.Builder toBuilder()
-
getApiVersion
@NonNull public @NonNull java.lang.String getApiVersion()
API version of the referent.
-
getBlockOwnerDeletion
public java.lang.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. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.
-
getController
public java.lang.Boolean getController()
If true, this reference points to the managing controller.
-
getKind
@NonNull public @NonNull java.lang.String getKind()
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
getName
@NonNull public @NonNull java.lang.String getName()
Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
-
getUid
@NonNull public @NonNull java.lang.String getUid()
UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
-
setApiVersion
public void setApiVersion(@NonNull @NonNull java.lang.String apiVersion)
API version of the referent.
-
setBlockOwnerDeletion
public void setBlockOwnerDeletion(java.lang.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. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.
-
setController
public void setController(java.lang.Boolean controller)
If true, this reference points to the managing controller.
-
setKind
public void setKind(@NonNull @NonNull java.lang.String kind)
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
setName
public void setName(@NonNull @NonNull java.lang.String name)
Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
-
setUid
public void setUid(@NonNull @NonNull java.lang.String uid)
UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-