VirtualMachine Interface

public interface VirtualMachine

An immutable client-side representation of VirtualMachine.

Method Summary

Modifier and Type Method and Description
abstract List<AvailabilitySetListItem> availabilitySets()

Gets the availabilitySets property: Availability Sets in vm.

abstract List<Checkpoint> checkpoints()

Gets the checkpoints property: Checkpoints in the vm.

abstract String checkpointType()

Gets the checkpointType property: Type of checkpoint supported for the vm.

abstract String cloudId()

Gets the cloudId property: ARM Id of the cloud resource to use for deploying the vm.

abstract void createCheckpoint()

Creates a checkpoint in virtual machine.

abstract void createCheckpoint(VirtualMachineCreateCheckpoint body)

Creates a checkpoint in virtual machine.

abstract void createCheckpoint(VirtualMachineCreateCheckpoint body, Context context)

Creates a checkpoint in virtual machine.

abstract void deleteCheckpoint()

Deletes a checkpoint in virtual machine.

abstract void deleteCheckpoint(VirtualMachineDeleteCheckpoint body)

Deletes a checkpoint in virtual machine.

abstract void deleteCheckpoint(VirtualMachineDeleteCheckpoint body, Context context)

Deletes a checkpoint in virtual machine.

abstract ExtendedLocation extendedLocation()

Gets the extendedLocation property: The extended location.

abstract Integer generation()

Gets the generation property: Gets or sets the generation for the vm.

abstract HardwareProfile hardwareProfile()

Gets the hardwareProfile property: Hardware properties.

abstract String id()

Gets the id property: Fully qualified resource Id for the resource.

abstract VirtualMachineInner innerModel()

Gets the inner com.azure.resourcemanager.scvmm.fluent.models.VirtualMachineInner object.

abstract String inventoryItemId()

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

abstract String location()

Gets the location property: The geo-location where the resource lives.

abstract String name()

Gets the name property: The name of the resource.

abstract NetworkProfile networkProfile()

Gets the networkProfile property: Network properties.

abstract OsProfile osProfile()

Gets the osProfile property: OS properties.

abstract String powerState()

Gets the powerState property: Gets the power state of the virtual machine.

abstract String provisioningState()

Gets the provisioningState property: Gets or sets the provisioning state.

abstract VirtualMachine refresh()

Refreshes the resource to sync with Azure.

abstract VirtualMachine refresh(Context context)

Refreshes the resource to sync with Azure.

abstract Region region()

Gets the region of the resource.

abstract String regionName()

Gets the name of the resource region.

abstract void restart()

Restart virtual machine.

abstract void restart(Context context)

Restart virtual machine.

abstract void restoreCheckpoint()

Restores to a checkpoint in virtual machine.

abstract void restoreCheckpoint(VirtualMachineRestoreCheckpoint body)

Restores to a checkpoint in virtual machine.

abstract void restoreCheckpoint(VirtualMachineRestoreCheckpoint body, Context context)

Restores to a checkpoint in virtual machine.

abstract void start()

Start virtual machine.

abstract void start(Context context)

Start virtual machine.

abstract void stop()

Stop virtual machine.

abstract void stop(StopVirtualMachineOptions body)

Stop virtual machine.

abstract void stop(StopVirtualMachineOptions body, Context context)

Stop virtual machine.

abstract StorageProfile storageProfile()

Gets the storageProfile property: Storage properties.

abstract SystemData systemData()

Gets the systemData property: The system data.

abstract Map<String,String> tags()

Gets the tags property: Resource tags.

abstract String templateId()

Gets the templateId property: ARM Id of the template resource to use for deploying the vm.

abstract String type()

Gets the type property: The type of the resource.

abstract Update update()

Begins update for the VirtualMachine resource.

abstract String uuid()

Gets the uuid property: Unique ID of the virtual machine.

abstract String vmmServerId()

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

abstract String vmName()

Gets the vmName property: VMName is the name of VM on the SCVMM server.

Method Details

availabilitySets

public abstract List<AvailabilitySetListItem> availabilitySets()

Gets the availabilitySets property: Availability Sets in vm.

Returns:

the availabilitySets value.

checkpoints

public abstract List<Checkpoint> checkpoints()

Gets the checkpoints property: Checkpoints in the vm.

Returns:

the checkpoints value.

checkpointType

public abstract String checkpointType()

Gets the checkpointType property: Type of checkpoint supported for the vm.

Returns:

the checkpointType value.

cloudId

public abstract String cloudId()

Gets the cloudId property: ARM Id of the cloud resource to use for deploying the vm.

Returns:

the cloudId value.

createCheckpoint

public abstract void createCheckpoint()

Creates a checkpoint in virtual machine.

createCheckpoint

public abstract void createCheckpoint(VirtualMachineCreateCheckpoint body)

Creates a checkpoint in virtual machine.

Parameters:

body - Virtualmachine create checkpoint action payload.

createCheckpoint

public abstract void createCheckpoint(VirtualMachineCreateCheckpoint body, Context context)

Creates a checkpoint in virtual machine.

Parameters:

body - Virtualmachine create checkpoint action payload.
context - The context to associate with this operation.

deleteCheckpoint

public abstract void deleteCheckpoint()

Deletes a checkpoint in virtual machine.

deleteCheckpoint

public abstract void deleteCheckpoint(VirtualMachineDeleteCheckpoint body)

Deletes a checkpoint in virtual machine.

Parameters:

body - Virtualmachine delete checkpoint action payload.

deleteCheckpoint

public abstract void deleteCheckpoint(VirtualMachineDeleteCheckpoint body, Context context)

Deletes a checkpoint in virtual machine.

Parameters:

body - Virtualmachine delete checkpoint action payload.
context - The context to associate with this operation.

extendedLocation

public abstract ExtendedLocation extendedLocation()

Gets the extendedLocation property: The extended location.

Returns:

the extendedLocation value.

generation

public abstract Integer generation()

Gets the generation property: Gets or sets the generation for the vm.

Returns:

the generation value.

hardwareProfile

public abstract HardwareProfile hardwareProfile()

Gets the hardwareProfile property: Hardware properties.

Returns:

the hardwareProfile value.

id

public abstract String id()

Gets the id property: Fully qualified resource Id for the resource.

Returns:

the id value.

innerModel

public abstract VirtualMachineInner innerModel()

Gets the inner com.azure.resourcemanager.scvmm.fluent.models.VirtualMachineInner object.

Returns:

the inner object.

inventoryItemId

public abstract String inventoryItemId()

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

Returns:

the inventoryItemId value.

location

public abstract String location()

Gets the location property: The geo-location where the resource lives.

Returns:

the location value.

name

public abstract String name()

Gets the name property: The name of the resource.

Returns:

the name value.

networkProfile

public abstract NetworkProfile networkProfile()

Gets the networkProfile property: Network properties.

Returns:

the networkProfile value.

osProfile

public abstract OsProfile osProfile()

Gets the osProfile property: OS properties.

Returns:

the osProfile value.

powerState

public abstract String powerState()

Gets the powerState property: Gets the power state of the virtual machine.

Returns:

the powerState value.

provisioningState

public abstract String provisioningState()

Gets the provisioningState property: Gets or sets the provisioning state.

Returns:

the provisioningState value.

refresh

public abstract VirtualMachine refresh()

Refreshes the resource to sync with Azure.

Returns:

the refreshed resource.

refresh

public abstract VirtualMachine refresh(Context context)

Refreshes the resource to sync with Azure.

Parameters:

context - The context to associate with this operation.

Returns:

the refreshed resource.

region

public abstract Region region()

Gets the region of the resource.

Returns:

the region of the resource.

regionName

public abstract String regionName()

Gets the name of the resource region.

Returns:

the name of the resource region.

restart

public abstract void restart()

Restart virtual machine.

restart

public abstract void restart(Context context)

Restart virtual machine.

Parameters:

context - The context to associate with this operation.

restoreCheckpoint

public abstract void restoreCheckpoint()

Restores to a checkpoint in virtual machine.

restoreCheckpoint

public abstract void restoreCheckpoint(VirtualMachineRestoreCheckpoint body)

Restores to a checkpoint in virtual machine.

Parameters:

body - Virtualmachine restore checkpoint action payload.

restoreCheckpoint

public abstract void restoreCheckpoint(VirtualMachineRestoreCheckpoint body, Context context)

Restores to a checkpoint in virtual machine.

Parameters:

body - Virtualmachine restore checkpoint action payload.
context - The context to associate with this operation.

start

public abstract void start()

Start virtual machine.

start

public abstract void start(Context context)

Start virtual machine.

Parameters:

context - The context to associate with this operation.

stop

public abstract void stop()

Stop virtual machine.

stop

public abstract void stop(StopVirtualMachineOptions body)

Stop virtual machine.

Parameters:

body - Virtualmachine stop action payload.

stop

public abstract void stop(StopVirtualMachineOptions body, Context context)

Stop virtual machine.

Parameters:

body - Virtualmachine stop action payload.
context - The context to associate with this operation.

storageProfile

public abstract StorageProfile storageProfile()

Gets the storageProfile property: Storage properties.

Returns:

the storageProfile value.

systemData

public abstract SystemData systemData()

Gets the systemData property: The system data.

Returns:

the systemData value.

tags

public abstract Map<String,String> tags()

Gets the tags property: Resource tags.

Returns:

the tags value.

templateId

public abstract String templateId()

Gets the templateId property: ARM Id of the template resource to use for deploying the vm.

Returns:

the templateId value.

type

public abstract String type()

Gets the type property: The type of the resource.

Returns:

the type value.

update

public abstract VirtualMachine.Update update()

Begins update for the VirtualMachine resource.

Returns:

the stage of resource update.

uuid

public abstract String uuid()

Gets the uuid property: Unique ID of the virtual machine.

Returns:

the uuid value.

vmmServerId

public abstract String vmmServerId()

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

Returns:

the vmmServerId value.

vmName

public abstract String vmName()

Gets the vmName property: VMName is the name of VM on the SCVMM server.

Returns:

the vmName value.

Applies to