com.spotinst.sdkjava.model.bl.elastigroup.gcp.ElastigroupScaleUpNewInstancesGcp Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.bl.elastigroup.gcp;
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.Set;
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ElastigroupScaleUpNewInstancesGcp {
@JsonIgnore
private Set isSet;
private String instanceName;
public ElastigroupScaleUpNewInstancesGcp() {
isSet = new HashSet<>();
}
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public String getInstanceName() {
return instanceName;
}
public void setInstanceName(String instanceName) {
isSet.add("instanceName");
this.instanceName = instanceName;
}
public static class Builder {
private ElastigroupScaleUpNewInstancesGcp elastigroupScaleUpNewInstancesGcp;
private Builder() {
this.elastigroupScaleUpNewInstancesGcp = new ElastigroupScaleUpNewInstancesGcp();
}
public static Builder get() {
return new Builder();
}
public Builder setInstanceName(final String instanceName) {
elastigroupScaleUpNewInstancesGcp.setInstanceName(instanceName);
return this;
}
public ElastigroupScaleUpNewInstancesGcp build() {
return elastigroupScaleUpNewInstancesGcp;
}
}
@JsonIgnore
public boolean isInstanceNameSet() {
return isSet.contains("instanceName");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy