io.alauda.kubernetes.api.model.extensions.DeploymentStatus Maven / Gradle / Ivy
package io.alauda.kubernetes.api.model.extensions;
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 com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.alauda.kubernetes.api.model.Doneable;
import io.alauda.kubernetes.api.model.KubernetesResource;
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",
"availableReplicas",
"collisionCount",
"conditions",
"observedGeneration",
"readyReplicas",
"replicas",
"unavailableReplicas",
"updatedReplicas"
})
@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 DeploymentStatus implements KubernetesResource
{
/**
*
*
*/
@JsonProperty("availableReplicas")
private Integer availableReplicas;
/**
*
*
*/
@JsonProperty("collisionCount")
private Long collisionCount;
/**
*
*
*/
@JsonProperty("conditions")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Valid
private List conditions = new ArrayList();
/**
*
*
*/
@JsonProperty("observedGeneration")
private Long observedGeneration;
/**
*
*
*/
@JsonProperty("readyReplicas")
private Integer readyReplicas;
/**
*
*
*/
@JsonProperty("replicas")
private Integer replicas;
/**
*
*
*/
@JsonProperty("unavailableReplicas")
private Integer unavailableReplicas;
/**
*
*
*/
@JsonProperty("updatedReplicas")
private Integer updatedReplicas;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public DeploymentStatus() {
}
/**
*
* @param unavailableReplicas
* @param replicas
* @param readyReplicas
* @param collisionCount
* @param conditions
* @param updatedReplicas
* @param availableReplicas
* @param observedGeneration
*/
public DeploymentStatus(Integer availableReplicas, Long collisionCount, List conditions, Long observedGeneration, Integer readyReplicas, Integer replicas, Integer unavailableReplicas, Integer updatedReplicas) {
this.availableReplicas = availableReplicas;
this.collisionCount = collisionCount;
this.conditions = conditions;
this.observedGeneration = observedGeneration;
this.readyReplicas = readyReplicas;
this.replicas = replicas;
this.unavailableReplicas = unavailableReplicas;
this.updatedReplicas = updatedReplicas;
}
/**
*
*
* @return
* The availableReplicas
*/
@JsonProperty("availableReplicas")
public Integer getAvailableReplicas() {
return availableReplicas;
}
/**
*
*
* @param availableReplicas
* The availableReplicas
*/
@JsonProperty("availableReplicas")
public void setAvailableReplicas(Integer availableReplicas) {
this.availableReplicas = availableReplicas;
}
/**
*
*
* @return
* The collisionCount
*/
@JsonProperty("collisionCount")
public Long getCollisionCount() {
return collisionCount;
}
/**
*
*
* @param collisionCount
* The collisionCount
*/
@JsonProperty("collisionCount")
public void setCollisionCount(Long collisionCount) {
this.collisionCount = collisionCount;
}
/**
*
*
* @return
* The conditions
*/
@JsonProperty("conditions")
public List getConditions() {
return conditions;
}
/**
*
*
* @param conditions
* The conditions
*/
@JsonProperty("conditions")
public void setConditions(List conditions) {
this.conditions = conditions;
}
/**
*
*
* @return
* The observedGeneration
*/
@JsonProperty("observedGeneration")
public Long getObservedGeneration() {
return observedGeneration;
}
/**
*
*
* @param observedGeneration
* The observedGeneration
*/
@JsonProperty("observedGeneration")
public void setObservedGeneration(Long observedGeneration) {
this.observedGeneration = observedGeneration;
}
/**
*
*
* @return
* The readyReplicas
*/
@JsonProperty("readyReplicas")
public Integer getReadyReplicas() {
return readyReplicas;
}
/**
*
*
* @param readyReplicas
* The readyReplicas
*/
@JsonProperty("readyReplicas")
public void setReadyReplicas(Integer readyReplicas) {
this.readyReplicas = readyReplicas;
}
/**
*
*
* @return
* The replicas
*/
@JsonProperty("replicas")
public Integer getReplicas() {
return replicas;
}
/**
*
*
* @param replicas
* The replicas
*/
@JsonProperty("replicas")
public void setReplicas(Integer replicas) {
this.replicas = replicas;
}
/**
*
*
* @return
* The unavailableReplicas
*/
@JsonProperty("unavailableReplicas")
public Integer getUnavailableReplicas() {
return unavailableReplicas;
}
/**
*
*
* @param unavailableReplicas
* The unavailableReplicas
*/
@JsonProperty("unavailableReplicas")
public void setUnavailableReplicas(Integer unavailableReplicas) {
this.unavailableReplicas = unavailableReplicas;
}
/**
*
*
* @return
* The updatedReplicas
*/
@JsonProperty("updatedReplicas")
public Integer getUpdatedReplicas() {
return updatedReplicas;
}
/**
*
*
* @param updatedReplicas
* The updatedReplicas
*/
@JsonProperty("updatedReplicas")
public void setUpdatedReplicas(Integer updatedReplicas) {
this.updatedReplicas = updatedReplicas;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
}