Class V1AllocationResult
java.lang.Object
io.kubernetes.client.openapi.models.V1AllocationResult
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-09-11T18:00:16.154662Z[Etc/UTC]",
comments="Generator version: 7.13.0")
public class V1AllocationResult
extends Object
AllocationResult contains attributes of an allocated resource.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocationTimestamp(OffsetDateTime allocationTimestamp) devices(V1DeviceAllocationResult devices) booleanstatic V1AllocationResultCreate an instance of V1AllocationResult given an JSON stringAllocationTimestamp stores the time when the resources were allocated.Get devicesGet nodeSelectorinthashCode()nodeSelector(V1NodeSelector nodeSelector) voidsetAllocationTimestamp(OffsetDateTime allocationTimestamp) voidsetDevices(V1DeviceAllocationResult devices) voidsetNodeSelector(V1NodeSelector nodeSelector) toJson()Convert an instance of V1AllocationResult 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_ALLOCATION_TIMESTAMP
- See Also:
-
SERIALIZED_NAME_DEVICES
- See Also:
-
SERIALIZED_NAME_NODE_SELECTOR
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1AllocationResult
public V1AllocationResult()
-
-
Method Details
-
allocationTimestamp
-
getAllocationTimestamp
AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.- Returns:
- allocationTimestamp
-
setAllocationTimestamp
-
devices
-
getDevices
Get devices- Returns:
- devices
-
setDevices
-
nodeSelector
-
getNodeSelector
Get nodeSelector- Returns:
- nodeSelector
-
setNodeSelector
-
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 V1AllocationResult
-
fromJson
Create an instance of V1AllocationResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of V1AllocationResult
- Throws:
IOException- if the JSON string is invalid with respect to V1AllocationResult
-
toJson
Convert an instance of V1AllocationResult to an JSON string- Returns:
- JSON string
-