io.fabric8.kubernetes.api.model.ReplicationControllerState 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({
"podTemplate",
"replicaSelector",
"replicas"
})
public class ReplicationControllerState {
/**
*
*
*/
@JsonProperty("podTemplate")
@Valid
private PodTemplate podTemplate;
/**
* label keys and values that must match in order to be controlled by this replication controller
*
*/
@JsonProperty("replicaSelector")
@Valid
private Map replicaSelector;
/**
* number of replicas (desired or observed
*
*/
@JsonProperty("replicas")
private Integer replicas;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public ReplicationControllerState() {
}
/**
*
* @param replicas
* @param podTemplate
* @param replicaSelector
*/
public ReplicationControllerState(PodTemplate podTemplate, Map replicaSelector, Integer replicas) {
this.podTemplate = podTemplate;
this.replicaSelector = replicaSelector;
this.replicas = replicas;
}
/**
*
*
* @return
* The podTemplate
*/
@JsonProperty("podTemplate")
public PodTemplate getPodTemplate() {
return podTemplate;
}
/**
*
*
* @param podTemplate
* The podTemplate
*/
@JsonProperty("podTemplate")
public void setPodTemplate(PodTemplate podTemplate) {
this.podTemplate = podTemplate;
}
/**
* label keys and values that must match in order to be controlled by this replication controller
*
* @return
* The replicaSelector
*/
@JsonProperty("replicaSelector")
public Map getReplicaSelector() {
return replicaSelector;
}
/**
* label keys and values that must match in order to be controlled by this replication controller
*
* @param replicaSelector
* The replicaSelector
*/
@JsonProperty("replicaSelector")
public void setReplicaSelector(Map replicaSelector) {
this.replicaSelector = replicaSelector;
}
/**
* number of replicas (desired or observed
*
* @return
* The replicas
*/
@JsonProperty("replicas")
public Integer getReplicas() {
return replicas;
}
/**
* number of replicas (desired or observed
*
* @param replicas
* The replicas
*/
@JsonProperty("replicas")
public void setReplicas(Integer replicas) {
this.replicas = replicas;
}
@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(podTemplate).append(replicaSelector).append(replicas).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ReplicationControllerState) == false) {
return false;
}
ReplicationControllerState rhs = ((ReplicationControllerState) other);
return new EqualsBuilder().append(podTemplate, rhs.podTemplate).append(replicaSelector, rhs.replicaSelector).append(replicas, rhs.replicas).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy