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

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

There is a newer version: 0.0.54
Show 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 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",
    "containerStatuses",
    "hostIP",
    "message",
    "phase",
    "podIP"
})
public class PodStatus {

    /**
     * current service state of pod
     * 
     */
    @JsonProperty("Condition")
    @Valid
    private List Condition = 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;
    @JsonIgnore
    private Map additionalProperties = new HashMap();

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

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

    /**
     * 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;
    }

    /**
     * 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;
    }

    @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(Condition).append(containerStatuses).append(hostIP).append(message).append(phase).append(podIP).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(Condition, rhs.Condition).append(containerStatuses, rhs.containerStatuses).append(hostIP, rhs.hostIP).append(message, rhs.message).append(phase, rhs.phase).append(podIP, rhs.podIP).append(additionalProperties, rhs.additionalProperties).isEquals();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy