Class V1alpha2ResourceClaimStatus
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1alpha2ResourceClaimStatus
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1alpha2ResourceClaimStatus
extends Object
ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddreservedForItem
(V1alpha2ResourceClaimConsumerReference reservedForItem) Add an item to the reservedFor property in a chainable fashion.allocation
(V1alpha2AllocationResult allocation) Set allocation in a chainable fashion.deallocationRequested
(Boolean deallocationRequested) Set deallocationRequested in a chainable fashion.driverName
(String driverName) Set driverName in a chainable fashion.boolean
DeallocationRequested 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<@Valid V1alpha2ResourceClaimConsumerReference> reservedFor) Set reservedFor in a chainable fashion.void
setAllocation
(V1alpha2AllocationResult allocation) Set the allocation property valuevoid
setDeallocationRequested
(Boolean deallocationRequested) Set the deallocationRequested property valuevoid
setDriverName
(String driverName) Set the driverName property valuevoid
setReservedFor
(List<@Valid V1alpha2ResourceClaimConsumerReference> reservedFor) Set the reservedFor property valuetoString()
-
Field Details
-
JSON_PROPERTY_ALLOCATION
- See Also:
-
JSON_PROPERTY_DEALLOCATION_REQUESTED
- See Also:
-
JSON_PROPERTY_DRIVER_NAME
- See Also:
-
JSON_PROPERTY_RESERVED_FOR
- See Also:
-
-
Constructor Details
-
V1alpha2ResourceClaimStatus
public V1alpha2ResourceClaimStatus()
-
-
Method Details
-
getAllocation
- Returns:
- the allocation property value
-
setAllocation
Set the allocation property value -
allocation
Set allocation in a chainable fashion.- Returns:
- The same instance of V1alpha2ResourceClaimStatus for chaining.
-
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:
- the deallocationRequested property value
-
setDeallocationRequested
Set the deallocationRequested property value -
deallocationRequested
Set deallocationRequested in a chainable fashion.- Returns:
- The same instance of V1alpha2ResourceClaimStatus for chaining.
-
getDriverName
DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.- Returns:
- the driverName property value
-
setDriverName
Set the driverName property value -
driverName
Set driverName in a chainable fashion.- Returns:
- The same instance of V1alpha2ResourceClaimStatus for chaining.
-
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:
- the reservedFor property value
-
setReservedFor
Set the reservedFor property value -
reservedFor
public V1alpha2ResourceClaimStatus reservedFor(List<@Valid V1alpha2ResourceClaimConsumerReference> reservedFor) Set reservedFor in a chainable fashion.- Returns:
- The same instance of V1alpha2ResourceClaimStatus for chaining.
-
addreservedForItem
public V1alpha2ResourceClaimStatus addreservedForItem(V1alpha2ResourceClaimConsumerReference reservedForItem) Add an item to the reservedFor property in a chainable fashion.- Returns:
- The same instance of V1alpha2ResourceClaimStatus for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-