com.spotinst.sdkjava.model.bl.azure.statefulNode.StatefulNodeResourceNetwork Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.bl.azure.statefulNode;
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 StatefulNodeResourceNetwork {
@JsonIgnore
private Set isSet;
private StatefulNodeResourceVirtualNetwork virtualNetwork;
private List networkInterfaces;
private StatefulNodeResourceNetwork() {
isSet = new HashSet<>();
}
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public StatefulNodeResourceVirtualNetwork getVirtualNetwork() {
return virtualNetwork;
}
public void setVirtualNetwork(StatefulNodeResourceVirtualNetwork virtualNetwork) {
isSet.add("virtualNetwork");
this.virtualNetwork = virtualNetwork;
}
public List getNetworkInterfaces() {
return networkInterfaces;
}
public void setNetworkInterfaces(List networkInterfaces) {
isSet.add("networkInterfaces");
this.networkInterfaces = networkInterfaces;
}
public static class Builder {
private StatefulNodeResourceNetwork network;
private Builder() {
this.network = new StatefulNodeResourceNetwork();
}
public static Builder get() {
return new Builder();
}
public Builder setVirtualNetwork(final StatefulNodeResourceVirtualNetwork virtualNetwork) {
network.setVirtualNetwork(virtualNetwork);
return this;
}
public Builder setNetworkInterfaces(final List networkInterfaces) {
network.setNetworkInterfaces(networkInterfaces);
return this;
}
public StatefulNodeResourceNetwork build() {
return network;
}
}
@JsonIgnore
public boolean isVirtualNetworkSet() {
return isSet.contains("virtualNetwork");
}
@JsonIgnore
public boolean isNetworkInterfacesSet() {
return isSet.contains("networkInterfaces");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy