Class V1alpha2ResourceClaimStatus
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha2ResourceClaimStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-04-23T13:45:09.091597Z[Etc/UTC]")
public class V1alpha2ResourceClaimStatus
extends Object
ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddReservedForItem
(V1alpha2ResourceClaimConsumerReference reservedForItem) allocation
(V1alpha2AllocationResult allocation) deallocationRequested
(Boolean deallocationRequested) driverName
(String driverName) boolean
static V1alpha2ResourceClaimStatus
Create an instance of V1alpha2ResourceClaimStatus given an JSON stringGet allocationDeallocationRequested indicates that a ResourceClaim is to be deallocated.DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.ReservedFor indicates which entities are currently allowed to use the claim.int
hashCode()
reservedFor
(List<V1alpha2ResourceClaimConsumerReference> reservedFor) void
setAllocation
(V1alpha2AllocationResult allocation) void
setDeallocationRequested
(Boolean deallocationRequested) void
setDriverName
(String driverName) void
setReservedFor
(List<V1alpha2ResourceClaimConsumerReference> reservedFor) toJson()
Convert an instance of V1alpha2ResourceClaimStatus 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_ALLOCATION
- See Also:
-
SERIALIZED_NAME_DEALLOCATION_REQUESTED
- See Also:
-
SERIALIZED_NAME_DRIVER_NAME
- See Also:
-
SERIALIZED_NAME_RESERVED_FOR
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha2ResourceClaimStatus
public V1alpha2ResourceClaimStatus()
-
-
Method Details
-
allocation
-
getAllocation
Get allocation- Returns:
- allocation
-
setAllocation
-
deallocationRequested
-
getDeallocationRequested
DeallocationRequested indicates that a ResourceClaim is to be deallocated. The driver then must deallocate this claim and reset the field together with clearing the Allocation field. While DeallocationRequested is set, no new consumers may be added to ReservedFor.- Returns:
- deallocationRequested
-
setDeallocationRequested
-
driverName
-
getDriverName
DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.- Returns:
- driverName
-
setDriverName
-
reservedFor
public V1alpha2ResourceClaimStatus reservedFor(List<V1alpha2ResourceClaimConsumerReference> reservedFor) -
addReservedForItem
public V1alpha2ResourceClaimStatus addReservedForItem(V1alpha2ResourceClaimConsumerReference reservedForItem) -
getReservedFor
ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. There can be at most 32 such reservations. This may get increased in the future, but not reduced.- Returns:
- reservedFor
-
setReservedFor
-
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 V1alpha2ResourceClaimStatus
-
fromJson
Create an instance of V1alpha2ResourceClaimStatus given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1alpha2ResourceClaimStatus
- Throws:
IOException
- if the JSON string is invalid with respect to V1alpha2ResourceClaimStatus
-
toJson
Convert an instance of V1alpha2ResourceClaimStatus to an JSON string- Returns:
- JSON string
-