com.spotinst.sdkjava.model.api.azure.statefulNode.ApiStatefulNodeResourceStorage Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.api.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 ApiStatefulNodeResourceStorage {
@JsonIgnore
private Set isSet;
private ApiStatefulNodeResourceOsDisk osDisk;
private List dataDisks;
public ApiStatefulNodeResourceStorage() {
isSet = new HashSet<>();
}
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public List getDataDisks() {
return dataDisks;
}
public void setDataDisks(List dataDisks) {
isSet.add("dataDisks");
this.dataDisks = dataDisks;
}
public ApiStatefulNodeResourceOsDisk getOsDisk() {
return osDisk;
}
public void setOsDisk(ApiStatefulNodeResourceOsDisk osDisk) {
isSet.add("osDisk");
this.osDisk = osDisk;
}
@JsonIgnore
public boolean isDataDisksSet() {
return isSet.contains("dataDisks");
}
@JsonIgnore
public boolean isOsDiskSet() { return isSet.contains("osDisk"); }
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy