Class V1alpha2ResourceClaimConsumerReference

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-23T13:45:09.091597Z[Etc/UTC]") public class V1alpha2ResourceClaimConsumerReference extends Object
ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.
  • Field Details

  • Constructor Details

    • V1alpha2ResourceClaimConsumerReference

      public V1alpha2ResourceClaimConsumerReference()
  • Method Details

    • apiGroup

      public V1alpha2ResourceClaimConsumerReference apiGroup(String apiGroup)
    • getApiGroup

      @Nullable public String getApiGroup()
      APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
      Returns:
      apiGroup
    • setApiGroup

      public void setApiGroup(String apiGroup)
    • name

    • getName

      @Nonnull public String getName()
      Name is the name of resource being referenced.
      Returns:
      name
    • setName

      public void setName(String name)
    • resource

      public V1alpha2ResourceClaimConsumerReference resource(String resource)
    • getResource

      @Nonnull public String getResource()
      Resource is the type of resource being referenced, for example \"pods\".
      Returns:
      resource
    • setResource

      public void setResource(String resource)
    • uid

    • getUid

      @Nonnull public String getUid()
      UID identifies exactly one incarnation of the resource.
      Returns:
      uid
    • setUid

      public void setUid(String uid)
    • 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 V1alpha2ResourceClaimConsumerReference
    • fromJson

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

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