Class V1ObjectReference
java.lang.Object
io.kubernetes.client.openapi.models.V1ObjectReference
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1ObjectReference
extends Object
ObjectReference contains enough information to let you inspect or modify the referred object.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiVersion
(String apiVersion) boolean
static V1ObjectReference
Create an instance of V1ObjectReference given an JSON stringAPI version of the referent.If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].getKind()
Kind of the referent.getName()
Name of the referent.Namespace of the referent.Specific resourceVersion to which this reference is made, if any.getUid()
UID of the referent.int
hashCode()
resourceVersion
(String resourceVersion) void
setApiVersion
(String apiVersion) void
setFieldPath
(String fieldPath) void
void
void
setNamespace
(String namespace) void
setResourceVersion
(String resourceVersion) void
toJson()
Convert an instance of V1ObjectReference to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_API_VERSION
- See Also:
-
SERIALIZED_NAME_FIELD_PATH
- See Also:
-
SERIALIZED_NAME_KIND
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NAMESPACE
- See Also:
-
SERIALIZED_NAME_RESOURCE_VERSION
- See Also:
-
SERIALIZED_NAME_UID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1ObjectReference
public V1ObjectReference()
-
-
Method Details
-
apiVersion
-
getApiVersion
API version of the referent.- Returns:
- apiVersion
-
setApiVersion
-
fieldPath
-
getFieldPath
If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.- Returns:
- fieldPath
-
setFieldPath
-
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
-
namespace
-
getNamespace
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/- Returns:
- namespace
-
setNamespace
-
resourceVersion
-
getResourceVersion
Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency- Returns:
- resourceVersion
-
setResourceVersion
-
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
-
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 V1ObjectReference
-
fromJson
Create an instance of V1ObjectReference given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1ObjectReference
- Throws:
IOException
- if the JSON string is invalid with respect to V1ObjectReference
-
toJson
Convert an instance of V1ObjectReference to an JSON string- Returns:
- JSON string
-