Class V1JobTemplateSpec

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1JobTemplateSpec extends Object
JobTemplateSpec describes the data a Job should have when created from a template
  • Field Details

  • Constructor Details

    • V1JobTemplateSpec

      public V1JobTemplateSpec()
  • Method Details

    • metadata

      public V1JobTemplateSpec metadata(V1ObjectMeta metadata)
    • getMetadata

      @Nullable public V1ObjectMeta getMetadata()
      Get metadata
      Returns:
      metadata
    • setMetadata

      public void setMetadata(V1ObjectMeta metadata)
    • spec

      public V1JobTemplateSpec spec(V1JobSpec spec)
    • getSpec

      @Nullable public V1JobSpec getSpec()
      Get spec
      Returns:
      spec
    • setSpec

      public void setSpec(V1JobSpec spec)
    • 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 V1JobTemplateSpec
    • fromJson

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

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