Class V1OwnerReference
java.lang.Object
io.kubernetes.client.openapi.models.V1OwnerReference
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiVersion
(String apiVersion) blockOwnerDeletion
(Boolean blockOwnerDeletion) controller
(Boolean controller) boolean
static V1OwnerReference
Create an instance of V1OwnerReference given an JSON stringAPI version of the referent.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.If true, this reference points to the managing controller.getKind()
Kind of the referent.getName()
Name of the referent.getUid()
UID of the referent.int
hashCode()
void
setApiVersion
(String apiVersion) void
setBlockOwnerDeletion
(Boolean blockOwnerDeletion) void
setController
(Boolean controller) void
void
void
toJson()
Convert an instance of V1OwnerReference to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_API_VERSION
- See Also:
-
SERIALIZED_NAME_BLOCK_OWNER_DELETION
- See Also:
-
SERIALIZED_NAME_CONTROLLER
- See Also:
-
SERIALIZED_NAME_KIND
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_UID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1OwnerReference
public V1OwnerReference()
-
-
Method Details
-
apiVersion
-
getApiVersion
API version of the referent.- Returns:
- apiVersion
-
setApiVersion
-
blockOwnerDeletion
-
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:
- blockOwnerDeletion
-
setBlockOwnerDeletion
-
controller
-
getController
If true, this reference points to the managing controller.- Returns:
- controller
-
setController
-
kind
-
getKind
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Returns:
- kind
-
setKind
-
name
-
getName
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names- Returns:
- name
-
setName
-
uid
-
getUid
UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids- Returns:
- uid
-
setUid
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1OwnerReference
-
fromJson
Create an instance of V1OwnerReference given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1OwnerReference
- Throws:
IOException
- if the JSON string is invalid with respect to V1OwnerReference
-
toJson
Convert an instance of V1OwnerReference to an JSON string- Returns:
- JSON string
-