Class V1ObjectReference
java.lang.Object
io.kubernetes.client.openapi.models.V1ObjectReference
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-18T15:05:57.863601Z[Etc/UTC]")
public class V1ObjectReference
extends Object
ObjectReference contains enough information to let you inspect or modify the referred object.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapiVersion
(String apiVersion) boolean
API 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
toString()
-
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:
-
-
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
-