VirtualMachineTemplateProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.scvmm.models.VirtualMachineTemplateProperties

Implements

public final class VirtualMachineTemplateProperties
implements JsonSerializable<VirtualMachineTemplateProperties>

Defines the resource properties.

Constructor Summary

Constructor Description
VirtualMachineTemplateProperties()

Creates an instance of VirtualMachineTemplateProperties class.

Method Summary

Modifier and Type Method and Description
String computerName()

Get the computerName property: Gets computer name.

Integer cpuCount()

Get the cpuCount property: Gets the desired number of vCPUs for the vm.

List<VirtualDisk> disks()

Get the disks property: Gets the disks of the template.

DynamicMemoryEnabled dynamicMemoryEnabled()

Get the dynamicMemoryEnabled property: Gets a value indicating whether to enable dynamic memory or not.

Integer dynamicMemoryMaxMB()

Get the dynamicMemoryMaxMB property: Gets the max dynamic memory for the vm.

Integer dynamicMemoryMinMB()

Get the dynamicMemoryMinMB property: Gets the min dynamic memory for the vm.

static VirtualMachineTemplateProperties fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineTemplateProperties from the JsonReader.

Integer generation()

Get the generation property: Gets the generation for the vm.

String inventoryItemId()

Get the inventoryItemId property: Gets or sets the inventory Item ID for the resource.

IsCustomizable isCustomizable()

Get the isCustomizable property: Gets a value indicating whether the vm template is customizable or not.

IsHighlyAvailable isHighlyAvailable()

Get the isHighlyAvailable property: Gets highly available property.

LimitCpuForMigration limitCpuForMigration()

Get the limitCpuForMigration property: Gets a value indicating whether to enable processor compatibility mode for live migration of VMs.

Integer memoryMB()

Get the memoryMB property: MemoryMB is the desired size of a virtual machine's memory, in MB.

List<NetworkInterface> networkInterfaces()

Get the networkInterfaces property: Gets the network interfaces of the template.

String osName()

Get the osName property: Gets os name.

OsType osType()

Get the osType property: Gets the type of the os.

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String uuid()

Get the uuid property: Unique ID of the virtual machine template.

void validate()

Validates the instance.

String vmmServerId()

Get the vmmServerId property: ARM Id of the vmmServer resource in which this resource resides.

VirtualMachineTemplateProperties withInventoryItemId(String inventoryItemId)

Set the inventoryItemId property: Gets or sets the inventory Item ID for the resource.

VirtualMachineTemplateProperties withUuid(String uuid)

Set the uuid property: Unique ID of the virtual machine template.

VirtualMachineTemplateProperties withVmmServerId(String vmmServerId)

Set the vmmServerId property: ARM Id of the vmmServer resource in which this resource resides.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineTemplateProperties

public VirtualMachineTemplateProperties()

Creates an instance of VirtualMachineTemplateProperties class.

Method Details

computerName

public String computerName()

Get the computerName property: Gets computer name.

Returns:

the computerName value.

cpuCount

public Integer cpuCount()

Get the cpuCount property: Gets the desired number of vCPUs for the vm.

Returns:

the cpuCount value.

disks

public List<VirtualDisk> disks()

Get the disks property: Gets the disks of the template.

Returns:

the disks value.

dynamicMemoryEnabled

public DynamicMemoryEnabled dynamicMemoryEnabled()

Get the dynamicMemoryEnabled property: Gets a value indicating whether to enable dynamic memory or not.

Returns:

the dynamicMemoryEnabled value.

dynamicMemoryMaxMB

public Integer dynamicMemoryMaxMB()

Get the dynamicMemoryMaxMB property: Gets the max dynamic memory for the vm.

Returns:

the dynamicMemoryMaxMB value.

dynamicMemoryMinMB

public Integer dynamicMemoryMinMB()

Get the dynamicMemoryMinMB property: Gets the min dynamic memory for the vm.

Returns:

the dynamicMemoryMinMB value.

fromJson

public static VirtualMachineTemplateProperties fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineTemplateProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachineTemplateProperties 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 VirtualMachineTemplateProperties.

generation

public Integer generation()

Get the generation property: Gets the generation for the vm.

Returns:

the generation value.

inventoryItemId

public String inventoryItemId()

Get the inventoryItemId property: Gets or sets the inventory Item ID for the resource.

Returns:

the inventoryItemId value.

isCustomizable

public IsCustomizable isCustomizable()

Get the isCustomizable property: Gets a value indicating whether the vm template is customizable or not.

Returns:

the isCustomizable value.

isHighlyAvailable

public IsHighlyAvailable isHighlyAvailable()

Get the isHighlyAvailable property: Gets highly available property.

Returns:

the isHighlyAvailable value.

limitCpuForMigration

public LimitCpuForMigration limitCpuForMigration()

Get the limitCpuForMigration property: Gets a value indicating whether to enable processor compatibility mode for live migration of VMs.

Returns:

the limitCpuForMigration value.

memoryMB

public Integer memoryMB()

Get the memoryMB property: MemoryMB is the desired size of a virtual machine's memory, in MB.

Returns:

the memoryMB value.

networkInterfaces

public List<NetworkInterface> networkInterfaces()

Get the networkInterfaces property: Gets the network interfaces of the template.

Returns:

the networkInterfaces value.

osName

public String osName()

Get the osName property: Gets os name.

Returns:

the osName value.

osType

public OsType osType()

Get the osType property: Gets the type of the os.

Returns:

the osType value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of the resource.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

uuid

public String uuid()

Get the uuid property: Unique ID of the virtual machine template.

Returns:

the uuid value.

validate

public void validate()

Validates the instance.

vmmServerId

public String vmmServerId()

Get the vmmServerId property: ARM Id of the vmmServer resource in which this resource resides.

Returns:

the vmmServerId value.

withInventoryItemId

public VirtualMachineTemplateProperties withInventoryItemId(String inventoryItemId)

Set the inventoryItemId property: Gets or sets the inventory Item ID for the resource.

Parameters:

inventoryItemId - the inventoryItemId value to set.

Returns:

the VirtualMachineTemplateProperties object itself.

withUuid

public VirtualMachineTemplateProperties withUuid(String uuid)

Set the uuid property: Unique ID of the virtual machine template.

Parameters:

uuid - the uuid value to set.

Returns:

the VirtualMachineTemplateProperties object itself.

withVmmServerId

public VirtualMachineTemplateProperties withVmmServerId(String vmmServerId)

Set the vmmServerId property: ARM Id of the vmmServer resource in which this resource resides.

Parameters:

vmmServerId - the vmmServerId value to set.

Returns:

the VirtualMachineTemplateProperties object itself.

Applies to