com.spotinst.sdkjava.model.ElastigroupSchedulingConfiguration Maven / Gradle / Ivy
package com.spotinst.sdkjava.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class ElastigroupSchedulingConfiguration {
//region Members
@JsonIgnore
private Set isSet;
private List tasks;
//endregion
//region Constructor
private ElastigroupSchedulingConfiguration() {
isSet = new HashSet<>();
}
//endregion
//region Getters & Setters
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public List getTasks() {
return tasks;
}
public void setTasks(List tasks) {
isSet.add("tasks");
this.tasks = tasks;
}
//endregion
//region Builder class
public static class Builder {
private ElastigroupSchedulingConfiguration scheduling;
private Builder() {
this.scheduling = new ElastigroupSchedulingConfiguration();
}
public static Builder get() {
return new Builder();
}
public Builder setTasks(final List tasks) {
scheduling.setTasks(tasks);
return this;
}
public ElastigroupSchedulingConfiguration build() {
return scheduling;
}
}
//endregion
//region isSet methods
@JsonIgnore
public boolean isTasksSet() {
return isSet.contains("tasks");
}
//endregion
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy