com.spotinst.sdkjava.model.bl.aws.managedInstance.RevertToSpot Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.bl.aws.managedInstance;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.spotinst.sdkjava.enums.AwsPerformAtEnum;
import java.util.HashSet;
import java.util.Set;
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class RevertToSpot {
@JsonIgnore
private Set isSet;
private AwsPerformAtEnum performAt;
private RevertToSpot() {
isSet = new HashSet<>();
}
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public AwsPerformAtEnum getPerformAt() {
return performAt;
}
public void setPerformAt(AwsPerformAtEnum performAt) {
isSet.add("performAt");
this.performAt = performAt;
}
public static class Builder {
private RevertToSpot revertToSpot;
private Builder() {
this.revertToSpot = new RevertToSpot();
}
public static Builder get() {
return new Builder();
}
public Builder setPerformAt(final AwsPerformAtEnum performAt) {
revertToSpot.setPerformAt(performAt);
return this;
}
public RevertToSpot build() {
return revertToSpot;
}
}
@JsonIgnore
public boolean isPerformAtSet() {
return isSet.contains("performAt");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy