com.spotinst.sdkjava.model.api.azure.elastiGroup.V3.ApiDetachVmsAzure Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.api.azure.elastiGroup.V3;
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 ApiDetachVmsAzure implements IPartialUpdateEntity {
@JsonIgnore
private Set isSet;
private String drainingTimeout;
private Boolean shouldDecrementTargetCapacity;
private Boolean shouldTerminateVms;
private List vmsToDetach;
public ApiDetachVmsAzure() {
isSet = new HashSet<>();
}
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public String getDrainingTimeout() {
return drainingTimeout;
}
public void setDrainingTimeout(String drainingTimeout) {
isSet.add("drainingTimeout");
this.drainingTimeout = drainingTimeout;
}
public Boolean getShouldDecrementTargetCapacity() {
return shouldDecrementTargetCapacity;
}
public void setShouldDecrementTargetCapacity(Boolean shouldDecrementTargetCapacity) {
isSet.add("shouldDecrementTargetCapacity");
this.shouldDecrementTargetCapacity = shouldDecrementTargetCapacity;
}
public Boolean getShouldTerminateVms() {
return shouldTerminateVms;
}
public void setShouldTerminateVms(Boolean shouldTerminateVms) {
isSet.add("shouldTerminateVms");
this.shouldTerminateVms = shouldTerminateVms;
}
public List getVmsToDetach() {
return vmsToDetach;
}
public void setVmsToDetach(List vmsToDetach) {
isSet.add("vmsToDetach");
this.vmsToDetach = vmsToDetach;
}
@JsonIgnore
public boolean isDrainingTimeoutSet() {
return isSet.contains("drainingTimeout");
}
@JsonIgnore
public boolean isShouldDecrementTargetCapacitySet() {
return isSet.contains("shouldDecrementTargetCapacity");
}
@JsonIgnore
public boolean isShouldTerminateVmsSet() {
return isSet.contains("shouldTerminateVms");
}
@JsonIgnore
public boolean isVmsToDetachSet() {
return isSet.contains("vmsToDetach");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy