com.github.dockerjava.api.command.InspectImageResponse Maven / Gradle / Ivy
package com.github.dockerjava.api.command;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.ContainerConfig;
import com.github.dockerjava.api.model.DockerObject;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import javax.annotation.CheckForNull;
import java.util.List;
/**
*
* @author Konstantin Pelykh ([email protected])
*
*/
@EqualsAndHashCode
@ToString
public class InspectImageResponse extends DockerObject {
@JsonProperty("Architecture")
private String arch;
@JsonProperty("Author")
private String author;
@JsonProperty("Comment")
private String comment;
@JsonProperty("Config")
private ContainerConfig config;
@JsonProperty("Container")
private String container;
@JsonProperty("ContainerConfig")
private ContainerConfig containerConfig;
@JsonProperty("Created")
private String created;
@JsonProperty("DockerVersion")
private String dockerVersion;
@JsonProperty("Id")
private String id;
@JsonProperty("Os")
private String os;
/**
* @since {@link com.github.dockerjava.core.RemoteApiVersion#VERSION_1_25}
*/
@JsonProperty("OsVersion")
private String osVersion;
@JsonProperty("Parent")
private String parent;
@JsonProperty("Size")
private Long size;
@JsonProperty("RepoTags")
private List repoTags;
@JsonProperty("RepoDigests")
private List repoDigests;
/**
* @since {@link com.github.dockerjava.core.RemoteApiVersion#VERSION_1_21}
*/
@JsonProperty("VirtualSize")
private Long virtualSize;
/**
* @since {@link com.github.dockerjava.core.RemoteApiVersion#VERSION_1_21}
*/
@JsonProperty("GraphDriver")
private GraphDriver graphDriver;
@JsonProperty("RootFS")
private RootFS rootFS;
/**
* @see #arch
*/
@CheckForNull
public String getArch() {
return arch;
}
/**
* @see #arch
*/
public InspectImageResponse withArch(String arch) {
this.arch = arch;
return this;
}
/**
* @see #author
*/
@CheckForNull
public String getAuthor() {
return author;
}
/**
* @see #author
*/
public InspectImageResponse withAuthor(String author) {
this.author = author;
return this;
}
/**
* @see #comment
*/
@CheckForNull
public String getComment() {
return comment;
}
/**
* @see #comment
*/
public InspectImageResponse withComment(String comment) {
this.comment = comment;
return this;
}
/**
* Get the image commit configuration
* @see #config
*/
@CheckForNull
public ContainerConfig getConfig() {
return config;
}
/**
* @see #config
*/
public InspectImageResponse withConfig(ContainerConfig config) {
this.config = config;
return this;
}
/**
* @see #container
*/
@CheckForNull
public String getContainer() {
return container;
}
/**
* @see #container
*/
public InspectImageResponse withContainer(String container) {
this.container = container;
return this;
}
/**
* If the image was created from a container, this config contains the configuration of the container
* which was committed in this image
* @see #containerConfig
*/
@CheckForNull
public ContainerConfig getContainerConfig() {
return containerConfig;
}
/**
* @see #containerConfig
*/
public InspectImageResponse withContainerConfig(ContainerConfig containerConfig) {
this.containerConfig = containerConfig;
return this;
}
/**
* @see #created
*/
@CheckForNull
public String getCreated() {
return created;
}
/**
* @see #created
*/
public InspectImageResponse withCreated(String created) {
this.created = created;
return this;
}
/**
* @see #dockerVersion
*/
@CheckForNull
public String getDockerVersion() {
return dockerVersion;
}
/**
* @see #dockerVersion
*/
public InspectImageResponse withDockerVersion(String dockerVersion) {
this.dockerVersion = dockerVersion;
return this;
}
/**
* @see #id
*/
@CheckForNull
public String getId() {
return id;
}
/**
* @see #id
*/
public InspectImageResponse withId(String id) {
this.id = id;
return this;
}
/**
* @see #os
*/
@CheckForNull
public String getOs() {
return os;
}
/**
* @see #os
*/
public InspectImageResponse withOs(String os) {
this.os = os;
return this;
}
/**
* @see #osVersion
*/
@CheckForNull
public String getOsVersion() {
return osVersion;
}
/**
* @see #osVersion
*/
public InspectImageResponse withOsVersion(String osVersion) {
this.osVersion = osVersion;
return this;
}
/**
* @see #parent
*/
@CheckForNull
public String getParent() {
return parent;
}
/**
* @see #parent
*/
public InspectImageResponse withParent(String parent) {
this.parent = parent;
return this;
}
/**
* @see #repoTags
*/
@CheckForNull
public List getRepoTags() {
return repoTags;
}
/**
* @see #repoTags
*/
public InspectImageResponse withRepoTags(List repoTags) {
this.repoTags = repoTags;
return this;
}
/**
* @see #size
*/
@CheckForNull
public Long getSize() {
return size;
}
/**
* @see #size
*/
public InspectImageResponse withSize(Long size) {
this.size = size;
return this;
}
/**
* @see #repoDigests
*/
@CheckForNull
public List getRepoDigests() {
return repoDigests;
}
/**
* @see #repoDigests
*/
public InspectImageResponse withRepoDigests(List repoDigests) {
this.repoDigests = repoDigests;
return this;
}
/**
* @see #graphDriver
*/
@CheckForNull
public GraphDriver getGraphDriver() {
return graphDriver;
}
/**
* @see #graphDriver
*/
public InspectImageResponse withGraphDriver(GraphDriver graphDriver) {
this.graphDriver = graphDriver;
return this;
}
/**
* @see #virtualSize
*/
@CheckForNull
public Long getVirtualSize() {
return virtualSize;
}
/**
* @see #virtualSize
*/
public InspectImageResponse withVirtualSize(Long virtualSize) {
this.virtualSize = virtualSize;
return this;
}
/**
* @see #rootFS
*/
@CheckForNull
public RootFS getRootFS() {
return rootFS;
}
/**
* @see #rootFS
*/
public InspectImageResponse withRootFS(RootFS rootFS) {
this.rootFS = rootFS;
return this;
}
}