com.spotinst.sdkjava.model.bl.azure.elastiGroup.V3.LoadBalancersConfigAzure Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.bl.azure.elastiGroup.V3;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
@JsonIgnoreProperties(ignoreUnknown = true)
public class LoadBalancersConfigAzure {
//region Members
private Set isSet = new HashSet<>();
private List loadBalancers;
//endregion
//region Setters&Getters
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public List getLoadBalancers() {
return loadBalancers;
}
public void setLoadBalancers(List loadBalancers) {
isSet.add("loadBalancers");
this.loadBalancers = loadBalancers;
}
//endregion
//region Builder class
public static class Builder {
private LoadBalancersConfigAzure loadBalancersConfig;
private Builder() {
this.loadBalancersConfig = new LoadBalancersConfigAzure();
}
public static LoadBalancersConfigAzure.Builder get() {
return new Builder();
}
public LoadBalancersConfigAzure.Builder setLoadBalancers(final List loadBalancers) {
loadBalancersConfig.setLoadBalancers(loadBalancers);
return this;
}
public LoadBalancersConfigAzure build() {
// TODO : Validations
return loadBalancersConfig;
}
}
//endregion
//region isSet Methods
@JsonIgnore
public boolean isLoadBalancersSet() {
return isSet.contains("loadBalancers");
}
//endregion
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy