VirtualMachineInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. networkcloud. fluent. models. VirtualMachineInner
- com.
- com.
- com.
public final class VirtualMachineInner
extends Resource
VirtualMachine represents the on-premises Network Cloud virtual machine.
Constructor Summary
| Constructor | Description |
|---|---|
| VirtualMachineInner() |
Creates an instance of Virtual |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
adminUsername()
Get the admin |
| String |
availabilityZone()
Get the availability |
| String |
bareMetalMachineId()
Get the bare |
|
Virtual |
bootMethod()
Get the boot |
|
Network |
cloudServicesNetworkAttachment()
Get the cloud |
| String |
clusterId()
Get the cluster |
|
Extended |
consoleExtendedLocation()
Get the console |
| long |
cpuCores()
Get the cpu |
|
Virtual |
detailedStatus()
Get the detailed |
| String |
detailedStatusMessage()
Get the detailed |
| String |
etag()
Get the etag property: Resource ETag. |
|
Extended |
extendedLocation()
Get the extended |
|
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
|
Managed |
identity()
Get the identity property: The identity for the resource. |
|
Virtual |
isolateEmulatorThread()
Get the isolate |
| long |
memorySizeGB()
Get the memory |
| String |
name()
Get the name property: The name of the resource. |
|
List<Network |
networkAttachments()
Get the network |
| String |
networkData()
Get the network |
| String |
networkDataContent()
Get the network |
|
List<Virtual |
placementHints()
Get the placement |
|
Virtual |
powerState()
Get the power |
|
Virtual |
provisioningState()
Get the provisioning |
|
List<Ssh |
sshPublicKeys()
Get the ssh |
|
Storage |
storageProfile()
Get the storage |
|
System |
systemData()
Get the system |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| String |
userData()
Get the user |
| String |
userDataContent()
Get the user |
| void |
validate()
Validates the instance. |
|
Virtual |
virtioInterface()
Get the virtio |
|
Virtual |
vmDeviceModel()
Get the vm |
| String |
vmImage()
Get the vm |
|
Image |
vmImageRepositoryCredentials()
Get the vm |
| List<String> |
volumes()
Get the volumes property: The resource IDs of volumes that are attached to the virtual machine. |
|
Virtual |
withAdminUsername(String adminUsername)
Set the admin |
|
Virtual |
withBootMethod(VirtualMachineBootMethod bootMethod)
Set the boot |
|
Virtual |
withCloudServicesNetworkAttachment(NetworkAttachment cloudServicesNetworkAttachment)
Set the cloud |
|
Virtual |
withConsoleExtendedLocation(ExtendedLocation consoleExtendedLocation)
Set the console |
|
Virtual |
withCpuCores(long cpuCores)
Set the cpu |
|
Virtual |
withExtendedLocation(ExtendedLocation extendedLocation)
Set the extended |
|
Virtual |
withIdentity(ManagedServiceIdentity identity)
Set the identity property: The identity for the resource. |
|
Virtual |
withIsolateEmulatorThread(VirtualMachineIsolateEmulatorThread isolateEmulatorThread)
Set the isolate |
|
Virtual |
withLocation(String location) |
|
Virtual |
withMemorySizeGB(long memorySizeGB)
Set the memory |
|
Virtual |
withNetworkAttachments(List<NetworkAttachment> networkAttachments)
Set the network |
|
Virtual |
withNetworkData(String networkData)
Set the network |
|
Virtual |
withNetworkDataContent(String networkDataContent)
Set the network |
|
Virtual |
withPlacementHints(List<VirtualMachinePlacementHint> placementHints)
Set the placement |
|
Virtual |
withSshPublicKeys(List<SshPublicKey> sshPublicKeys)
Set the ssh |
|
Virtual |
withStorageProfile(StorageProfile storageProfile)
Set the storage |
|
Virtual |
withTags(Map<String,String> tags) |
|
Virtual |
withUserData(String userData)
Set the user |
|
Virtual |
withUserDataContent(String userDataContent)
Set the user |
|
Virtual |
withVirtioInterface(VirtualMachineVirtioInterfaceType virtioInterface)
Set the virtio |
|
Virtual |
withVmDeviceModel(VirtualMachineDeviceModelType vmDeviceModel)
Set the vm |
|
Virtual |
withVmImage(String vmImage)
Set the vm |
|
Virtual |
withVmImageRepositoryCredentials(ImageRepositoryCredentials vmImageRepositoryCredentials)
Set the vm |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
VirtualMachineInner
public VirtualMachineInner()
Creates an instance of VirtualMachineInner class.
Method Details
adminUsername
public String adminUsername()
Get the adminUsername property: The name of the administrator to which the ssh public keys will be added into the authorized keys.
Returns:
availabilityZone
public String availabilityZone()
Get the availabilityZone property: The cluster availability zone containing this virtual machine.
Returns:
bareMetalMachineId
public String bareMetalMachineId()
Get the bareMetalMachineId property: The resource ID of the bare metal machine that hosts the virtual machine.
Returns:
bootMethod
public VirtualMachineBootMethod bootMethod()
Get the bootMethod property: Selects the boot method for the virtual machine.
Returns:
cloudServicesNetworkAttachment
public NetworkAttachment cloudServicesNetworkAttachment()
Get the cloudServicesNetworkAttachment property: The cloud service network that provides platform-level services for the virtual machine.
Returns:
clusterId
public String clusterId()
Get the clusterId property: The resource ID of the cluster the virtual machine is created for.
Returns:
consoleExtendedLocation
public ExtendedLocation consoleExtendedLocation()
Get the consoleExtendedLocation property: The extended location to use for creation of a VM console resource.
Returns:
cpuCores
public long cpuCores()
Get the cpuCores property: The number of CPU cores in the virtual machine.
Returns:
detailedStatus
public VirtualMachineDetailedStatus detailedStatus()
Get the detailedStatus property: The more detailed status of the virtual machine.
Returns:
detailedStatusMessage
public String detailedStatusMessage()
Get the detailedStatusMessage property: The descriptive message about the current detailed status.
Returns:
etag
public String etag()
Get the etag property: Resource ETag.
Returns:
extendedLocation
public ExtendedLocation extendedLocation()
Get the extendedLocation property: The extended location of the cluster associated with the resource.
Returns:
fromJson
public static VirtualMachineInner fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachineInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
VirtualMachineInner.id()Returns:
identity
public ManagedServiceIdentity identity()
Get the identity property: The identity for the resource.
Returns:
isolateEmulatorThread
public VirtualMachineIsolateEmulatorThread isolateEmulatorThread()
Get the isolateEmulatorThread property: Field Deprecated, the value will be ignored if provided. The indicator of whether one of the specified CPU cores is isolated to run the emulator thread for this virtual machine.
Returns:
memorySizeGB
public long memorySizeGB()
Get the memorySizeGB property: The memory size of the virtual machine. Allocations are measured in gibibytes.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
VirtualMachineInner.name()Returns:
networkAttachments
public List<NetworkAttachment> networkAttachments()
Get the networkAttachments property: The list of network attachments to the virtual machine.
Returns:
networkData
public String networkData()
Get the networkData property: Field Deprecated: The Base64 encoded cloud-init network data. The networkDataContent property will be used in preference to this property.
Returns:
networkDataContent
public String networkDataContent()
Get the networkDataContent property: The Base64 encoded cloud-init network data.
Returns:
placementHints
public List<VirtualMachinePlacementHint> placementHints()
Get the placementHints property: The scheduling hints for the virtual machine.
Returns:
powerState
public VirtualMachinePowerState powerState()
Get the powerState property: The power state of the virtual machine.
Returns:
provisioningState
public VirtualMachineProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the virtual machine.
Returns:
sshPublicKeys
public List<SshPublicKey> sshPublicKeys()
Get the sshPublicKeys property: The list of ssh public keys. Each key will be added to the virtual machine using the cloud-init ssh_authorized_keys mechanism for the adminUsername.
Returns:
storageProfile
public StorageProfile storageProfile()
Get the storageProfile property: The storage profile that specifies size and other parameters about the disks related to the virtual machine.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
VirtualMachineInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
VirtualMachineInner.type()Returns:
userData
public String userData()
Get the userData property: Field Deprecated: The Base64 encoded cloud-init user data. The userDataContent property will be used in preference to this property.
Returns:
userDataContent
public String userDataContent()
Get the userDataContent property: The Base64 encoded cloud-init user data.
Returns:
validate
public void validate()
Validates the instance.
virtioInterface
public VirtualMachineVirtioInterfaceType virtioInterface()
Get the virtioInterface property: Field Deprecated, use virtualizationModel instead. The type of the virtio interface.
Returns:
vmDeviceModel
public VirtualMachineDeviceModelType vmDeviceModel()
Get the vmDeviceModel property: The type of the device model to use.
Returns:
vmImage
public String vmImage()
Get the vmImage property: The virtual machine image that is currently provisioned to the OS disk, using the full url and tag notation used to pull the image.
Returns:
vmImageRepositoryCredentials
public ImageRepositoryCredentials vmImageRepositoryCredentials()
Get the vmImageRepositoryCredentials property: The credentials used to login to the image repository that has access to the specified image.
Returns:
volumes
public List<String> volumes()
Get the volumes property: The resource IDs of volumes that are attached to the virtual machine.
Returns:
withAdminUsername
public VirtualMachineInner withAdminUsername(String adminUsername)
Set the adminUsername property: The name of the administrator to which the ssh public keys will be added into the authorized keys.
Parameters:
Returns:
withBootMethod
public VirtualMachineInner withBootMethod(VirtualMachineBootMethod bootMethod)
Set the bootMethod property: Selects the boot method for the virtual machine.
Parameters:
Returns:
withCloudServicesNetworkAttachment
public VirtualMachineInner withCloudServicesNetworkAttachment(NetworkAttachment cloudServicesNetworkAttachment)
Set the cloudServicesNetworkAttachment property: The cloud service network that provides platform-level services for the virtual machine.
Parameters:
Returns:
withConsoleExtendedLocation
public VirtualMachineInner withConsoleExtendedLocation(ExtendedLocation consoleExtendedLocation)
Set the consoleExtendedLocation property: The extended location to use for creation of a VM console resource.
Parameters:
Returns:
withCpuCores
public VirtualMachineInner withCpuCores(long cpuCores)
Set the cpuCores property: The number of CPU cores in the virtual machine.
Parameters:
Returns:
withExtendedLocation
public VirtualMachineInner withExtendedLocation(ExtendedLocation extendedLocation)
Set the extendedLocation property: The extended location of the cluster associated with the resource.
Parameters:
Returns:
withIdentity
public VirtualMachineInner withIdentity(ManagedServiceIdentity identity)
Set the identity property: The identity for the resource.
Parameters:
Returns:
withIsolateEmulatorThread
public VirtualMachineInner withIsolateEmulatorThread(VirtualMachineIsolateEmulatorThread isolateEmulatorThread)
Set the isolateEmulatorThread property: Field Deprecated, the value will be ignored if provided. The indicator of whether one of the specified CPU cores is isolated to run the emulator thread for this virtual machine.
Parameters:
Returns:
withLocation
public VirtualMachineInner withLocation(String location)
Overrides:
VirtualMachineInner.withLocation(String location)Parameters:
withMemorySizeGB
public VirtualMachineInner withMemorySizeGB(long memorySizeGB)
Set the memorySizeGB property: The memory size of the virtual machine. Allocations are measured in gibibytes.
Parameters:
Returns:
withNetworkAttachments
public VirtualMachineInner withNetworkAttachments(List<NetworkAttachment> networkAttachments)
Set the networkAttachments property: The list of network attachments to the virtual machine.
Parameters:
Returns:
withNetworkData
public VirtualMachineInner withNetworkData(String networkData)
Set the networkData property: Field Deprecated: The Base64 encoded cloud-init network data. The networkDataContent property will be used in preference to this property.
Parameters:
Returns:
withNetworkDataContent
public VirtualMachineInner withNetworkDataContent(String networkDataContent)
Set the networkDataContent property: The Base64 encoded cloud-init network data.
Parameters:
Returns:
withPlacementHints
public VirtualMachineInner withPlacementHints(List<VirtualMachinePlacementHint> placementHints)
Set the placementHints property: The scheduling hints for the virtual machine.
Parameters:
Returns:
withSshPublicKeys
public VirtualMachineInner withSshPublicKeys(List<SshPublicKey> sshPublicKeys)
Set the sshPublicKeys property: The list of ssh public keys. Each key will be added to the virtual machine using the cloud-init ssh_authorized_keys mechanism for the adminUsername.
Parameters:
Returns:
withStorageProfile
public VirtualMachineInner withStorageProfile(StorageProfile storageProfile)
Set the storageProfile property: The storage profile that specifies size and other parameters about the disks related to the virtual machine.
Parameters:
Returns:
withTags
public VirtualMachineInner withTags(Map<String,String> tags)
Overrides:
VirtualMachineInner.withTags(Map<String,String> tags)Parameters:
withUserData
public VirtualMachineInner withUserData(String userData)
Set the userData property: Field Deprecated: The Base64 encoded cloud-init user data. The userDataContent property will be used in preference to this property.
Parameters:
Returns:
withUserDataContent
public VirtualMachineInner withUserDataContent(String userDataContent)
Set the userDataContent property: The Base64 encoded cloud-init user data.
Parameters:
Returns:
withVirtioInterface
public VirtualMachineInner withVirtioInterface(VirtualMachineVirtioInterfaceType virtioInterface)
Set the virtioInterface property: Field Deprecated, use virtualizationModel instead. The type of the virtio interface.
Parameters:
Returns:
withVmDeviceModel
public VirtualMachineInner withVmDeviceModel(VirtualMachineDeviceModelType vmDeviceModel)
Set the vmDeviceModel property: The type of the device model to use.
Parameters:
Returns:
withVmImage
public VirtualMachineInner withVmImage(String vmImage)
Set the vmImage property: The virtual machine image that is currently provisioned to the OS disk, using the full url and tag notation used to pull the image.
Parameters:
Returns:
withVmImageRepositoryCredentials
public VirtualMachineInner withVmImageRepositoryCredentials(ImageRepositoryCredentials vmImageRepositoryCredentials)
Set the vmImageRepositoryCredentials property: The credentials used to login to the image repository that has access to the specified image.
Parameters:
Returns: