Class V1AllocationResult

java.lang.Object
io.kubernetes.client.openapi.models.V1AllocationResult

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-09-11T18:00:16.154662Z[Etc/UTC]", comments="Generator version: 7.13.0") public class V1AllocationResult extends Object
AllocationResult contains attributes of an allocated resource.
  • Field Details

  • Constructor Details

    • V1AllocationResult

      public V1AllocationResult()
  • Method Details

    • allocationTimestamp

      public V1AllocationResult allocationTimestamp(@Nullable OffsetDateTime allocationTimestamp)
    • getAllocationTimestamp

      @Nullable public OffsetDateTime getAllocationTimestamp()
      AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.
      Returns:
      allocationTimestamp
    • setAllocationTimestamp

      public void setAllocationTimestamp(@Nullable OffsetDateTime allocationTimestamp)
    • devices

      public V1AllocationResult devices(@Nullable V1DeviceAllocationResult devices)
    • getDevices

      @Nullable public V1DeviceAllocationResult getDevices()
      Get devices
      Returns:
      devices
    • setDevices

      public void setDevices(@Nullable V1DeviceAllocationResult devices)
    • nodeSelector

      public V1AllocationResult nodeSelector(@Nullable V1NodeSelector nodeSelector)
    • getNodeSelector

      @Nullable public V1NodeSelector getNodeSelector()
      Get nodeSelector
      Returns:
      nodeSelector
    • setNodeSelector

      public void setNodeSelector(@Nullable V1NodeSelector nodeSelector)
    • 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
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to V1AllocationResult
    • fromJson

      public static V1AllocationResult fromJson(String jsonString) throws IOException
      Create an instance of V1AllocationResult given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of V1AllocationResult
      Throws:
      IOException - if the JSON string is invalid with respect to V1AllocationResult
    • toJson

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