io.alauda.kubernetes.api.model.HorizontalPodAutoscalerSpec Maven / Gradle / Ivy
package io.alauda.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 com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.alauda.kubernetes.api.model.Doneable;
import io.sundr.builder.annotations.Buildable;
import io.sundr.builder.annotations.Inline;
import lombok.EqualsAndHashCode;
import lombok.ToString;
/**
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
"apiVersion",
"kind",
"metadata",
"maxReplicas",
"minReplicas",
"scaleTargetRef",
"targetCPUUtilizationPercentage"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
@ToString
@EqualsAndHashCode
@Buildable(editableEnabled = false, validationEnabled = true, generateBuilderPackage = true, builderPackage = "io.alauda.kubernetes.api.builder", inline = @Inline(type = Doneable.class, prefix = "Doneable", value = "done"))
public class HorizontalPodAutoscalerSpec implements KubernetesResource
{
/**
*
*
*/
@JsonProperty("maxReplicas")
private Integer maxReplicas;
/**
*
*
*/
@JsonProperty("minReplicas")
private Integer minReplicas;
/**
*
*
*/
@JsonProperty("scaleTargetRef")
@Valid
private CrossVersionObjectReference scaleTargetRef;
/**
*
*
*/
@JsonProperty("targetCPUUtilizationPercentage")
private Integer targetCPUUtilizationPercentage;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public HorizontalPodAutoscalerSpec() {
}
/**
*
* @param maxReplicas
* @param minReplicas
* @param targetCPUUtilizationPercentage
* @param scaleTargetRef
*/
public HorizontalPodAutoscalerSpec(Integer maxReplicas, Integer minReplicas, CrossVersionObjectReference scaleTargetRef, Integer targetCPUUtilizationPercentage) {
this.maxReplicas = maxReplicas;
this.minReplicas = minReplicas;
this.scaleTargetRef = scaleTargetRef;
this.targetCPUUtilizationPercentage = targetCPUUtilizationPercentage;
}
/**
*
*
* @return
* The maxReplicas
*/
@JsonProperty("maxReplicas")
public Integer getMaxReplicas() {
return maxReplicas;
}
/**
*
*
* @param maxReplicas
* The maxReplicas
*/
@JsonProperty("maxReplicas")
public void setMaxReplicas(Integer maxReplicas) {
this.maxReplicas = maxReplicas;
}
/**
*
*
* @return
* The minReplicas
*/
@JsonProperty("minReplicas")
public Integer getMinReplicas() {
return minReplicas;
}
/**
*
*
* @param minReplicas
* The minReplicas
*/
@JsonProperty("minReplicas")
public void setMinReplicas(Integer minReplicas) {
this.minReplicas = minReplicas;
}
/**
*
*
* @return
* The scaleTargetRef
*/
@JsonProperty("scaleTargetRef")
public CrossVersionObjectReference getScaleTargetRef() {
return scaleTargetRef;
}
/**
*
*
* @param scaleTargetRef
* The scaleTargetRef
*/
@JsonProperty("scaleTargetRef")
public void setScaleTargetRef(CrossVersionObjectReference scaleTargetRef) {
this.scaleTargetRef = scaleTargetRef;
}
/**
*
*
* @return
* The targetCPUUtilizationPercentage
*/
@JsonProperty("targetCPUUtilizationPercentage")
public Integer getTargetCPUUtilizationPercentage() {
return targetCPUUtilizationPercentage;
}
/**
*
*
* @param targetCPUUtilizationPercentage
* The targetCPUUtilizationPercentage
*/
@JsonProperty("targetCPUUtilizationPercentage")
public void setTargetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage) {
this.targetCPUUtilizationPercentage = targetCPUUtilizationPercentage;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
}