com.spotinst.sdkjava.model.api.ocean.aks.ApiImportClusterStrategyConfiguration Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.api.ocean.aks;
import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.spotinst.sdkjava.client.rest.IPartialUpdateEntity;
import java.util.HashSet;
import java.util.Set;
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonFilter("PartialUpdateEntityFilter")
public class ApiImportClusterStrategyConfiguration implements IPartialUpdateEntity {
@JsonIgnore
private Set isSet;
private Boolean fallbackToOd;
private Integer spotPercentage;
public ApiImportClusterStrategyConfiguration() {
isSet = new HashSet<>();
}
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public Boolean getFallbackToOd() {
return fallbackToOd;
}
public void setFallbackToOd(Boolean fallbackToOd) {
isSet.add("fallbackToOd");
this.fallbackToOd = fallbackToOd;
}
public Integer getSpotPercentage() {
return spotPercentage;
}
public void setSpotPercentage(Integer spotPercentage) {
isSet.add("spotPercentage");
this.spotPercentage = spotPercentage;
}
@JsonIgnore
public boolean isFallbackToOdSet() {
return isSet.contains("fallbackToOd");
}
@JsonIgnore
public boolean isSpotPercentageSet() {
return isSet.contains("spotPercentage");
}
}