com.spotinst.sdkjava.model.bl.ocean.kubernetes.K8sVngResourceLimits 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 K8sVngResourceLimits {
@JsonIgnore
private Set isSet;
private Integer maxInstanceCount;
private Integer minInstanceCount;
private K8sVngResourceLimits() {
isSet = new HashSet<>();
}
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public Integer getMaxInstanceCount() {
return maxInstanceCount;
}
public void setMaxInstanceCount(Integer maxInstanceCount) {
isSet.add("maxInstanceCount");
this.maxInstanceCount = maxInstanceCount;
}
public Integer getMinInstanceCount() {
return minInstanceCount;
}
public void setMinInstanceCount(Integer minInstanceCount) {
isSet.add("minInstanceCount");
this.minInstanceCount = minInstanceCount;
}
public static class Builder {
private K8sVngResourceLimits strategy;
private Builder() {
this.strategy = new K8sVngResourceLimits();
}
public static Builder get() {
return new Builder();
}
public Builder setMaxInstanceCount(final Integer maxInstanceCount) {
strategy.setMaxInstanceCount(maxInstanceCount);
return this;
}
public Builder setMinInstanceCount(final Integer minInstanceCount) {
strategy.setMinInstanceCount(minInstanceCount);
return this;
}
public K8sVngResourceLimits build() {
return strategy;
}
}
@JsonIgnore
public boolean isMaxInstanceCountSet() {
return isSet.contains("maxInstanceCount");
}
@JsonIgnore
public boolean isMinInstanceCountSet() {
return isSet.contains("minInstanceCount");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy