Class V1ContainerImage

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

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

  • Constructor Details

    • V1ContainerImage

      public V1ContainerImage()
  • Method Details

    • names

      public V1ContainerImage names(List<String> names)
    • addNamesItem

      public V1ContainerImage addNamesItem(String namesItem)
    • getNames

      @Nullable public List<String> getNames()
      Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"]
      Returns:
      names
    • setNames

      public void setNames(List<String> names)
    • sizeBytes

      public V1ContainerImage sizeBytes(Long sizeBytes)
    • getSizeBytes

      @Nullable public Long getSizeBytes()
      The size of the image in bytes.
      Returns:
      sizeBytes
    • setSizeBytes

      public void setSizeBytes(Long sizeBytes)
    • 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 V1ContainerImage
    • fromJson

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

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