Class V1ObjectReference
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1ObjectReference
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
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) Set apiVersion in a chainable fashion.boolean
Set fieldPath in a chainable fashion.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()
Set kind in a chainable fashion.Set name in a chainable fashion.Set namespace in a chainable fashion.resourceVersion
(String resourceVersion) Set resourceVersion in a chainable fashion.void
setApiVersion
(String apiVersion) Set the apiVersion property valuevoid
setFieldPath
(String fieldPath) Set the fieldPath property valuevoid
Set the kind property valuevoid
Set the name property valuevoid
setNamespace
(String namespace) Set the namespace property valuevoid
setResourceVersion
(String resourceVersion) Set the resourceVersion property valuevoid
Set the uid property valuetoString()
Set uid in a chainable fashion.
-
Field Details
-
JSON_PROPERTY_API_VERSION
- See Also:
-
JSON_PROPERTY_FIELD_PATH
- See Also:
-
JSON_PROPERTY_KIND
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_NAMESPACE
- See Also:
-
JSON_PROPERTY_RESOURCE_VERSION
- See Also:
-
JSON_PROPERTY_UID
- See Also:
-
-
Constructor Details
-
V1ObjectReference
public V1ObjectReference()
-
-
Method Details
-
getApiVersion
API version of the referent.- Returns:
- the apiVersion property value
-
setApiVersion
Set the apiVersion property value- Parameters:
apiVersion
- property value to set
-
apiVersion
Set apiVersion in a chainable fashion.- Returns:
- The same instance of V1ObjectReference for chaining.
-
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:
- the fieldPath property value
-
setFieldPath
Set the fieldPath property value- Parameters:
fieldPath
- property value to set
-
fieldPath
Set fieldPath in a chainable fashion.- Returns:
- The same instance of V1ObjectReference for chaining.
-
getKind
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Returns:
- the kind property value
-
setKind
Set the kind property value- Parameters:
kind
- property value to set
-
kind
Set kind in a chainable fashion.- Returns:
- The same instance of V1ObjectReference for chaining.
-
getName
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names- Returns:
- the name property value
-
setName
Set the name property value- Parameters:
name
- property value to set
-
name
Set name in a chainable fashion.- Returns:
- The same instance of V1ObjectReference for chaining.
-
getNamespace
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/- Returns:
- the namespace property value
-
setNamespace
Set the namespace property value- Parameters:
namespace
- property value to set
-
namespace
Set namespace in a chainable fashion.- Returns:
- The same instance of V1ObjectReference for chaining.
-
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:
- the resourceVersion property value
-
setResourceVersion
Set the resourceVersion property value- Parameters:
resourceVersion
- property value to set
-
resourceVersion
Set resourceVersion in a chainable fashion.- Returns:
- The same instance of V1ObjectReference for chaining.
-
getUid
UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids- Returns:
- the uid property value
-
setUid
Set the uid property value- Parameters:
uid
- property value to set
-
uid
Set uid in a chainable fashion.- Returns:
- The same instance of V1ObjectReference for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-