Class V1TypedLocalObjectReference

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-05-20T20:47:13.890592Z[Etc/UTC]", comments="Generator version: 7.13.0") public class V1TypedLocalObjectReference extends Object
TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.
  • Field Details

  • Constructor Details

    • V1TypedLocalObjectReference

      public V1TypedLocalObjectReference()
  • Method Details

    • apiGroup

      public V1TypedLocalObjectReference apiGroup(@Nullable String apiGroup)
    • getApiGroup

      @Nullable public String getApiGroup()
      APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
      Returns:
      apiGroup
    • setApiGroup

      public void setApiGroup(@Nullable String apiGroup)
    • kind

      public V1TypedLocalObjectReference kind(@Nonnull String kind)
    • getKind

      @Nonnull public String getKind()
      Kind is the type of resource being referenced
      Returns:
      kind
    • setKind

      public void setKind(@Nonnull String kind)
    • name

      public V1TypedLocalObjectReference name(@Nonnull String name)
    • getName

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

      public void setName(@Nonnull 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 V1TypedLocalObjectReference
    • fromJson

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

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