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

io.fabric8.kubernetes.api.model.PodState Maven / Gradle / Ivy


package io.fabric8.kubernetes.api.model;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import javax.validation.Valid;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
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 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({
    "Condition",
    "host",
    "hostIP",
    "info",
    "manifest",
    "message",
    "podIP",
    "status"
})
public class PodState {

    /**
     * current service state of pod
     * 
     */
    @JsonProperty("Condition")
    @Valid
    private List Condition = new ArrayList();
    /**
     * host to which the pod is assigned; empty if not yet scheduled; cannot be updated
     * 
     */
    @JsonProperty("host")
    private java.lang.String host;
    /**
     * IP address of the host to which the pod is assigned; empty if not yet scheduled
     * 
     */
    @JsonProperty("hostIP")
    private java.lang.String hostIP;
    /**
     * map of container name to container status
     * 
     */
    @JsonProperty("info")
    @Valid
    private Map info;
    /**
     * 
     * 
     */
    @JsonProperty("manifest")
    @Valid
    private ContainerManifest manifest;
    /**
     * human readable message indicating details about why the pod is in this condition
     * 
     */
    @JsonProperty("message")
    private java.lang.String message;
    /**
     * IP address allocated to the pod; routable at least within the cluster; empty if not yet allocated
     * 
     */
    @JsonProperty("podIP")
    private java.lang.String podIP;
    /**
     * current condition of the pod
     * 
     */
    @JsonProperty("status")
    private java.lang.String status;
    @JsonIgnore
    private Map additionalProperties = new HashMap();

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

    /**
     * 
     * @param message
     * @param Condition
     * @param host
     * @param status
     * @param podIP
     * @param hostIP
     * @param manifest
     * @param info
     */
    public PodState(List Condition, java.lang.String host, java.lang.String hostIP, Map info, ContainerManifest manifest, java.lang.String message, java.lang.String podIP, java.lang.String status) {
        this.Condition = Condition;
        this.host = host;
        this.hostIP = hostIP;
        this.info = info;
        this.manifest = manifest;
        this.message = message;
        this.podIP = podIP;
        this.status = status;
    }

    /**
     * current service state of pod
     * 
     * @return
     *     The Condition
     */
    @JsonProperty("Condition")
    public List getCondition() {
        return Condition;
    }

    /**
     * current service state of pod
     * 
     * @param Condition
     *     The Condition
     */
    @JsonProperty("Condition")
    public void setCondition(List Condition) {
        this.Condition = Condition;
    }

    /**
     * host to which the pod is assigned; empty if not yet scheduled; cannot be updated
     * 
     * @return
     *     The host
     */
    @JsonProperty("host")
    public java.lang.String getHost() {
        return host;
    }

    /**
     * host to which the pod is assigned; empty if not yet scheduled; cannot be updated
     * 
     * @param host
     *     The host
     */
    @JsonProperty("host")
    public void setHost(java.lang.String host) {
        this.host = host;
    }

    /**
     * IP address of the host to which the pod is assigned; empty if not yet scheduled
     * 
     * @return
     *     The hostIP
     */
    @JsonProperty("hostIP")
    public java.lang.String getHostIP() {
        return hostIP;
    }

    /**
     * IP address of the host to which the pod is assigned; empty if not yet scheduled
     * 
     * @param hostIP
     *     The hostIP
     */
    @JsonProperty("hostIP")
    public void setHostIP(java.lang.String hostIP) {
        this.hostIP = hostIP;
    }

    /**
     * map of container name to container status
     * 
     * @return
     *     The info
     */
    @JsonProperty("info")
    public Map getInfo() {
        return info;
    }

    /**
     * map of container name to container status
     * 
     * @param info
     *     The info
     */
    @JsonProperty("info")
    public void setInfo(Map info) {
        this.info = info;
    }

    /**
     * 
     * 
     * @return
     *     The manifest
     */
    @JsonProperty("manifest")
    public ContainerManifest getManifest() {
        return manifest;
    }

    /**
     * 
     * 
     * @param manifest
     *     The manifest
     */
    @JsonProperty("manifest")
    public void setManifest(ContainerManifest manifest) {
        this.manifest = manifest;
    }

    /**
     * human readable message indicating details about why the pod is in this condition
     * 
     * @return
     *     The message
     */
    @JsonProperty("message")
    public java.lang.String getMessage() {
        return message;
    }

    /**
     * human readable message indicating details about why the pod is in this condition
     * 
     * @param message
     *     The message
     */
    @JsonProperty("message")
    public void setMessage(java.lang.String message) {
        this.message = message;
    }

    /**
     * IP address allocated to the pod; routable at least within the cluster; empty if not yet allocated
     * 
     * @return
     *     The podIP
     */
    @JsonProperty("podIP")
    public java.lang.String getPodIP() {
        return podIP;
    }

    /**
     * IP address allocated to the pod; routable at least within the cluster; empty if not yet allocated
     * 
     * @param podIP
     *     The podIP
     */
    @JsonProperty("podIP")
    public void setPodIP(java.lang.String podIP) {
        this.podIP = podIP;
    }

    /**
     * current condition of the pod
     * 
     * @return
     *     The status
     */
    @JsonProperty("status")
    public java.lang.String getStatus() {
        return status;
    }

    /**
     * current condition of the pod
     * 
     * @param status
     *     The status
     */
    @JsonProperty("status")
    public void setStatus(java.lang.String status) {
        this.status = status;
    }

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

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

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

    @Override
    public int hashCode() {
        return new HashCodeBuilder().append(Condition).append(host).append(hostIP).append(info).append(manifest).append(message).append(podIP).append(status).append(additionalProperties).toHashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof PodState) == false) {
            return false;
        }
        PodState rhs = ((PodState) other);
        return new EqualsBuilder().append(Condition, rhs.Condition).append(host, rhs.host).append(hostIP, rhs.hostIP).append(info, rhs.info).append(manifest, rhs.manifest).append(message, rhs.message).append(podIP, rhs.podIP).append(status, rhs.status).append(additionalProperties, rhs.additionalProperties).isEquals();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy