com.nutanix.dp1.vmm.vmm.v4.ahv.config.Gpu Maven / Gradle / Ivy
/*
* Generated file ..
*
* Product version: 4.0.3-alpha-1
*
* Part of the Nutanix Vmm Versioned APIs
*
* (c) 2023 Nutanix Inc. All rights reserved
*
*/
package com.nutanix.dp1.vmm.vmm.v4.ahv.config;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.AccessLevel;
import com.nutanix.devplatform.models.PrettyModeViews.*;
import com.fasterxml.jackson.annotation.JsonView;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.nutanix.dp1.vmm.deserializers.VmmObjectTypeTypedObject;
import javax.validation.constraints.*;
import java.util.List;
import static com.nutanix.dp1.vmm.deserializers.VmmDeserializerUtils.*;
/**
* Graphics resource information for the Virtual Machine.
*/
@EqualsAndHashCode(callSuper=true)
@Data
@lombok.extern.slf4j.Slf4j
public class Gpu extends com.nutanix.dp1.vmm.common.v1.response.ExternalizableAbstractModel implements java.io.Serializable, VmmObjectTypeTypedObject {
public Gpu() {
super();
}
@lombok.Builder(builderMethodName = "GpuBuilder")
public Gpu(String tenantId, String extId, java.util.List links, com.nutanix.dp1.vmm.vmm.v4.ahv.config.GpuMode mode, Integer deviceId, com.nutanix.dp1.vmm.vmm.v4.ahv.config.GpuVendor vendor, com.nutanix.dp1.vmm.vmm.v4.ahv.config.SBDF pciAddress, String guestDriverVersion, String name, Long frameBufferSizeBytes, Integer numVirtualDisplayHeads, Integer fraction) {
super(tenantId, extId, links);
this.setMode(mode);
this.setDeviceId(deviceId);
this.setVendor(vendor);
this.setPciAddress(pciAddress);
this.setGuestDriverVersion(guestDriverVersion);
this.setName(name);
this.setFrameBufferSizeBytes(frameBufferSizeBytes);
this.setNumVirtualDisplayHeads(numVirtualDisplayHeads);
this.setFraction(fraction);
}
@Override
protected String initialize$objectType() {
return "vmm.v4.ahv.config.Gpu";
}
@Override
protected String initialize$fqObjectType() {
return "vmm.v4.r0.a1.ahv.config.Gpu";
}
private String guestDriverVersion = null;
/**
* Last determined guest driver version.
*/
public void setGuestDriverVersion(String guestDriverVersion) {
if (this.guestDriverVersion == null) {
this.guestDriverVersion = guestDriverVersion;
}
else {
log.warn("Read-only property guestDriverVersion already contains a non-null value and cannot be set again");
}
}
private String name = null;
/**
* Name of the GPU resource.
*/
public void setName(String name) {
if (this.name == null) {
this.name = name;
}
else {
log.warn("Read-only property name already contains a non-null value and cannot be set again");
}
}
private Long frameBufferSizeBytes = null;
/**
* GPU frame buffer size in bytes.
*/
public void setFrameBufferSizeBytes(Long frameBufferSizeBytes) {
if (this.frameBufferSizeBytes == null) {
this.frameBufferSizeBytes = frameBufferSizeBytes;
}
else {
log.warn("Read-only property frameBufferSizeBytes already contains a non-null value and cannot be set again");
}
}
private Integer numVirtualDisplayHeads = null;
/**
* Number of supported virtual display heads.
*/
public void setNumVirtualDisplayHeads(Integer numVirtualDisplayHeads) {
if (this.numVirtualDisplayHeads == null) {
this.numVirtualDisplayHeads = numVirtualDisplayHeads;
}
else {
log.warn("Read-only property numVirtualDisplayHeads already contains a non-null value and cannot be set again");
}
}
private Integer fraction = null;
/**
* Fraction of the physical GPU assigned.
*/
public void setFraction(Integer fraction) {
if (this.fraction == null) {
this.fraction = fraction;
}
else {
log.warn("Read-only property fraction already contains a non-null value and cannot be set again");
}
}
/**
*
*/
@JsonProperty("mode")
public com.nutanix.dp1.vmm.vmm.v4.ahv.config.GpuMode mode = null;
/**
* The device Id of the GPU.
*/
@JsonProperty("deviceId")
public Integer deviceId = null;
/**
*
*/
@JsonProperty("vendor")
public com.nutanix.dp1.vmm.vmm.v4.ahv.config.GpuVendor vendor = null;
/**
*
*/
@JsonProperty("pciAddress")
public com.nutanix.dp1.vmm.vmm.v4.ahv.config.SBDF pciAddress = null;
}