Class ImageInspect

java.lang.Object
io.github.alersrt.pod4j.openapi.model.ImageInspect
All Implemented Interfaces:
Serializable

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ImageInspect extends Object implements Serializable
ImageInspect
See Also:
  • Field Details

  • Constructor Details

    • ImageInspect

      public ImageInspect()
  • Method Details

    • architecture

      public ImageInspect architecture(String architecture)
    • getArchitecture

      @Nullable public String getArchitecture()
      Architecture is the hardware CPU architecture that the image runs on.
      Returns:
      architecture
    • setArchitecture

      public void setArchitecture(String architecture)
    • author

      public ImageInspect author(String author)
    • getAuthor

      @Nullable public String getAuthor()
      Author is the name of the author that was specified when committing the image, or as specified through MAINTAINER (deprecated) in the Dockerfile.
      Returns:
      author
    • setAuthor

      public void setAuthor(String author)
    • comment

      public ImageInspect comment(String comment)
    • getComment

      @Nullable public String getComment()
      Comment is an optional message that can be set when committing or importing the image.
      Returns:
      comment
    • setComment

      public void setComment(String comment)
    • config

      public ImageInspect config(Config config)
    • getConfig

      @Nullable @Valid public @Valid Config getConfig()
      Get config
      Returns:
      config
    • setConfig

      public void setConfig(Config config)
    • container

      public ImageInspect container(String container)
    • getContainer

      @Nullable public String getContainer()
      Container is for backwards compat but is basically unused
      Returns:
      container
    • setContainer

      public void setContainer(String container)
    • containerConfig

      public ImageInspect containerConfig(Config containerConfig)
    • getContainerConfig

      @Nullable @Valid public @Valid Config getContainerConfig()
      Get containerConfig
      Returns:
      containerConfig
    • setContainerConfig

      public void setContainerConfig(Config containerConfig)
    • created

      public ImageInspect created(String created)
    • getCreated

      @Nullable public String getCreated()
      Created is the date and time at which the image was created, formatted in RFC 3339 nano-seconds (time.RFC3339Nano). This information is only available if present in the image, and omitted otherwise.
      Returns:
      created
    • setCreated

      public void setCreated(String created)
    • dockerVersion

      public ImageInspect dockerVersion(String dockerVersion)
    • getDockerVersion

      @Nullable public String getDockerVersion()
      DockerVersion is the version of Docker that was used to build the image. Depending on how the image was created, this field may be empty.
      Returns:
      dockerVersion
    • setDockerVersion

      public void setDockerVersion(String dockerVersion)
    • graphDriver

      public ImageInspect graphDriver(GraphDriverData graphDriver)
    • getGraphDriver

      @Nullable @Valid public @Valid GraphDriverData getGraphDriver()
      Get graphDriver
      Returns:
      graphDriver
    • setGraphDriver

      public void setGraphDriver(GraphDriverData graphDriver)
    • id

      public ImageInspect id(String id)
    • getId

      @Nullable public String getId()
      ID is the content-addressable ID of an image. This identifier is a content-addressable digest calculated from the image's configuration (which includes the digests of layers used by the image). Note that this digest differs from the `RepoDigests` below, which holds digests of image manifests that reference the image.
      Returns:
      id
    • setId

      public void setId(String id)
    • metadata

      public ImageInspect metadata(Metadata metadata)
    • getMetadata

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

      public void setMetadata(Metadata metadata)
    • os

      public ImageInspect os(String os)
    • getOs

      @Nullable public String getOs()
      OS is the Operating System the image is built to run on.
      Returns:
      os
    • setOs

      public void setOs(String os)
    • osVersion

      public ImageInspect osVersion(String osVersion)
    • getOsVersion

      @Nullable public String getOsVersion()
      OsVersion is the version of the Operating System the image is built to run on (especially for Windows).
      Returns:
      osVersion
    • setOsVersion

      public void setOsVersion(String osVersion)
    • parent

      public ImageInspect parent(String parent)
    • getParent

      @Nullable public String getParent()
      Parent is the ID of the parent image. Depending on how the image was created, this field may be empty and is only set for images that were built/created locally. This field is empty if the image was pulled from an image registry.
      Returns:
      parent
    • setParent

      public void setParent(String parent)
    • repoDigests

      public ImageInspect repoDigests(List<String> repoDigests)
    • addRepoDigestsItem

      public ImageInspect addRepoDigestsItem(String repoDigestsItem)
    • getRepoDigests

      @Nullable public List<String> getRepoDigests()
      RepoDigests is a list of content-addressable digests of locally available image manifests that the image is referenced from. Multiple manifests can refer to the same image. These digests are usually only available if the image was either pulled from a registry, or if the image was pushed to a registry, which is when the manifest is generated and its digest calculated.
      Returns:
      repoDigests
    • setRepoDigests

      public void setRepoDigests(List<String> repoDigests)
    • repoTags

      public ImageInspect repoTags(List<String> repoTags)
    • addRepoTagsItem

      public ImageInspect addRepoTagsItem(String repoTagsItem)
    • getRepoTags

      @Nullable public List<String> getRepoTags()
      RepoTags is a list of image names/tags in the local image cache that reference this image. Multiple image tags can refer to the same image, and this list may be empty if no tags reference the image, in which case the image is \"untagged\", in which case it can still be referenced by its ID.
      Returns:
      repoTags
    • setRepoTags

      public void setRepoTags(List<String> repoTags)
    • rootFS

      public ImageInspect rootFS(RootFS rootFS)
    • getRootFS

      @Nullable @Valid public @Valid RootFS getRootFS()
      Get rootFS
      Returns:
      rootFS
    • setRootFS

      public void setRootFS(RootFS rootFS)
    • size

      public ImageInspect size(Long size)
    • getSize

      @Nullable public Long getSize()
      Size is the total size of the image including all layers it is composed of.
      Returns:
      size
    • setSize

      public void setSize(Long size)
    • variant

      public ImageInspect variant(String variant)
    • getVariant

      @Nullable public String getVariant()
      Variant is the CPU architecture variant (presently ARM-only).
      Returns:
      variant
    • setVariant

      public void setVariant(String variant)
    • virtualSize

      public ImageInspect virtualSize(Long virtualSize)
    • getVirtualSize

      @Nullable public Long getVirtualSize()
      VirtualSize is the total size of the image including all layers it is composed of. Deprecated: this field is omitted in API v1.44, but kept for backward compatibility. Use Size instead.
      Returns:
      virtualSize
    • setVirtualSize

      public void setVirtualSize(Long virtualSize)
    • 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 ImageInspect
    • fromJson

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

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