io.fabric8.kubernetes.api.model.base.StatusDetails Maven / Gradle / Ivy
package io.fabric8.kubernetes.api.model.base;
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({
"causes",
"id",
"kind",
"retryAfterSeconds"
})
public class StatusDetails {
/**
*
*
*/
@JsonProperty("causes")
@Valid
private List causes = new ArrayList();
/**
*
*
*/
@JsonProperty("id")
private String id;
/**
*
*
*/
@JsonProperty("kind")
private String kind;
/**
*
*
*/
@JsonProperty("retryAfterSeconds")
private Integer retryAfterSeconds;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public StatusDetails() {
}
/**
*
* @param id
* @param retryAfterSeconds
* @param causes
* @param kind
*/
public StatusDetails(List causes, String id, String kind, Integer retryAfterSeconds) {
this.causes = causes;
this.id = id;
this.kind = kind;
this.retryAfterSeconds = retryAfterSeconds;
}
/**
*
*
* @return
* The causes
*/
@JsonProperty("causes")
public List getCauses() {
return causes;
}
/**
*
*
* @param causes
* The causes
*/
@JsonProperty("causes")
public void setCauses(List causes) {
this.causes = causes;
}
/**
*
*
* @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 kind
*/
@JsonProperty("kind")
public String getKind() {
return kind;
}
/**
*
*
* @param kind
* The kind
*/
@JsonProperty("kind")
public void setKind(String kind) {
this.kind = kind;
}
/**
*
*
* @return
* The retryAfterSeconds
*/
@JsonProperty("retryAfterSeconds")
public Integer getRetryAfterSeconds() {
return retryAfterSeconds;
}
/**
*
*
* @param retryAfterSeconds
* The retryAfterSeconds
*/
@JsonProperty("retryAfterSeconds")
public void setRetryAfterSeconds(Integer retryAfterSeconds) {
this.retryAfterSeconds = retryAfterSeconds;
}
@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(causes).append(id).append(kind).append(retryAfterSeconds).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof StatusDetails) == false) {
return false;
}
StatusDetails rhs = ((StatusDetails) other);
return new EqualsBuilder().append(causes, rhs.causes).append(id, rhs.id).append(kind, rhs.kind).append(retryAfterSeconds, rhs.retryAfterSeconds).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy