com.spotinst.sdkjava.model.bl.elastigroup.gcp.ElastigroupLaunchSpecificationGcp Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.bl.elastigroup.gcp;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class ElastigroupLaunchSpecificationGcp {
//region Members
@JsonIgnore
private Set isSet;
private List disks;
private List networkInterfaces;
//endregion
//region Constructor
private ElastigroupLaunchSpecificationGcp() {
isSet = new HashSet<>();
}
//endregion
//region Getters & Setters
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public List getDisks() {
return disks;
}
public void setDisks(List disks) {
isSet.add("disks");
this.disks = disks;
}
public List getNetworkInterfaces() { return networkInterfaces; }
public void setNetworkInterfaces(List networkInterfaces) {
isSet.add("networkInterfaces");
this.networkInterfaces = networkInterfaces;
}
//endregion
//region Builder class
public static class Builder {
private ElastigroupLaunchSpecificationGcp launchSpecification;
private Builder() {
this.launchSpecification = new ElastigroupLaunchSpecificationGcp();
}
public static Builder get() {
return new Builder();
}
public Builder setDisks(final List disks) {
launchSpecification.setDisks(disks);
return this;
}
public Builder setNetworkInterfaces(final List networkInterfaces) {
launchSpecification.setNetworkInterfaces(networkInterfaces);
return this;
}
public ElastigroupLaunchSpecificationGcp build() {
return launchSpecification;
}
}
//endregion
//region isSet methods
// Is disks Set boolean method
@JsonIgnore
public boolean isDisksSet() { return isSet.contains("disks"); }
// Is networkInterfaces Set boolean method
@JsonIgnore
public boolean isNetworkInterfacesSet() { return isSet.contains("networkInterfaces"); }
//endregion
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy