Class ResourceClaimStatus
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.resource.v1alpha2.ResourceClaimStatus
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class ResourceClaimStatus extends java.lang.Object implements com.marcnuri.yakc.model.Model
ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResourceClaimStatus.Builder
-
Constructor Summary
Constructors Constructor Description ResourceClaimStatus()
ResourceClaimStatus(AllocationResult allocation, java.lang.Boolean deallocationRequested, java.lang.String driverName, java.util.List<ResourceClaimConsumerReference> reservedFor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceClaimStatus.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
AllocationResult
getAllocation()
java.lang.Boolean
getDeallocationRequested()
DeallocationRequested indicates that a ResourceClaim is to be deallocated.java.lang.String
getDriverName()
DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.java.util.List<ResourceClaimConsumerReference>
getReservedFor()
ReservedFor indicates which entities are currently allowed to use the claim.int
hashCode()
void
setAllocation(AllocationResult allocation)
void
setDeallocationRequested(java.lang.Boolean deallocationRequested)
DeallocationRequested indicates that a ResourceClaim is to be deallocated.void
setDriverName(java.lang.String driverName)
DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.void
setReservedFor(java.util.List<ResourceClaimConsumerReference> reservedFor)
ReservedFor indicates which entities are currently allowed to use the claim.ResourceClaimStatus.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ResourceClaimStatus
public ResourceClaimStatus(AllocationResult allocation, java.lang.Boolean deallocationRequested, java.lang.String driverName, java.util.List<ResourceClaimConsumerReference> reservedFor)
-
ResourceClaimStatus
public ResourceClaimStatus()
-
-
Method Detail
-
builder
public static ResourceClaimStatus.Builder builder()
-
toBuilder
public ResourceClaimStatus.Builder toBuilder()
-
getAllocation
public AllocationResult getAllocation()
-
getDeallocationRequested
public java.lang.Boolean 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.
-
getDriverName
public java.lang.String getDriverName()
DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.
-
getReservedFor
public java.util.List<ResourceClaimConsumerReference> 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.
-
setAllocation
public void setAllocation(AllocationResult allocation)
-
setDeallocationRequested
public void setDeallocationRequested(java.lang.Boolean deallocationRequested)
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.
-
setDriverName
public void setDriverName(java.lang.String driverName)
DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.
-
setReservedFor
public void setReservedFor(java.util.List<ResourceClaimConsumerReference> reservedFor)
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.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-