Class V2CrossVersionObjectReference

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-10-04T19:37:38.574271Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V2CrossVersionObjectReference extends Object
CrossVersionObjectReference contains enough information to let you identify the referred resource.
  • Field Details

  • Constructor Details

    • V2CrossVersionObjectReference

      public V2CrossVersionObjectReference()
  • Method Details

    • apiVersion

      public V2CrossVersionObjectReference apiVersion(String apiVersion)
    • getApiVersion

      @Nullable public String getApiVersion()
      apiVersion is the API version of the referent
      Returns:
      apiVersion
    • setApiVersion

      public void setApiVersion(String apiVersion)
    • kind

    • getKind

      @Nonnull public String getKind()
      kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      Returns:
      kind
    • setKind

      public void setKind(String kind)
    • name

    • getName

      @Nonnull public String getName()
      name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
      Returns:
      name
    • setName

      public void setName(String name)
    • 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 V2CrossVersionObjectReference
    • fromJson

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

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