All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fabric8.openshift.api.model.DockerImage Maven / Gradle / Ivy


package io.fabric8.openshift.api.model;

import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonValue;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;


/**
 * 
 * 
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
    "Architecture",
    "Author",
    "Comment",
    "Config",
    "Container",
    "ContainerConfig",
    "Created",
    "DockerVersion",
    "Id",
    "Parent",
    "Size",
    "apiVersion",
    "kind"
})
public class DockerImage {

    /**
     * 
     * 
     */
    @JsonProperty("Architecture")
    private String Architecture;
    /**
     * 
     * 
     */
    @JsonProperty("Author")
    private String Author;
    /**
     * 
     * 
     */
    @JsonProperty("Comment")
    private String Comment;
    /**
     * 
     * 
     */
    @JsonProperty("Config")
    @Valid
    private DockerConfig Config;
    /**
     * 
     * 
     */
    @JsonProperty("Container")
    private String Container;
    /**
     * 
     * 
     */
    @JsonProperty("ContainerConfig")
    @Valid
    private DockerConfig ContainerConfig;
    /**
     * 
     * 
     */
    @JsonProperty("Created")
    private String Created;
    /**
     * 
     * 
     */
    @JsonProperty("DockerVersion")
    private String DockerVersion;
    /**
     * 
     * 
     */
    @JsonProperty("Id")
    private String Id;
    /**
     * 
     * 
     */
    @JsonProperty("Parent")
    private String Parent;
    /**
     * 
     * 
     */
    @JsonProperty("Size")
    private Integer Size;
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("apiVersion")
    @NotNull
    private DockerImage.ApiVersion apiVersion = DockerImage.ApiVersion.fromValue("v1beta1");
    /**
     * 
     * (Required)
     * 
     */
    @JsonProperty("kind")
    @NotNull
    private String kind = "DockerImage";
    @JsonIgnore
    private Map additionalProperties = new HashMap();

    /**
     * No args constructor for use in serialization
     * 
     */
    public DockerImage() {
    }

    /**
     * 
     * @param apiVersion
     * @param Config
     * @param Parent
     * @param Author
     * @param Comment
     * @param Architecture
     * @param kind
     * @param Created
     * @param DockerVersion
     * @param ContainerConfig
     * @param Id
     * @param Container
     * @param Size
     */
    public DockerImage(String Architecture, String Author, String Comment, DockerConfig Config, String Container, DockerConfig ContainerConfig, String Created, String DockerVersion, String Id, String Parent, Integer Size, DockerImage.ApiVersion apiVersion, String kind) {
        this.Architecture = Architecture;
        this.Author = Author;
        this.Comment = Comment;
        this.Config = Config;
        this.Container = Container;
        this.ContainerConfig = ContainerConfig;
        this.Created = Created;
        this.DockerVersion = DockerVersion;
        this.Id = Id;
        this.Parent = Parent;
        this.Size = Size;
        this.apiVersion = apiVersion;
        this.kind = kind;
    }

    /**
     * 
     * 
     * @return
     *     The Architecture
     */
    @JsonProperty("Architecture")
    public String getArchitecture() {
        return Architecture;
    }

    /**
     * 
     * 
     * @param Architecture
     *     The Architecture
     */
    @JsonProperty("Architecture")
    public void setArchitecture(String Architecture) {
        this.Architecture = Architecture;
    }

    /**
     * 
     * 
     * @return
     *     The Author
     */
    @JsonProperty("Author")
    public String getAuthor() {
        return Author;
    }

    /**
     * 
     * 
     * @param Author
     *     The Author
     */
    @JsonProperty("Author")
    public void setAuthor(String Author) {
        this.Author = Author;
    }

    /**
     * 
     * 
     * @return
     *     The Comment
     */
    @JsonProperty("Comment")
    public String getComment() {
        return Comment;
    }

    /**
     * 
     * 
     * @param Comment
     *     The Comment
     */
    @JsonProperty("Comment")
    public void setComment(String Comment) {
        this.Comment = Comment;
    }

    /**
     * 
     * 
     * @return
     *     The Config
     */
    @JsonProperty("Config")
    public DockerConfig getConfig() {
        return Config;
    }

    /**
     * 
     * 
     * @param Config
     *     The Config
     */
    @JsonProperty("Config")
    public void setConfig(DockerConfig Config) {
        this.Config = Config;
    }

    /**
     * 
     * 
     * @return
     *     The Container
     */
    @JsonProperty("Container")
    public String getContainer() {
        return Container;
    }

    /**
     * 
     * 
     * @param Container
     *     The Container
     */
    @JsonProperty("Container")
    public void setContainer(String Container) {
        this.Container = Container;
    }

    /**
     * 
     * 
     * @return
     *     The ContainerConfig
     */
    @JsonProperty("ContainerConfig")
    public DockerConfig getContainerConfig() {
        return ContainerConfig;
    }

    /**
     * 
     * 
     * @param ContainerConfig
     *     The ContainerConfig
     */
    @JsonProperty("ContainerConfig")
    public void setContainerConfig(DockerConfig ContainerConfig) {
        this.ContainerConfig = ContainerConfig;
    }

    /**
     * 
     * 
     * @return
     *     The Created
     */
    @JsonProperty("Created")
    public String getCreated() {
        return Created;
    }

    /**
     * 
     * 
     * @param Created
     *     The Created
     */
    @JsonProperty("Created")
    public void setCreated(String Created) {
        this.Created = Created;
    }

    /**
     * 
     * 
     * @return
     *     The DockerVersion
     */
    @JsonProperty("DockerVersion")
    public String getDockerVersion() {
        return DockerVersion;
    }

    /**
     * 
     * 
     * @param DockerVersion
     *     The DockerVersion
     */
    @JsonProperty("DockerVersion")
    public void setDockerVersion(String DockerVersion) {
        this.DockerVersion = DockerVersion;
    }

    /**
     * 
     * 
     * @return
     *     The Id
     */
    @JsonProperty("Id")
    public String getId() {
        return Id;
    }

    /**
     * 
     * 
     * @param Id
     *     The Id
     */
    @JsonProperty("Id")
    public void setId(String Id) {
        this.Id = Id;
    }

    /**
     * 
     * 
     * @return
     *     The Parent
     */
    @JsonProperty("Parent")
    public String getParent() {
        return Parent;
    }

    /**
     * 
     * 
     * @param Parent
     *     The Parent
     */
    @JsonProperty("Parent")
    public void setParent(String Parent) {
        this.Parent = Parent;
    }

    /**
     * 
     * 
     * @return
     *     The Size
     */
    @JsonProperty("Size")
    public Integer getSize() {
        return Size;
    }

    /**
     * 
     * 
     * @param Size
     *     The Size
     */
    @JsonProperty("Size")
    public void setSize(Integer Size) {
        this.Size = Size;
    }

    /**
     * 
     * (Required)
     * 
     * @return
     *     The apiVersion
     */
    @JsonProperty("apiVersion")
    public DockerImage.ApiVersion getApiVersion() {
        return apiVersion;
    }

    /**
     * 
     * (Required)
     * 
     * @param apiVersion
     *     The apiVersion
     */
    @JsonProperty("apiVersion")
    public void setApiVersion(DockerImage.ApiVersion apiVersion) {
        this.apiVersion = apiVersion;
    }

    /**
     * 
     * (Required)
     * 
     * @return
     *     The kind
     */
    @JsonProperty("kind")
    public String getKind() {
        return kind;
    }

    /**
     * 
     * (Required)
     * 
     * @param kind
     *     The kind
     */
    @JsonProperty("kind")
    public void setKind(String kind) {
        this.kind = kind;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

    @JsonAnyGetter
    public Map getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder().append(Architecture).append(Author).append(Comment).append(Config).append(Container).append(ContainerConfig).append(Created).append(DockerVersion).append(Id).append(Parent).append(Size).append(apiVersion).append(kind).append(additionalProperties).toHashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof DockerImage) == false) {
            return false;
        }
        DockerImage rhs = ((DockerImage) other);
        return new EqualsBuilder().append(Architecture, rhs.Architecture).append(Author, rhs.Author).append(Comment, rhs.Comment).append(Config, rhs.Config).append(Container, rhs.Container).append(ContainerConfig, rhs.ContainerConfig).append(Created, rhs.Created).append(DockerVersion, rhs.DockerVersion).append(Id, rhs.Id).append(Parent, rhs.Parent).append(Size, rhs.Size).append(apiVersion, rhs.apiVersion).append(kind, rhs.kind).append(additionalProperties, rhs.additionalProperties).isEquals();
    }

    @Generated("org.jsonschema2pojo")
    public static enum ApiVersion {

        V_1_BETA_1("v1beta1"),
        V_1_BETA_2("v1beta2"),
        V_1_BETA_3("v1beta3");
        private final String value;
        private static Map constants = new HashMap();

        static {
            for (DockerImage.ApiVersion c: values()) {
                constants.put(c.value, c);
            }
        }

        private ApiVersion(String value) {
            this.value = value;
        }

        @JsonValue
        @Override
        public String toString() {
            return this.value;
        }

        @JsonCreator
        public static DockerImage.ApiVersion fromValue(String value) {
            DockerImage.ApiVersion constant = constants.get(value);
            if (constant == null) {
                throw new IllegalArgumentException(value);
            } else {
                return constant;
            }
        }

    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy