MachineHardwareProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.MachineHardwareProfile

Implements

public final class MachineHardwareProfile
implements JsonSerializable<MachineHardwareProfile>

The hardware and GPU settings of the machine.

Constructor Summary

Constructor Description
MachineHardwareProfile()

Creates an instance of MachineHardwareProfile class.

Method Summary

Modifier and Type Method and Description
static MachineHardwareProfile fromJson(JsonReader jsonReader)

Reads an instance of MachineHardwareProfile from the JsonReader.

GpuInstanceProfile gpuInstanceProfile()

Get the gpuInstanceProfile property: GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU.

GpuProfile gpuProfile()

Get the gpuProfile property: The GPU settings of the machine.

JsonWriter toJson(JsonWriter jsonWriter)
Boolean ultraSsdEnabled()

Get the ultraSsdEnabled property: Whether to enable UltraSSD.

void validate()

Validates the instance.

String vmSize()

Get the vmSize property: The size of the VM.

MachineHardwareProfile withGpuInstanceProfile(GpuInstanceProfile gpuInstanceProfile)

Set the gpuInstanceProfile property: GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU.

MachineHardwareProfile withGpuProfile(GpuProfile gpuProfile)

Set the gpuProfile property: The GPU settings of the machine.

MachineHardwareProfile withUltraSsdEnabled(Boolean ultraSsdEnabled)

Set the ultraSsdEnabled property: Whether to enable UltraSSD.

MachineHardwareProfile withVmSize(String vmSize)

Set the vmSize property: The size of the VM.

Methods inherited from java.lang.Object

Constructor Details

MachineHardwareProfile

public MachineHardwareProfile()

Creates an instance of MachineHardwareProfile class.

Method Details

fromJson

public static MachineHardwareProfile fromJson(JsonReader jsonReader)

Reads an instance of MachineHardwareProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MachineHardwareProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MachineHardwareProfile.

gpuInstanceProfile

public GpuInstanceProfile gpuInstanceProfile()

Get the gpuInstanceProfile property: GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU.

Returns:

the gpuInstanceProfile value.

gpuProfile

public GpuProfile gpuProfile()

Get the gpuProfile property: The GPU settings of the machine.

Returns:

the gpuProfile value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

ultraSsdEnabled

public Boolean ultraSsdEnabled()

Get the ultraSsdEnabled property: Whether to enable UltraSSD.

Returns:

the ultraSsdEnabled value.

validate

public void validate()

Validates the instance.

vmSize

public String vmSize()

Get the vmSize property: The size of the VM. VM size availability varies by region. If a node contains insufficient compute resources (memory, cpu, etc) pods might fail to run correctly. For more details on restricted VM sizes, see: https://docs.microsoft.com/azure/aks/quotas-skus-regions.

Returns:

the vmSize value.

withGpuInstanceProfile

public MachineHardwareProfile withGpuInstanceProfile(GpuInstanceProfile gpuInstanceProfile)

Set the gpuInstanceProfile property: GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU.

Parameters:

gpuInstanceProfile - the gpuInstanceProfile value to set.

Returns:

the MachineHardwareProfile object itself.

withGpuProfile

public MachineHardwareProfile withGpuProfile(GpuProfile gpuProfile)

Set the gpuProfile property: The GPU settings of the machine.

Parameters:

gpuProfile - the gpuProfile value to set.

Returns:

the MachineHardwareProfile object itself.

withUltraSsdEnabled

public MachineHardwareProfile withUltraSsdEnabled(Boolean ultraSsdEnabled)

Set the ultraSsdEnabled property: Whether to enable UltraSSD.

Parameters:

ultraSsdEnabled - the ultraSsdEnabled value to set.

Returns:

the MachineHardwareProfile object itself.

withVmSize

public MachineHardwareProfile withVmSize(String vmSize)

Set the vmSize property: The size of the VM. VM size availability varies by region. If a node contains insufficient compute resources (memory, cpu, etc) pods might fail to run correctly. For more details on restricted VM sizes, see: https://docs.microsoft.com/azure/aks/quotas-skus-regions.

Parameters:

vmSize - the vmSize value to set.

Returns:

the MachineHardwareProfile object itself.

Applies to