Class V1TypedObjectReference

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1TypedObjectReference extends Object
V1TypedObjectReference
  • Field Details

  • Constructor Details

    • V1TypedObjectReference

      public V1TypedObjectReference()
  • Method Details

    • apiGroup

      public V1TypedObjectReference apiGroup(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(String apiGroup)
    • kind

      public V1TypedObjectReference kind(String kind)
    • getKind

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

      public void setKind(String kind)
    • name

      public V1TypedObjectReference name(String name)
    • getName

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

      public void setName(String name)
    • namespace

      public V1TypedObjectReference namespace(String namespace)
    • getNamespace

      @Nullable public String getNamespace()
      Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
      Returns:
      namespace
    • setNamespace

      public void setNamespace(String namespace)
    • 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 V1TypedObjectReference
    • fromJson

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

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