Class V1PodResourceClaim

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1PodResourceClaim extends Object
PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.
  • Field Details

  • Constructor Details

    • V1PodResourceClaim

      public V1PodResourceClaim()
  • Method Details

    • name

      public V1PodResourceClaim name(String name)
    • getName

      @Nonnull public String getName()
      Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.
      Returns:
      name
    • setName

      public void setName(String name)
    • source

      public V1PodResourceClaim source(V1ClaimSource source)
    • getSource

      @Nullable public V1ClaimSource getSource()
      Get source
      Returns:
      source
    • setSource

      public void setSource(V1ClaimSource source)
    • 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 V1PodResourceClaim
    • fromJson

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

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