com.spotinst.sdkjava.model.bl.oceanCD.RolloutSpecStrategy Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.bl.oceanCD;
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 RolloutSpecStrategy {
@JsonIgnore
private Set isSet;
private String name;
private List args;
private RolloutSpecStrategy() {
isSet = new HashSet<>();
}
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public String getName() {
return name;
}
public void setName(String name) {
isSet.add("name");
this.name = name;
}
public List getArgs() {
return args;
}
public void setArgs(List args) {
isSet.add("args");
this.args = args;
}
public static class Builder {
private RolloutSpecStrategy rolloutSpecStrategy;
private Builder() {
this.rolloutSpecStrategy = new RolloutSpecStrategy();
}
public static Builder get() {
return new Builder();
}
public Builder setName(final String name) {
rolloutSpecStrategy.setName(name);
return this;
}
public Builder setArgs(final List args) {
rolloutSpecStrategy.setArgs(args);
return this;
}
public RolloutSpecStrategy build() {
return rolloutSpecStrategy;
}
}
@JsonIgnore
public boolean isNameSet() {
return isSet.contains("name");
}
@JsonIgnore
public boolean isArgsSet() {
return isSet.contains("args");
}
}