com.spotinst.sdkjava.model.bl.elastigroup.gcp.ElastigroupSubnetsGcp Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.bl.elastigroup.gcp;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.HashSet;
import java.util.Set;
public class ElastigroupSubnetsGcp {
//region Members
@JsonIgnore
private Set isSet;
private String region;
private Set subnetNames;
//endregion
//region Constructors
private ElastigroupSubnetsGcp() {
isSet = new HashSet<>();
}
//endregion
//region Getters & Setters
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
//region subnetNames
public Set getSubnetNames() {
return subnetNames;
}
public void setSubnetNames(Set subnetNames) {
isSet.add("subnetNames");
this.subnetNames = subnetNames;
}
//endregion
//region region
public String getRegion() {
return region;
}
public void setRegion(String region) {
isSet.add("region");
this.region = region;
}
//endregion
//region Builder class
public static class Builder {
private ElastigroupSubnetsGcp instanceTypes;
private Builder() {
this.instanceTypes = new ElastigroupSubnetsGcp();
}
public static Builder get() {
return new Builder();
}
public Builder setRegion(final String regionType) {
instanceTypes.setRegion(regionType);
return this;
}
public Builder setSubnetNames(final Set subnetNamesTypes) {
instanceTypes.setSubnetNames(subnetNamesTypes);
return this;
}
public ElastigroupSubnetsGcp build() {
return instanceTypes;
}
}
//endregion
//region isSet methods
// Is region Set boolean method
@JsonIgnore
public boolean isRegionSet() { return isSet.contains("region"); }
// Is subnetNames Set boolean method
@JsonIgnore
public boolean isSubnetNamesSet() { return isSet.contains("subnetNames"); }
//endregion
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy