LabVirtualMachineInner Class
- java.lang.Object
- com.azure.core.management.ProxyResource
- com.azure.core.management.Resource
- com.azure.resourcemanager.devtestlabs.fluent.models.LabVirtualMachineInner
public final class LabVirtualMachineInner
extends Resource
A virtual machine.
Constructor Summary
Constructor | Description |
---|---|
LabVirtualMachineInner() |
Creates an instance of Lab |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
allowClaim()
Get the allow |
Applicable |
applicableSchedule()
Get the applicable |
Artifact |
artifactDeploymentStatus()
Get the artifact |
List<Artifact |
artifacts()
Get the artifacts property: The artifacts to be installed on the virtual machine. |
String |
computeId()
Get the compute |
Compute |
computeVm()
Get the compute |
String |
createdByUser()
Get the created |
String |
createdByUserId()
Get the created |
Offset |
createdDate()
Get the created |
String |
customImageId()
Get the custom |
List<Data |
dataDiskParameters()
Get the data |
Boolean |
disallowPublicIpAddress()
Get the disallow |
String |
environmentId()
Get the environment |
Offset |
expirationDate()
Get the expiration |
String |
fqdn()
Get the fqdn property: The fully-qualified domain name of the virtual machine. |
Gallery |
galleryImageReference()
Get the gallery |
Boolean |
isAuthenticationWithSshKey()
Get the is |
String |
labSubnetName()
Get the lab |
String |
labVirtualNetworkId()
Get the lab |
String |
lastKnownPowerState()
Get the last |
Network |
networkInterface()
Get the network |
String |
notes()
Get the notes property: The notes of the virtual machine. |
String |
osType()
Get the os |
String |
ownerObjectId()
Get the owner |
String |
ownerUserPrincipalName()
Get the owner |
String |
password()
Get the password property: The password of the virtual machine administrator. |
String |
planId()
Get the plan |
String |
provisioningState()
Get the provisioning |
List<Schedule |
scheduleParameters()
Get the schedule |
String |
size()
Get the size property: The size of the virtual machine. |
String |
sshKey()
Get the ssh |
String |
storageType()
Get the storage |
String |
uniqueIdentifier()
Get the unique |
String |
username()
Get the username property: The user name of the virtual machine. |
void |
validate()
Validates the instance. |
Virtual |
virtualMachineCreationSource()
Get the virtual |
Lab |
withAllowClaim(Boolean allowClaim)
Set the allow |
Lab |
withArtifacts(List<ArtifactInstallProperties> artifacts)
Set the artifacts property: The artifacts to be installed on the virtual machine. |
Lab |
withCreatedDate(OffsetDateTime createdDate)
Set the created |
Lab |
withCustomImageId(String customImageId)
Set the custom |
Lab |
withDataDiskParameters(List<DataDiskProperties> dataDiskParameters)
Set the data |
Lab |
withDisallowPublicIpAddress(Boolean disallowPublicIpAddress)
Set the disallow |
Lab |
withEnvironmentId(String environmentId)
Set the environment |
Lab |
withExpirationDate(OffsetDateTime expirationDate)
Set the expiration |
Lab |
withGalleryImageReference(GalleryImageReference galleryImageReference)
Set the gallery |
Lab |
withIsAuthenticationWithSshKey(Boolean isAuthenticationWithSshKey)
Set the is |
Lab |
withLabSubnetName(String labSubnetName)
Set the lab |
Lab |
withLabVirtualNetworkId(String labVirtualNetworkId)
Set the lab |
Lab |
withLocation(String location) |
Lab |
withNetworkInterface(NetworkInterfaceProperties networkInterface)
Set the network |
Lab |
withNotes(String notes)
Set the notes property: The notes of the virtual machine. |
Lab |
withOwnerObjectId(String ownerObjectId)
Set the owner |
Lab |
withOwnerUserPrincipalName(String ownerUserPrincipalName)
Set the owner |
Lab |
withPassword(String password)
Set the password property: The password of the virtual machine administrator. |
Lab |
withPlanId(String planId)
Set the plan |
Lab |
withScheduleParameters(List<ScheduleCreationParameter> scheduleParameters)
Set the schedule |
Lab |
withSize(String size)
Set the size property: The size of the virtual machine. |
Lab |
withSshKey(String sshKey)
Set the ssh |
Lab |
withStorageType(String storageType)
Set the storage |
Lab |
withTags(Map<String,String> tags) |
Lab |
withUsername(String username)
Set the username property: The user name of the virtual machine. |
Methods inherited from ProxyResource
Methods inherited from Resource
Methods inherited from java.lang.Object
Constructor Details
LabVirtualMachineInner
public LabVirtualMachineInner()
Creates an instance of LabVirtualMachineInner class.
Method Details
allowClaim
public Boolean allowClaim()
Get the allowClaim property: Indicates whether another user can take ownership of the virtual machine.
Returns:
applicableSchedule
public ApplicableScheduleInner applicableSchedule()
Get the applicableSchedule property: The applicable schedule for the virtual machine.
Returns:
artifactDeploymentStatus
public ArtifactDeploymentStatusProperties artifactDeploymentStatus()
Get the artifactDeploymentStatus property: The artifact deployment status for the virtual machine.
Returns:
artifacts
public List
Get the artifacts property: The artifacts to be installed on the virtual machine.
Returns:
computeId
public String computeId()
Get the computeId property: The resource identifier (Microsoft.Compute) of the virtual machine.
Returns:
computeVm
public ComputeVmProperties computeVm()
Get the computeVm property: The compute virtual machine properties.
Returns:
createdByUser
public String createdByUser()
Get the createdByUser property: The email address of creator of the virtual machine.
Returns:
createdByUserId
public String createdByUserId()
Get the createdByUserId property: The object identifier of the creator of the virtual machine.
Returns:
createdDate
public OffsetDateTime createdDate()
Get the createdDate property: The creation date of the virtual machine.
Returns:
customImageId
public String customImageId()
Get the customImageId property: The custom image identifier of the virtual machine.
Returns:
dataDiskParameters
public List
Get the dataDiskParameters property: New or existing data disks to attach to the virtual machine after creation.
Returns:
disallowPublicIpAddress
public Boolean disallowPublicIpAddress()
Get the disallowPublicIpAddress property: Indicates whether the virtual machine is to be created without a public IP address.
Returns:
environmentId
public String environmentId()
Get the environmentId property: The resource ID of the environment that contains this virtual machine, if any.
Returns:
expirationDate
public OffsetDateTime expirationDate()
Get the expirationDate property: The expiration date for VM.
Returns:
fqdn
public String fqdn()
Get the fqdn property: The fully-qualified domain name of the virtual machine.
Returns:
galleryImageReference
public GalleryImageReference galleryImageReference()
Get the galleryImageReference property: The Microsoft Azure Marketplace image reference of the virtual machine.
Returns:
isAuthenticationWithSshKey
public Boolean isAuthenticationWithSshKey()
Get the isAuthenticationWithSshKey property: Indicates whether this virtual machine uses an SSH key for authentication.
Returns:
labSubnetName
public String labSubnetName()
Get the labSubnetName property: The lab subnet name of the virtual machine.
Returns:
labVirtualNetworkId
public String labVirtualNetworkId()
Get the labVirtualNetworkId property: The lab virtual network identifier of the virtual machine.
Returns:
lastKnownPowerState
public String lastKnownPowerState()
Get the lastKnownPowerState property: Last known compute power state captured in DTL.
Returns:
networkInterface
public NetworkInterfaceProperties networkInterface()
Get the networkInterface property: The network interface properties.
Returns:
notes
public String notes()
Get the notes property: The notes of the virtual machine.
Returns:
osType
public String osType()
Get the osType property: The OS type of the virtual machine.
Returns:
ownerObjectId
public String ownerObjectId()
Get the ownerObjectId property: The object identifier of the owner of the virtual machine.
Returns:
ownerUserPrincipalName
public String ownerUserPrincipalName()
Get the ownerUserPrincipalName property: The user principal name of the virtual machine owner.
Returns:
password
public String password()
Get the password property: The password of the virtual machine administrator.
Returns:
planId
public String planId()
Get the planId property: The id of the plan associated with the virtual machine image.
Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: The provisioning status of the resource.
Returns:
scheduleParameters
public List
Get the scheduleParameters property: Virtual Machine schedules to be created.
Returns:
size
public String size()
Get the size property: The size of the virtual machine.
Returns:
sshKey
public String sshKey()
Get the sshKey property: The SSH key of the virtual machine administrator.
Returns:
storageType
public String storageType()
Get the storageType property: Storage type to use for virtual machine (i.e. Standard, Premium).
Returns:
uniqueIdentifier
public String uniqueIdentifier()
Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).
Returns:
username
public String username()
Get the username property: The user name of the virtual machine.
Returns:
validate
public void validate()
Validates the instance.
virtualMachineCreationSource
public VirtualMachineCreationSource virtualMachineCreationSource()
Get the virtualMachineCreationSource property: Tells source of creation of lab virtual machine. Output property only.
Returns:
withAllowClaim
public LabVirtualMachineInner withAllowClaim(Boolean allowClaim)
Set the allowClaim property: Indicates whether another user can take ownership of the virtual machine.
Parameters:
Returns:
withArtifacts
public LabVirtualMachineInner withArtifacts(List
Set the artifacts property: The artifacts to be installed on the virtual machine.
Parameters:
Returns:
withCreatedDate
public LabVirtualMachineInner withCreatedDate(OffsetDateTime createdDate)
Set the createdDate property: The creation date of the virtual machine.
Parameters:
Returns:
withCustomImageId
public LabVirtualMachineInner withCustomImageId(String customImageId)
Set the customImageId property: The custom image identifier of the virtual machine.
Parameters:
Returns:
withDataDiskParameters
public LabVirtualMachineInner withDataDiskParameters(List
Set the dataDiskParameters property: New or existing data disks to attach to the virtual machine after creation.
Parameters:
Returns:
withDisallowPublicIpAddress
public LabVirtualMachineInner withDisallowPublicIpAddress(Boolean disallowPublicIpAddress)
Set the disallowPublicIpAddress property: Indicates whether the virtual machine is to be created without a public IP address.
Parameters:
Returns:
withEnvironmentId
public LabVirtualMachineInner withEnvironmentId(String environmentId)
Set the environmentId property: The resource ID of the environment that contains this virtual machine, if any.
Parameters:
Returns:
withExpirationDate
public LabVirtualMachineInner withExpirationDate(OffsetDateTime expirationDate)
Set the expirationDate property: The expiration date for VM.
Parameters:
Returns:
withGalleryImageReference
public LabVirtualMachineInner withGalleryImageReference(GalleryImageReference galleryImageReference)
Set the galleryImageReference property: The Microsoft Azure Marketplace image reference of the virtual machine.
Parameters:
Returns:
withIsAuthenticationWithSshKey
public LabVirtualMachineInner withIsAuthenticationWithSshKey(Boolean isAuthenticationWithSshKey)
Set the isAuthenticationWithSshKey property: Indicates whether this virtual machine uses an SSH key for authentication.
Parameters:
Returns:
withLabSubnetName
public LabVirtualMachineInner withLabSubnetName(String labSubnetName)
Set the labSubnetName property: The lab subnet name of the virtual machine.
Parameters:
Returns:
withLabVirtualNetworkId
public LabVirtualMachineInner withLabVirtualNetworkId(String labVirtualNetworkId)
Set the labVirtualNetworkId property: The lab virtual network identifier of the virtual machine.
Parameters:
Returns:
withLocation
public LabVirtualMachineInner withLocation(String location)
Overrides:
LabVirtualMachineInner.withLocation(String location)Parameters:
withNetworkInterface
public LabVirtualMachineInner withNetworkInterface(NetworkInterfaceProperties networkInterface)
Set the networkInterface property: The network interface properties.
Parameters:
Returns:
withNotes
public LabVirtualMachineInner withNotes(String notes)
Set the notes property: The notes of the virtual machine.
Parameters:
Returns:
withOwnerObjectId
public LabVirtualMachineInner withOwnerObjectId(String ownerObjectId)
Set the ownerObjectId property: The object identifier of the owner of the virtual machine.
Parameters:
Returns:
withOwnerUserPrincipalName
public LabVirtualMachineInner withOwnerUserPrincipalName(String ownerUserPrincipalName)
Set the ownerUserPrincipalName property: The user principal name of the virtual machine owner.
Parameters:
Returns:
withPassword
public LabVirtualMachineInner withPassword(String password)
Set the password property: The password of the virtual machine administrator.
Parameters:
Returns:
withPlanId
public LabVirtualMachineInner withPlanId(String planId)
Set the planId property: The id of the plan associated with the virtual machine image.
Parameters:
Returns:
withScheduleParameters
public LabVirtualMachineInner withScheduleParameters(List
Set the scheduleParameters property: Virtual Machine schedules to be created.
Parameters:
Returns:
withSize
public LabVirtualMachineInner withSize(String size)
Set the size property: The size of the virtual machine.
Parameters:
Returns:
withSshKey
public LabVirtualMachineInner withSshKey(String sshKey)
Set the sshKey property: The SSH key of the virtual machine administrator.
Parameters:
Returns:
withStorageType
public LabVirtualMachineInner withStorageType(String storageType)
Set the storageType property: Storage type to use for virtual machine (i.e. Standard, Premium).
Parameters:
Returns:
withTags
public LabVirtualMachineInner withTags(Map
Overrides:
LabVirtualMachineInner.withTags(Map<String,String> tags)Parameters:
withUsername
public LabVirtualMachineInner withUsername(String username)
Set the username property: The user name of the virtual machine.
Parameters:
Returns: