Class V2CrossVersionObjectReference
java.lang.Object
io.kubernetes.client.openapi.models.V2CrossVersionObjectReference
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V2CrossVersionObjectReference
extends Object
CrossVersionObjectReference contains enough information to let you identify the referred resource.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiVersion(String apiVersion) booleanCreate an instance of V2CrossVersionObjectReference given an JSON stringapiVersion is the API version of the referentgetKind()kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kindsgetName()name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#namesinthashCode()voidsetApiVersion(String apiVersion) voidvoidtoJson()Convert an instance of V2CrossVersionObjectReference 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_VERSION
- See Also:
-
SERIALIZED_NAME_KIND
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V2CrossVersionObjectReference
public V2CrossVersionObjectReference()
-
-
Method Details
-
apiVersion
-
getApiVersion
apiVersion is the API version of the referent- Returns:
- apiVersion
-
setApiVersion
-
kind
-
getKind
kind is the 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 is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names- Returns:
- name
-
setName
-
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 V2CrossVersionObjectReference
-
fromJson
Create an instance of V2CrossVersionObjectReference given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V2CrossVersionObjectReference
- Throws:
IOException- if the JSON string is invalid with respect to V2CrossVersionObjectReference
-
toJson
Convert an instance of V2CrossVersionObjectReference to an JSON string- Returns:
- JSON string
-