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

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

The newest version!

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 com.fasterxml.jackson.databind.annotation.JsonDeserialize;
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({
    "conditions",
    "containerStatuses",
    "hostIP",
    "message",
    "phase",
    "podIP",
    "startTime"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
public class PodStatus {

    /**
     * current service state of pod
     * 
     */
    @JsonProperty("conditions")
    @Valid
    private List conditions = new ArrayList();
    /**
     * list of container statuses
     * 
     */
    @JsonProperty("containerStatuses")
    @Valid
    private List containerStatuses = new ArrayList();
    /**
     * IP address of the host to which the pod is assigned; empty if not yet scheduled
     * 
     */
    @JsonProperty("hostIP")
    private String hostIP;
    /**
     * human readable message indicating details about why the pod is in this condition
     * 
     */
    @JsonProperty("message")
    private String message;
    /**
     * current condition of the pod.
     * 
     */
    @JsonProperty("phase")
    private String phase;
    /**
     * IP address allocated to the pod; routable at least within the cluster; empty if not yet allocated
     * 
     */
    @JsonProperty("podIP")
    private String podIP;
    /**
     * RFC 3339 date and time at which the object was acknowledged by the Kubelet.  This is before the Kubelet pulled the container image(s) for the pod.
     * 
     */
    @JsonProperty("startTime")
    private String startTime;
    @JsonIgnore
    private Map additionalProperties = new HashMap();

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

    /**
     * 
     * @param startTime
     * @param message
     * @param conditions
     * @param podIP
     * @param hostIP
     * @param phase
     * @param containerStatuses
     */
    public PodStatus(List conditions, List containerStatuses, String hostIP, String message, String phase, String podIP, String startTime) {
        this.conditions = conditions;
        this.containerStatuses = containerStatuses;
        this.hostIP = hostIP;
        this.message = message;
        this.phase = phase;
        this.podIP = podIP;
        this.startTime = startTime;
    }

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

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

    /**
     * list of container statuses
     * 
     * @return
     *     The containerStatuses
     */
    @JsonProperty("containerStatuses")
    public List getContainerStatuses() {
        return containerStatuses;
    }

    /**
     * list of container statuses
     * 
     * @param containerStatuses
     *     The containerStatuses
     */
    @JsonProperty("containerStatuses")
    public void setContainerStatuses(List containerStatuses) {
        this.containerStatuses = containerStatuses;
    }

    /**
     * IP address of the host to which the pod is assigned; empty if not yet scheduled
     * 
     * @return
     *     The hostIP
     */
    @JsonProperty("hostIP")
    public 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(String hostIP) {
        this.hostIP = hostIP;
    }

    /**
     * human readable message indicating details about why the pod is in this condition
     * 
     * @return
     *     The message
     */
    @JsonProperty("message")
    public 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(String message) {
        this.message = message;
    }

    /**
     * current condition of the pod.
     * 
     * @return
     *     The phase
     */
    @JsonProperty("phase")
    public String getPhase() {
        return phase;
    }

    /**
     * current condition of the pod.
     * 
     * @param phase
     *     The phase
     */
    @JsonProperty("phase")
    public void setPhase(String phase) {
        this.phase = phase;
    }

    /**
     * IP address allocated to the pod; routable at least within the cluster; empty if not yet allocated
     * 
     * @return
     *     The podIP
     */
    @JsonProperty("podIP")
    public 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(String podIP) {
        this.podIP = podIP;
    }

    /**
     * RFC 3339 date and time at which the object was acknowledged by the Kubelet.  This is before the Kubelet pulled the container image(s) for the pod.
     * 
     * @return
     *     The startTime
     */
    @JsonProperty("startTime")
    public String getStartTime() {
        return startTime;
    }

    /**
     * RFC 3339 date and time at which the object was acknowledged by the Kubelet.  This is before the Kubelet pulled the container image(s) for the pod.
     * 
     * @param startTime
     *     The startTime
     */
    @JsonProperty("startTime")
    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    @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(conditions).append(containerStatuses).append(hostIP).append(message).append(phase).append(podIP).append(startTime).append(additionalProperties).toHashCode();
    }

    @Override
    public boolean equals(Object other) {
        if (other == this) {
            return true;
        }
        if ((other instanceof PodStatus) == false) {
            return false;
        }
        PodStatus rhs = ((PodStatus) other);
        return new EqualsBuilder().append(conditions, rhs.conditions).append(containerStatuses, rhs.containerStatuses).append(hostIP, rhs.hostIP).append(message, rhs.message).append(phase, rhs.phase).append(podIP, rhs.podIP).append(startTime, rhs.startTime).append(additionalProperties, rhs.additionalProperties).isEquals();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy