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.
  • Field Details

  • Constructor Details

    • V1alpha2ResourceClaimStatus

      public V1alpha2ResourceClaimStatus()
  • Method Details

    • allocation

      public V1alpha2ResourceClaimStatus allocation(V1alpha2AllocationResult allocation)
    • getAllocation

      @Nullable public V1alpha2AllocationResult getAllocation()
      Get allocation
      Returns:
      allocation
    • setAllocation

      public void setAllocation(V1alpha2AllocationResult allocation)
    • deallocationRequested

      public V1alpha2ResourceClaimStatus deallocationRequested(Boolean deallocationRequested)
    • getDeallocationRequested

      @Nullable 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:
      deallocationRequested
    • setDeallocationRequested

      public void setDeallocationRequested(Boolean deallocationRequested)
    • driverName

      public V1alpha2ResourceClaimStatus driverName(String driverName)
    • getDriverName

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

      public void setDriverName(String driverName)
    • reservedFor

    • addReservedForItem

      public V1alpha2ResourceClaimStatus addReservedForItem(V1alpha2ResourceClaimConsumerReference reservedForItem)
    • getReservedFor

      @Nullable public List<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:
      reservedFor
    • setReservedFor

      public void setReservedFor(List<V1alpha2ResourceClaimConsumerReference> reservedFor)
    • 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
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      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

      public static V1alpha2ResourceClaimStatus fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of V1alpha2ResourceClaimStatus to an JSON string
      Returns:
      JSON string