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 Details

  • Constructor Details

    • V1alpha2ResourceClaimStatus

      public V1alpha2ResourceClaimStatus()
  • Method Details

    • getAllocation

      public V1alpha2AllocationResult getAllocation()
      Returns:
      the allocation property value
    • setAllocation

      public void setAllocation(V1alpha2AllocationResult allocation)
      Set the allocation property value
    • allocation

      public V1alpha2ResourceClaimStatus allocation(V1alpha2AllocationResult allocation)
      Set allocation in a chainable fashion.
      Returns:
      The same instance of V1alpha2ResourceClaimStatus for chaining.
    • getDeallocationRequested

      public 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.
      Returns:
      the deallocationRequested property value
    • setDeallocationRequested

      public void setDeallocationRequested(Boolean deallocationRequested)
      Set the deallocationRequested property value
    • deallocationRequested

      public V1alpha2ResourceClaimStatus deallocationRequested(Boolean deallocationRequested)
      Set deallocationRequested in a chainable fashion.
      Returns:
      The same instance of V1alpha2ResourceClaimStatus for chaining.
    • getDriverName

      public String getDriverName()
      DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.
      Returns:
      the driverName property value
    • setDriverName

      public void setDriverName(String driverName)
      Set the driverName property value
    • driverName

      public V1alpha2ResourceClaimStatus driverName(String driverName)
      Set driverName in a chainable fashion.
      Returns:
      The same instance of V1alpha2ResourceClaimStatus for chaining.
    • getReservedFor

      public List<@Valid V1alpha2ResourceClaimConsumerReference> 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

      public void setReservedFor(List<@Valid V1alpha2ResourceClaimConsumerReference> reservedFor)
      Set the reservedFor property value
    • 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object