Class VirtualMachineResourceNames
java.lang.Object
com.azure.resourcemanager.workloads.models.VirtualMachineResourceNames
The resource names object for virtual machine and related resources.
-
Constructor Summary
ConstructorDescriptionCreates an instance of VirtualMachineResourceNames class. -
Method Summary
Modifier and TypeMethodDescriptionGet the dataDiskNames property: The full resource names for virtual machine data disks.hostname()
Get the hostname property: The full name for virtual-machine's host (computer name).Get the networkInterfaces property: The list of network interface name objects for the selected virtual machine.Get the osDiskName property: The full name for OS disk attached to the VM.void
validate()
Validates the instance.vmName()
Get the vmName property: The full name for virtual machine.withDataDiskNames
(Map<String, List<String>> dataDiskNames) Set the dataDiskNames property: The full resource names for virtual machine data disks.withHostname
(String hostname) Set the hostname property: The full name for virtual-machine's host (computer name).withNetworkInterfaces
(List<NetworkInterfaceResourceNames> networkInterfaces) Set the networkInterfaces property: The list of network interface name objects for the selected virtual machine.withOsDiskName
(String osDiskName) Set the osDiskName property: The full name for OS disk attached to the VM.withVmName
(String vmName) Set the vmName property: The full name for virtual machine.
-
Constructor Details
-
VirtualMachineResourceNames
public VirtualMachineResourceNames()Creates an instance of VirtualMachineResourceNames class.
-
-
Method Details
-
vmName
Get the vmName property: The full name for virtual machine. The length of this field can be upto 64 characters. If name is not provided, service uses a default name based on the deployment type. For SingleServer, default name is {SID}vm. In case of HA-AvZone systems, default name will be {SID}{app/ascs/db}z{a/b}vm with an incrementor at the end in case of more than 1 vm per layer. For distributed and HA-AvSet systems, default name will be {SID}{app/ascs/db}vm with an incrementor at the end in case of more than 1 vm per layer.- Returns:
- the vmName value.
-
withVmName
Set the vmName property: The full name for virtual machine. The length of this field can be upto 64 characters. If name is not provided, service uses a default name based on the deployment type. For SingleServer, default name is {SID}vm. In case of HA-AvZone systems, default name will be {SID}{app/ascs/db}z{a/b}vm with an incrementor at the end in case of more than 1 vm per layer. For distributed and HA-AvSet systems, default name will be {SID}{app/ascs/db}vm with an incrementor at the end in case of more than 1 vm per layer.- Parameters:
vmName
- the vmName value to set.- Returns:
- the VirtualMachineResourceNames object itself.
-
hostname
Get the hostname property: The full name for virtual-machine's host (computer name). Currently, ACSS only supports host names which are less than or equal to 13 characters long. If this value is not provided, vmName will be used as host name.- Returns:
- the hostname value.
-
withHostname
Set the hostname property: The full name for virtual-machine's host (computer name). Currently, ACSS only supports host names which are less than or equal to 13 characters long. If this value is not provided, vmName will be used as host name.- Parameters:
hostname
- the hostname value to set.- Returns:
- the VirtualMachineResourceNames object itself.
-
networkInterfaces
Get the networkInterfaces property: The list of network interface name objects for the selected virtual machine. Currently, only one network interface is supported per virtual machine.- Returns:
- the networkInterfaces value.
-
withNetworkInterfaces
public VirtualMachineResourceNames withNetworkInterfaces(List<NetworkInterfaceResourceNames> networkInterfaces) Set the networkInterfaces property: The list of network interface name objects for the selected virtual machine. Currently, only one network interface is supported per virtual machine.- Parameters:
networkInterfaces
- the networkInterfaces value to set.- Returns:
- the VirtualMachineResourceNames object itself.
-
osDiskName
Get the osDiskName property: The full name for OS disk attached to the VM. If this value is not provided, it will be named by ARM as per its default naming standards (prefixed with vm name). There is only one OS disk attached per Virtual Machine.- Returns:
- the osDiskName value.
-
withOsDiskName
Set the osDiskName property: The full name for OS disk attached to the VM. If this value is not provided, it will be named by ARM as per its default naming standards (prefixed with vm name). There is only one OS disk attached per Virtual Machine.- Parameters:
osDiskName
- the osDiskName value to set.- Returns:
- the VirtualMachineResourceNames object itself.
-
dataDiskNames
Get the dataDiskNames property: The full resource names for virtual machine data disks. This is a dictionary containing list of names of data disks per volume. Currently supported volumes for database layer are ['hana/data', 'hana/log', hana/shared', 'usr/sap', 'os', 'backup']. For application and cs layers, only 'default' volume is supported.- Returns:
- the dataDiskNames value.
-
withDataDiskNames
Set the dataDiskNames property: The full resource names for virtual machine data disks. This is a dictionary containing list of names of data disks per volume. Currently supported volumes for database layer are ['hana/data', 'hana/log', hana/shared', 'usr/sap', 'os', 'backup']. For application and cs layers, only 'default' volume is supported.- Parameters:
dataDiskNames
- the dataDiskNames value to set.- Returns:
- the VirtualMachineResourceNames object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-