io.fabric8.kubernetes.api.model.ContainerState Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model;
import java.util.HashMap;
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({
"running",
"termination",
"waiting"
})
public class ContainerState {
/**
*
*
*/
@JsonProperty("running")
@Valid
private ContainerStateRunning running;
/**
*
*
*/
@JsonProperty("termination")
@Valid
private ContainerStateTerminated termination;
/**
*
*
*/
@JsonProperty("waiting")
@Valid
private ContainerStateWaiting waiting;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public ContainerState() {
}
/**
*
* @param termination
* @param waiting
* @param running
*/
public ContainerState(ContainerStateRunning running, ContainerStateTerminated termination, ContainerStateWaiting waiting) {
this.running = running;
this.termination = termination;
this.waiting = waiting;
}
/**
*
*
* @return
* The running
*/
@JsonProperty("running")
public ContainerStateRunning getRunning() {
return running;
}
/**
*
*
* @param running
* The running
*/
@JsonProperty("running")
public void setRunning(ContainerStateRunning running) {
this.running = running;
}
/**
*
*
* @return
* The termination
*/
@JsonProperty("termination")
public ContainerStateTerminated getTermination() {
return termination;
}
/**
*
*
* @param termination
* The termination
*/
@JsonProperty("termination")
public void setTermination(ContainerStateTerminated termination) {
this.termination = termination;
}
/**
*
*
* @return
* The waiting
*/
@JsonProperty("waiting")
public ContainerStateWaiting getWaiting() {
return waiting;
}
/**
*
*
* @param waiting
* The waiting
*/
@JsonProperty("waiting")
public void setWaiting(ContainerStateWaiting waiting) {
this.waiting = waiting;
}
@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(running).append(termination).append(waiting).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ContainerState) == false) {
return false;
}
ContainerState rhs = ((ContainerState) other);
return new EqualsBuilder().append(running, rhs.running).append(termination, rhs.termination).append(waiting, rhs.waiting).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy