Class V1alpha3AllocationResult

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-10-04T19:37:38.574271Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V1alpha3AllocationResult extends Object
AllocationResult contains attributes of an allocated resource.
  • Field Details

  • Constructor Details

    • V1alpha3AllocationResult

      public V1alpha3AllocationResult()
  • Method Details

    • controller

      public V1alpha3AllocationResult controller(String controller)
    • getController

      @Nullable public String getController()
      Controller is the name of the DRA driver which handled the allocation. That driver is also responsible for deallocating the claim. It is empty when the claim can be deallocated without involving a driver. A driver may allocate devices provided by other drivers, so this driver name here can be different from the driver names listed for the results. This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
      Returns:
      controller
    • setController

      public void setController(String controller)
    • devices

    • getDevices

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

      public void setDevices(V1alpha3DeviceAllocationResult devices)
    • nodeSelector

      public V1alpha3AllocationResult nodeSelector(V1NodeSelector nodeSelector)
    • getNodeSelector

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

      public void setNodeSelector(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 V1alpha3AllocationResult
    • fromJson

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

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