Class V1TypedObjectReference
java.lang.Object
io.kubernetes.client.openapi.models.V1TypedObjectReference
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-05-20T20:47:13.890592Z[Etc/UTC]",
comments="Generator version: 7.13.0")
public class V1TypedObjectReference
extends Object
TypedObjectReference contains enough information to let you locate the typed referenced object
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic V1TypedObjectReferenceCreate an instance of V1TypedObjectReference given an JSON stringAPIGroup is the group for the resource being referenced.getKind()Kind is the type of resource being referencedgetName()Name is the name of resource being referencedNamespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference.inthashCode()voidsetApiGroup(String apiGroup) voidvoidvoidsetNamespace(String namespace) toJson()Convert an instance of V1TypedObjectReference to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_API_GROUP
- See Also:
-
SERIALIZED_NAME_KIND
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NAMESPACE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1TypedObjectReference
public V1TypedObjectReference()
-
-
Method Details
-
apiGroup
-
getApiGroup
APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.- Returns:
- apiGroup
-
setApiGroup
-
kind
-
getKind
Kind is the type of resource being referenced- Returns:
- kind
-
setKind
-
name
-
getName
Name is the name of resource being referenced- Returns:
- name
-
setName
-
namespace
-
getNamespace
Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.- Returns:
- namespace
-
setNamespace
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to V1TypedObjectReference
-
fromJson
Create an instance of V1TypedObjectReference given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1TypedObjectReference
- Throws:
IOException- if the JSON string is invalid with respect to V1TypedObjectReference
-
toJson
Convert an instance of V1TypedObjectReference to an JSON string- Returns:
- JSON string
-