com.spotinst.sdkjava.model.bl.elastigroup.gcp.ElastigroupScaleUpResponseGcp Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.bl.elastigroup.gcp;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ElastigroupScaleUpResponseGcp {
@JsonIgnore
private Set isSet;
private List newPreemptibles;
private List newInstances;
public ElastigroupScaleUpResponseGcp() {
isSet = new HashSet<>();
}
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public List getNewPreemptibles() {
return newPreemptibles;
}
public void setNewPreemptibles(List newPreemptibles) {
isSet.add("newPreemptibles");
this.newPreemptibles = newPreemptibles;
}
public List getNewInstances() {
return newInstances;
}
public void setNewInstances(List newInstances) {
isSet.add("newInstances");
this.newInstances = newInstances;
}
public static class Builder {
private ElastigroupScaleUpResponseGcp elastigroupScaleUpResponseGcp;
private Builder() {
this.elastigroupScaleUpResponseGcp = new ElastigroupScaleUpResponseGcp();
}
public static Builder get() {
return new Builder();
}
public Builder setNewPreemptibles(final List newPreemptibles) {
elastigroupScaleUpResponseGcp.setNewPreemptibles(newPreemptibles);
return this;
}
public Builder setNewInstances(final List newInstances) {
elastigroupScaleUpResponseGcp.setNewInstances(newInstances);
return this;
}
public ElastigroupScaleUpResponseGcp build() {
return elastigroupScaleUpResponseGcp;
}
}
@JsonIgnore
public boolean isNewPreemptiblesSet() {
return isSet.contains("newPreemptibles");
}
@JsonIgnore
public boolean isNewInstancesSet() {
return isSet.contains("newInstances");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy