Class V1PodResourceClaim
java.lang.Object
io.kubernetes.client.openapi.models.V1PodResourceClaim
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1PodResourceClaim
extends Object
PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static V1PodResourceClaim
Create an instance of V1PodResourceClaim given an JSON stringgetName()
Name uniquely identifies this resource claim inside the pod.Get sourceint
hashCode()
void
void
setSource
(V1ClaimSource source) source
(V1ClaimSource source) toJson()
Convert an instance of V1PodResourceClaim to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_SOURCE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1PodResourceClaim
public V1PodResourceClaim()
-
-
Method Details
-
name
-
getName
Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.- Returns:
- name
-
setName
-
source
-
getSource
Get source- Returns:
- source
-
setSource
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1PodResourceClaim
-
fromJson
Create an instance of V1PodResourceClaim given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1PodResourceClaim
- Throws:
IOException
- if the JSON string is invalid with respect to V1PodResourceClaim
-
toJson
Convert an instance of V1PodResourceClaim to an JSON string- Returns:
- JSON string
-