Class V1PodTemplateSpec

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

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

  • Constructor Details

    • V1PodTemplateSpec

      public V1PodTemplateSpec()
  • Method Details

    • metadata

      public V1PodTemplateSpec metadata(V1ObjectMeta metadata)
    • getMetadata

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

      public void setMetadata(V1ObjectMeta metadata)
    • spec

      public V1PodTemplateSpec spec(V1PodSpec spec)
    • getSpec

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

      public void setSpec(V1PodSpec 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 V1PodTemplateSpec
    • fromJson

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

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