com.spotinst.sdkjava.model.bl.ocean.aks.ClusterVngLaunchSpecificaion Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.bl.ocean.aks;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class ClusterVngLaunchSpecificaion {
@JsonIgnore
private Set isSet;
private List tags;
private ClusterVngOsDisk osDisk;
private ClusterVngLaunchSpecificaion() {
isSet = new HashSet<>();
}
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public List getTags() {
return tags;
}
public void setTags(List tags) {
isSet.add("tags");
this.tags = tags;
}
public ClusterVngOsDisk getOsDisk() {
return osDisk;
}
public void setOsDisk(ClusterVngOsDisk osDisk) {
isSet.add("osDisk");
this.osDisk = osDisk;
}
public static class Builder {
private ClusterVngLaunchSpecificaion launchSpec;
private Builder() {
this.launchSpec = new ClusterVngLaunchSpecificaion();
}
public static ClusterVngLaunchSpecificaion.Builder get() {
return new Builder();
}
public ClusterVngLaunchSpecificaion.Builder setTags(final List tags) {
launchSpec.setTags(tags);
return this;
}
public ClusterVngLaunchSpecificaion.Builder setOsDisk(final ClusterVngOsDisk osDisk) {
launchSpec.setOsDisk(osDisk);
return this;
}
public ClusterVngLaunchSpecificaion build() {
return launchSpec;
}
}
@JsonIgnore
public boolean isTagsSet() {
return isSet.contains("tags");
}
@JsonIgnore
public boolean isOsDiskSet() {
return isSet.contains("osDisk");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy