io.fabric8.kubernetes.api.model.ReplicationControllerSpec 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({
"replicas",
"selector",
"template",
"templateRef"
})
public class ReplicationControllerSpec {
/**
* number of replicas desired
*
*/
@JsonProperty("replicas")
private Integer replicas;
/**
* label keys and values that must match in order to be controlled by this replication controller
*
*/
@JsonProperty("selector")
@Valid
private Map selector;
/**
*
*
*/
@JsonProperty("template")
@Valid
private PodTemplateSpec template;
/**
*
*
*/
@JsonProperty("templateRef")
@Valid
private ObjectReference templateRef;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public ReplicationControllerSpec() {
}
/**
*
* @param template
* @param selector
* @param replicas
* @param templateRef
*/
public ReplicationControllerSpec(Integer replicas, Map selector, PodTemplateSpec template, ObjectReference templateRef) {
this.replicas = replicas;
this.selector = selector;
this.template = template;
this.templateRef = templateRef;
}
/**
* number of replicas desired
*
* @return
* The replicas
*/
@JsonProperty("replicas")
public Integer getReplicas() {
return replicas;
}
/**
* number of replicas desired
*
* @param replicas
* The replicas
*/
@JsonProperty("replicas")
public void setReplicas(Integer replicas) {
this.replicas = replicas;
}
/**
* label keys and values that must match in order to be controlled by this replication controller
*
* @return
* The selector
*/
@JsonProperty("selector")
public Map getSelector() {
return selector;
}
/**
* label keys and values that must match in order to be controlled by this replication controller
*
* @param selector
* The selector
*/
@JsonProperty("selector")
public void setSelector(Map selector) {
this.selector = selector;
}
/**
*
*
* @return
* The template
*/
@JsonProperty("template")
public PodTemplateSpec getTemplate() {
return template;
}
/**
*
*
* @param template
* The template
*/
@JsonProperty("template")
public void setTemplate(PodTemplateSpec template) {
this.template = template;
}
/**
*
*
* @return
* The templateRef
*/
@JsonProperty("templateRef")
public ObjectReference getTemplateRef() {
return templateRef;
}
/**
*
*
* @param templateRef
* The templateRef
*/
@JsonProperty("templateRef")
public void setTemplateRef(ObjectReference templateRef) {
this.templateRef = templateRef;
}
@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(replicas).append(selector).append(template).append(templateRef).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ReplicationControllerSpec) == false) {
return false;
}
ReplicationControllerSpec rhs = ((ReplicationControllerSpec) other);
return new EqualsBuilder().append(replicas, rhs.replicas).append(selector, rhs.selector).append(template, rhs.template).append(templateRef, rhs.templateRef).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy