Class V1beta1ParentReference

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-02-12T21:15:49.397498Z[Etc/UTC]", comments="Generator version: 7.6.0") public class V1beta1ParentReference extends Object
ParentReference describes a reference to a parent object.
  • Field Details

  • Constructor Details

    • V1beta1ParentReference

      public V1beta1ParentReference()
  • Method Details

    • group

      public V1beta1ParentReference group(String group)
    • getGroup

      @Nullable public String getGroup()
      Group is the group of the object being referenced.
      Returns:
      group
    • setGroup

      public void setGroup(String group)
    • name

      public V1beta1ParentReference name(String name)
    • getName

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

      public void setName(String name)
    • namespace

      public V1beta1ParentReference namespace(String namespace)
    • getNamespace

      @Nullable public String getNamespace()
      Namespace is the namespace of the object being referenced.
      Returns:
      namespace
    • setNamespace

      public void setNamespace(String namespace)
    • resource

      public V1beta1ParentReference resource(String resource)
    • getResource

      @Nonnull public String getResource()
      Resource is the resource of the object being referenced.
      Returns:
      resource
    • setResource

      public void setResource(String resource)
    • 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 V1beta1ParentReference
    • fromJson

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

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