Class LabVirtualMachineInner

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 com.azure.core.management.Resource
A virtual machine.
  • Constructor Details

    • LabVirtualMachineInner

      public LabVirtualMachineInner()
      Creates an instance of LabVirtualMachineInner class.
  • Method Details

    • withLocation

      public LabVirtualMachineInner withLocation(String location)
      Overrides:
      withLocation in class com.azure.core.management.Resource
    • withTags

      public LabVirtualMachineInner withTags(Map<String,String> tags)
      Overrides:
      withTags in class com.azure.core.management.Resource
    • notes

      public String notes()
      Get the notes property: The notes of the virtual machine.
      Returns:
      the notes value.
    • withNotes

      public LabVirtualMachineInner withNotes(String notes)
      Set the notes property: The notes of the virtual machine.
      Parameters:
      notes - the notes value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • ownerObjectId

      public String ownerObjectId()
      Get the ownerObjectId property: The object identifier of the owner of the virtual machine.
      Returns:
      the ownerObjectId value.
    • withOwnerObjectId

      public LabVirtualMachineInner withOwnerObjectId(String ownerObjectId)
      Set the ownerObjectId property: The object identifier of the owner of the virtual machine.
      Parameters:
      ownerObjectId - the ownerObjectId value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • ownerUserPrincipalName

      public String ownerUserPrincipalName()
      Get the ownerUserPrincipalName property: The user principal name of the virtual machine owner.
      Returns:
      the ownerUserPrincipalName value.
    • withOwnerUserPrincipalName

      public LabVirtualMachineInner withOwnerUserPrincipalName(String ownerUserPrincipalName)
      Set the ownerUserPrincipalName property: The user principal name of the virtual machine owner.
      Parameters:
      ownerUserPrincipalName - the ownerUserPrincipalName value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • createdByUserId

      public String createdByUserId()
      Get the createdByUserId property: The object identifier of the creator of the virtual machine.
      Returns:
      the createdByUserId value.
    • createdByUser

      public String createdByUser()
      Get the createdByUser property: The email address of creator of the virtual machine.
      Returns:
      the createdByUser value.
    • createdDate

      public OffsetDateTime createdDate()
      Get the createdDate property: The creation date of the virtual machine.
      Returns:
      the createdDate value.
    • withCreatedDate

      public LabVirtualMachineInner withCreatedDate(OffsetDateTime createdDate)
      Set the createdDate property: The creation date of the virtual machine.
      Parameters:
      createdDate - the createdDate value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • computeId

      public String computeId()
      Get the computeId property: The resource identifier (Microsoft.Compute) of the virtual machine.
      Returns:
      the computeId value.
    • customImageId

      public String customImageId()
      Get the customImageId property: The custom image identifier of the virtual machine.
      Returns:
      the customImageId value.
    • withCustomImageId

      public LabVirtualMachineInner withCustomImageId(String customImageId)
      Set the customImageId property: The custom image identifier of the virtual machine.
      Parameters:
      customImageId - the customImageId value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • osType

      public String osType()
      Get the osType property: The OS type of the virtual machine.
      Returns:
      the osType value.
    • size

      public String size()
      Get the size property: The size of the virtual machine.
      Returns:
      the size value.
    • withSize

      public LabVirtualMachineInner withSize(String size)
      Set the size property: The size of the virtual machine.
      Parameters:
      size - the size value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • username

      public String username()
      Get the username property: The user name of the virtual machine.
      Returns:
      the username value.
    • withUsername

      public LabVirtualMachineInner withUsername(String username)
      Set the username property: The user name of the virtual machine.
      Parameters:
      username - the username value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • password

      public String password()
      Get the password property: The password of the virtual machine administrator.
      Returns:
      the password value.
    • withPassword

      public LabVirtualMachineInner withPassword(String password)
      Set the password property: The password of the virtual machine administrator.
      Parameters:
      password - the password value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • sshKey

      public String sshKey()
      Get the sshKey property: The SSH key of the virtual machine administrator.
      Returns:
      the sshKey value.
    • withSshKey

      public LabVirtualMachineInner withSshKey(String sshKey)
      Set the sshKey property: The SSH key of the virtual machine administrator.
      Parameters:
      sshKey - the sshKey value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • isAuthenticationWithSshKey

      public Boolean isAuthenticationWithSshKey()
      Get the isAuthenticationWithSshKey property: Indicates whether this virtual machine uses an SSH key for authentication.
      Returns:
      the isAuthenticationWithSshKey value.
    • withIsAuthenticationWithSshKey

      public LabVirtualMachineInner withIsAuthenticationWithSshKey(Boolean isAuthenticationWithSshKey)
      Set the isAuthenticationWithSshKey property: Indicates whether this virtual machine uses an SSH key for authentication.
      Parameters:
      isAuthenticationWithSshKey - the isAuthenticationWithSshKey value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • fqdn

      public String fqdn()
      Get the fqdn property: The fully-qualified domain name of the virtual machine.
      Returns:
      the fqdn value.
    • labSubnetName

      public String labSubnetName()
      Get the labSubnetName property: The lab subnet name of the virtual machine.
      Returns:
      the labSubnetName value.
    • withLabSubnetName

      public LabVirtualMachineInner withLabSubnetName(String labSubnetName)
      Set the labSubnetName property: The lab subnet name of the virtual machine.
      Parameters:
      labSubnetName - the labSubnetName value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • labVirtualNetworkId

      public String labVirtualNetworkId()
      Get the labVirtualNetworkId property: The lab virtual network identifier of the virtual machine.
      Returns:
      the labVirtualNetworkId value.
    • withLabVirtualNetworkId

      public LabVirtualMachineInner withLabVirtualNetworkId(String labVirtualNetworkId)
      Set the labVirtualNetworkId property: The lab virtual network identifier of the virtual machine.
      Parameters:
      labVirtualNetworkId - the labVirtualNetworkId value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • disallowPublicIpAddress

      public Boolean disallowPublicIpAddress()
      Get the disallowPublicIpAddress property: Indicates whether the virtual machine is to be created without a public IP address.
      Returns:
      the disallowPublicIpAddress value.
    • 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:
      disallowPublicIpAddress - the disallowPublicIpAddress value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • artifacts

      public List<ArtifactInstallProperties> artifacts()
      Get the artifacts property: The artifacts to be installed on the virtual machine.
      Returns:
      the artifacts value.
    • withArtifacts

      public LabVirtualMachineInner withArtifacts(List<ArtifactInstallProperties> artifacts)
      Set the artifacts property: The artifacts to be installed on the virtual machine.
      Parameters:
      artifacts - the artifacts value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • artifactDeploymentStatus

      public ArtifactDeploymentStatusProperties artifactDeploymentStatus()
      Get the artifactDeploymentStatus property: The artifact deployment status for the virtual machine.
      Returns:
      the artifactDeploymentStatus value.
    • galleryImageReference

      public GalleryImageReference galleryImageReference()
      Get the galleryImageReference property: The Microsoft Azure Marketplace image reference of the virtual machine.
      Returns:
      the galleryImageReference value.
    • withGalleryImageReference

      public LabVirtualMachineInner withGalleryImageReference(GalleryImageReference galleryImageReference)
      Set the galleryImageReference property: The Microsoft Azure Marketplace image reference of the virtual machine.
      Parameters:
      galleryImageReference - the galleryImageReference value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • planId

      public String planId()
      Get the planId property: The id of the plan associated with the virtual machine image.
      Returns:
      the planId value.
    • withPlanId

      public LabVirtualMachineInner withPlanId(String planId)
      Set the planId property: The id of the plan associated with the virtual machine image.
      Parameters:
      planId - the planId value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • computeVm

      public ComputeVmProperties computeVm()
      Get the computeVm property: The compute virtual machine properties.
      Returns:
      the computeVm value.
    • networkInterface

      public NetworkInterfaceProperties networkInterface()
      Get the networkInterface property: The network interface properties.
      Returns:
      the networkInterface value.
    • withNetworkInterface

      public LabVirtualMachineInner withNetworkInterface(NetworkInterfaceProperties networkInterface)
      Set the networkInterface property: The network interface properties.
      Parameters:
      networkInterface - the networkInterface value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • applicableSchedule

      public ApplicableScheduleInner applicableSchedule()
      Get the applicableSchedule property: The applicable schedule for the virtual machine.
      Returns:
      the applicableSchedule value.
    • expirationDate

      public OffsetDateTime expirationDate()
      Get the expirationDate property: The expiration date for VM.
      Returns:
      the expirationDate value.
    • withExpirationDate

      public LabVirtualMachineInner withExpirationDate(OffsetDateTime expirationDate)
      Set the expirationDate property: The expiration date for VM.
      Parameters:
      expirationDate - the expirationDate value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • allowClaim

      public Boolean allowClaim()
      Get the allowClaim property: Indicates whether another user can take ownership of the virtual machine.
      Returns:
      the allowClaim value.
    • withAllowClaim

      public LabVirtualMachineInner withAllowClaim(Boolean allowClaim)
      Set the allowClaim property: Indicates whether another user can take ownership of the virtual machine.
      Parameters:
      allowClaim - the allowClaim value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • storageType

      public String storageType()
      Get the storageType property: Storage type to use for virtual machine (i.e. Standard, Premium).
      Returns:
      the storageType value.
    • withStorageType

      public LabVirtualMachineInner withStorageType(String storageType)
      Set the storageType property: Storage type to use for virtual machine (i.e. Standard, Premium).
      Parameters:
      storageType - the storageType value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • virtualMachineCreationSource

      public VirtualMachineCreationSource virtualMachineCreationSource()
      Get the virtualMachineCreationSource property: Tells source of creation of lab virtual machine. Output property only.
      Returns:
      the virtualMachineCreationSource value.
    • environmentId

      public String environmentId()
      Get the environmentId property: The resource ID of the environment that contains this virtual machine, if any.
      Returns:
      the environmentId value.
    • withEnvironmentId

      public LabVirtualMachineInner withEnvironmentId(String environmentId)
      Set the environmentId property: The resource ID of the environment that contains this virtual machine, if any.
      Parameters:
      environmentId - the environmentId value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • dataDiskParameters

      public List<DataDiskProperties> dataDiskParameters()
      Get the dataDiskParameters property: New or existing data disks to attach to the virtual machine after creation.
      Returns:
      the dataDiskParameters value.
    • withDataDiskParameters

      public LabVirtualMachineInner withDataDiskParameters(List<DataDiskProperties> dataDiskParameters)
      Set the dataDiskParameters property: New or existing data disks to attach to the virtual machine after creation.
      Parameters:
      dataDiskParameters - the dataDiskParameters value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • scheduleParameters

      public List<ScheduleCreationParameter> scheduleParameters()
      Get the scheduleParameters property: Virtual Machine schedules to be created.
      Returns:
      the scheduleParameters value.
    • withScheduleParameters

      public LabVirtualMachineInner withScheduleParameters(List<ScheduleCreationParameter> scheduleParameters)
      Set the scheduleParameters property: Virtual Machine schedules to be created.
      Parameters:
      scheduleParameters - the scheduleParameters value to set.
      Returns:
      the LabVirtualMachineInner object itself.
    • lastKnownPowerState

      public String lastKnownPowerState()
      Get the lastKnownPowerState property: Last known compute power state captured in DTL.
      Returns:
      the lastKnownPowerState value.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: The provisioning status of the resource.
      Returns:
      the provisioningState value.
    • uniqueIdentifier

      public String uniqueIdentifier()
      Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).
      Returns:
      the uniqueIdentifier value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.