com.spotinst.sdkjava.model.api.aws.managedInstance.ApiStrategy Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.api.aws.managedInstance;
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.List;
import java.util.Set;
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonFilter("PartialUpdateEntityFilter")
public class ApiStrategy implements IPartialUpdateEntity {
@JsonIgnore
private Set isSet;
private Integer drainingTimeout;
private Boolean fallbackToOd;
private String lifeCycle;
private List optimizationWindows;
private String orientation;
private ApiRevertToSpot revertToSpot;
private Boolean utilizeReservedInstances;
public ApiStrategy() {
isSet = new HashSet<>();
}
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public Integer getDrainingTimeout() {
return drainingTimeout;
}
public void setDrainingTimeout(Integer drainingTimeout) {
isSet.add("drainingTimeout");
this.drainingTimeout = drainingTimeout;
}
public Boolean getFallbackToOd() {
return fallbackToOd;
}
public void setFallbackToOd(Boolean fallbackToOd) {
isSet.add("fallbackToOd");
this.fallbackToOd = fallbackToOd;
}
public String getLifeCycle() {
return lifeCycle;
}
public void setLifeCycle(String lifeCycle) {
isSet.add("lifeCycle");
this.lifeCycle = lifeCycle;
}
public List getOptimizationWindows() {
return optimizationWindows;
}
public void setOptimizationWindows(List optimizationWindows) {
isSet.add("optimizationWindows");
this.optimizationWindows = optimizationWindows;
}
public String getOrientation() {
return orientation;
}
public void setOrientation(String orientation) {
isSet.add("orientation");
this.orientation = orientation;
}
public ApiRevertToSpot getRevertToSpot() {
return revertToSpot;
}
public void setRevertToSpot(ApiRevertToSpot revertToSpot) {
isSet.add("revertToSpot");
this.revertToSpot = revertToSpot;
}
public Boolean getUtilizeReservedInstances() {
return utilizeReservedInstances;
}
public void setUtilizeReservedInstances(Boolean utilizeReservedInstances) {
isSet.add("utilizeReservedInstances");
this.utilizeReservedInstances = utilizeReservedInstances;
}
@JsonIgnore
public boolean isDrainingTimeoutSet() {
return isSet.contains("drainingTimeout");
}
@JsonIgnore
public boolean isFallbackToOdSet() {
return isSet.contains("fallbackToOd");
}
@JsonIgnore
public boolean isLifeCycleSet() {
return isSet.contains("lifeCycle");
}
@JsonIgnore
public boolean isOptimizationWindowsSet() {
return isSet.contains("optimizationWindows");
}
@JsonIgnore
public boolean isOrientationSet() {
return isSet.contains("orientation");
}
@JsonIgnore
public boolean isRevertToSpotSet() {
return isSet.contains("revertToSpot");
}
@JsonIgnore
public boolean isUtilizeReservedInstancesSet() {
return isSet.contains("utilizeReservedInstances");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy