com.github.dockerjava.api.command.InspectImageResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.docker-java
Show all versions of org.apache.servicemix.bundles.docker-java
This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.
package com.github.dockerjava.api.command;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.dockerjava.api.model.ContainerConfig;
import javax.annotation.CheckForNull;
import java.util.List;
/**
*
* @author Konstantin Pelykh ([email protected])
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class InspectImageResponse {
@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;
@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;
/**
* @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;
}
/**
* @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;
}
/**
* @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 #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;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@Override
public boolean equals(Object o) {
return EqualsBuilder.reflectionEquals(this, o);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
}