com.spotinst.sdkjava.model.bl.azure.elastiGroup.V3.VmHealthinessAzure 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 com.fasterxml.jackson.annotation.JsonInclude;
import com.spotinst.sdkjava.enums.VmHealthStatusEnumAzure;
import com.spotinst.sdkjava.enums.VmLifeCycleEnumAzure;
import java.util.HashSet;
import java.util.Set;
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class VmHealthinessAzure {
@JsonIgnore
private Set isSet;
private VmHealthStatusEnumAzure healthStatus;
private VmLifeCycleEnumAzure lifeCycle;
private String vmName;
private VmHealthinessAzure() {
isSet = new HashSet<>();
}
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public VmHealthStatusEnumAzure getHealthStatus() {
return healthStatus;
}
public void setHealthStatus(VmHealthStatusEnumAzure healthStatus) {
isSet.add("healthStatus");
this.healthStatus = healthStatus;
}
public VmLifeCycleEnumAzure getLifeCycle() {
return lifeCycle;
}
public void setLifeCycle(VmLifeCycleEnumAzure lifeCycle) {
isSet.add("lifeCycle");
this.lifeCycle = lifeCycle;
}
public String getVmName() {
return vmName;
}
public void setVmName(String vmName) {
isSet.add("vmName");
this.vmName = vmName;
}
public static class Builder {
private VmHealthinessAzure vmHealthiness;
private Builder() {
this.vmHealthiness = new VmHealthinessAzure();
}
public static Builder get() {
return new Builder();
}
public Builder setHealthStatus(final VmHealthStatusEnumAzure healthStatus) {
vmHealthiness.setHealthStatus(healthStatus);
return this;
}
public Builder setLifeCycle(final VmLifeCycleEnumAzure lifeCycle) {
vmHealthiness.setLifeCycle(lifeCycle);
return this;
}
public Builder setVmName(final String vmName) {
vmHealthiness.setVmName(vmName);
return this;
}
public VmHealthinessAzure build() {
return vmHealthiness;
}
}
@JsonIgnore
public boolean isHealthStatusSet() {
return isSet.contains("healthStatus");
}
@JsonIgnore
public boolean isLifeCycleSet() {
return isSet.contains("lifeCycle");
}
@JsonIgnore
public boolean isVmNameSet() {
return isSet.contains("vmName");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy