Class V1alpha2ResourceClaimSpec

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1alpha2ResourceClaimSpec extends Object
ResourceClaimSpec defines how a resource is to be allocated.
  • Field Details

  • Constructor Details

    • V1alpha2ResourceClaimSpec

      public V1alpha2ResourceClaimSpec()
  • Method Details

    • allocationMode

      public V1alpha2ResourceClaimSpec allocationMode(String allocationMode)
    • getAllocationMode

      @Nullable public String getAllocationMode()
      Allocation can start immediately or when a Pod wants to use the resource. \"WaitForFirstConsumer\" is the default.
      Returns:
      allocationMode
    • setAllocationMode

      public void setAllocationMode(String allocationMode)
    • parametersRef

    • getParametersRef

      @Nullable public V1alpha2ResourceClaimParametersReference getParametersRef()
      Get parametersRef
      Returns:
      parametersRef
    • setParametersRef

      public void setParametersRef(V1alpha2ResourceClaimParametersReference parametersRef)
    • resourceClassName

      public V1alpha2ResourceClaimSpec resourceClassName(String resourceClassName)
    • getResourceClassName

      @Nonnull public String getResourceClassName()
      ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.
      Returns:
      resourceClassName
    • setResourceClassName

      public void setResourceClassName(String resourceClassName)
    • 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 V1alpha2ResourceClaimSpec
    • fromJson

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

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