com.spotinst.sdkjava.model.bl.ocean.kubernetes.ImportAsgToClusterConfiguration Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.bl.ocean.kubernetes;
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 ImportAsgToClusterConfiguration {
@JsonIgnore
private Set isSet;
private List instanceTypes;
private ImportAsgToClusterConfiguration() {
isSet = new HashSet<>();
}
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public List getInstanceTypes() {
return instanceTypes;
}
public void setInstanceTypes(List instanceTypes) {
isSet.add("instanceTypes");
this.instanceTypes = instanceTypes;
}
public static class Builder {
private ImportAsgToClusterConfiguration importAsg;
private Builder() {
this.importAsg = new ImportAsgToClusterConfiguration();
}
public static Builder get() {
return new Builder();
}
public Builder setInstanceTypes(final List instanceTypes) {
importAsg.setInstanceTypes(instanceTypes);
return this;
}
public ImportAsgToClusterConfiguration build() {
return importAsg;
}
}
@JsonIgnore
public boolean isInstanceTypesSet() {
return isSet.contains("instanceTypes");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy