com.spotinst.sdkjava.model.bl.ocean.kubernetes.ClusterDownSpecification Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.bl.ocean.kubernetes;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.HashSet;
import java.util.Set;
public class ClusterDownSpecification {
@JsonIgnore
private Set isSet;
private Integer maxScaleDownPercentage;
private ClusterDownSpecification() {
isSet = new HashSet<>();
}
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public Integer getMaxScaleDownPercentage() {
return maxScaleDownPercentage;
}
public void setMaxScaleDownPercentage(Integer maxScaleDownPercentage) {
isSet.add("maxScaleDownPercentage");
this.maxScaleDownPercentage = maxScaleDownPercentage;
}
public static class Builder {
private ClusterDownSpecification down;
private Builder() {
this.down = new ClusterDownSpecification();
}
public static ClusterDownSpecification.Builder get() {
return new Builder();
}
public ClusterDownSpecification.Builder setMaxScaleDownPercentage(final Integer maxScaleDownPercentage) {
down.setMaxScaleDownPercentage(maxScaleDownPercentage);
return this;
}
public ClusterDownSpecification build() {
return down;
}
}
@JsonIgnore
public boolean isMaxScaleDownPercentageSet() {
return isSet.contains("maxScaleDownPercentage");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy