LabVirtualMachineCreationParameter Class
- java.
lang. Object - com.
azure. resourcemanager. devtestlabs. models. LabVirtualMachineCreationParameter
- com.
Implements
public final class LabVirtualMachineCreationParameter
implements JsonSerializable<LabVirtualMachineCreationParameter>
Properties for creating a virtual machine.
Constructor Summary
| Constructor | Description |
|---|---|
| LabVirtualMachineCreationParameter() |
Creates an instance of Lab |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
allowClaim()
Get the allow |
|
List<Artifact |
artifacts()
Get the artifacts property: The artifacts to be installed on the virtual machine. |
|
Bulk |
bulkCreationParameters()
Get the bulk |
|
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 |
|
static
Lab |
fromJson(JsonReader jsonReader)
Reads an instance of Lab |
|
Gallery |
galleryImageReference()
Get the gallery |
| Boolean |
isAuthenticationWithSshKey()
Get the is |
| String |
labSubnetName()
Get the lab |
| String |
labVirtualNetworkId()
Get the lab |
| String |
location()
Get the location property: The location of the new virtual machine or environment. |
| String |
name()
Get the name property: The name of the virtual machine or environment. |
|
Network |
networkInterface()
Get the network |
| String |
notes()
Get the notes property: The notes of the virtual machine. |
| 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 |
|
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 |
| Map<String,String> |
tags()
Get the tags property: The tags of the resource. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
username()
Get the username property: The user name of the virtual machine. |
|
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 |
withBulkCreationParameters(BulkCreationParameters bulkCreationParameters)
Set the bulk |
|
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)
Set the location property: The location of the new virtual machine or environment. |
|
Lab |
withName(String name)
Set the name property: The name of the virtual machine or environment. |
|
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)
Set the tags property: The tags of the resource. |
|
Lab |
withUsername(String username)
Set the username property: The user name of the virtual machine. |
Methods inherited from java.lang.Object
Constructor Details
LabVirtualMachineCreationParameter
public LabVirtualMachineCreationParameter()
Creates an instance of LabVirtualMachineCreationParameter class.
Method Details
allowClaim
public Boolean allowClaim()
Get the allowClaim property: Indicates whether another user can take ownership of the virtual machine.
Returns:
artifacts
public List<ArtifactInstallProperties> artifacts()
Get the artifacts property: The artifacts to be installed on the virtual machine.
Returns:
bulkCreationParameters
public BulkCreationParameters bulkCreationParameters()
Get the bulkCreationParameters property: The number of virtual machine instances to create.
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<DataDiskProperties> dataDiskParameters()
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:
fromJson
public static LabVirtualMachineCreationParameter fromJson(JsonReader jsonReader)
Reads an instance of LabVirtualMachineCreationParameter from the JsonReader.
Parameters:
Returns:
Throws:
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:
location
public String location()
Get the location property: The location of the new virtual machine or environment.
Returns:
name
public String name()
Get the name property: The name of the virtual machine or environment.
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:
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:
scheduleParameters
public List<ScheduleCreationParameter> scheduleParameters()
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:
tags
public Map<String,String> tags()
Get the tags property: The tags of the resource.
Returns:
toJson
username
public String username()
Get the username property: The user name of the virtual machine.
Returns:
withAllowClaim
public LabVirtualMachineCreationParameter withAllowClaim(Boolean allowClaim)
Set the allowClaim property: Indicates whether another user can take ownership of the virtual machine.
Parameters:
Returns:
withArtifacts
public LabVirtualMachineCreationParameter withArtifacts(List<ArtifactInstallProperties> artifacts)
Set the artifacts property: The artifacts to be installed on the virtual machine.
Parameters:
Returns:
withBulkCreationParameters
public LabVirtualMachineCreationParameter withBulkCreationParameters(BulkCreationParameters bulkCreationParameters)
Set the bulkCreationParameters property: The number of virtual machine instances to create.
Parameters:
Returns:
withCreatedDate
public LabVirtualMachineCreationParameter withCreatedDate(OffsetDateTime createdDate)
Set the createdDate property: The creation date of the virtual machine.
Parameters:
Returns:
withCustomImageId
public LabVirtualMachineCreationParameter withCustomImageId(String customImageId)
Set the customImageId property: The custom image identifier of the virtual machine.
Parameters:
Returns:
withDataDiskParameters
public LabVirtualMachineCreationParameter withDataDiskParameters(List<DataDiskProperties> dataDiskParameters)
Set the dataDiskParameters property: New or existing data disks to attach to the virtual machine after creation.
Parameters:
Returns:
withDisallowPublicIpAddress
public LabVirtualMachineCreationParameter 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 LabVirtualMachineCreationParameter withEnvironmentId(String environmentId)
Set the environmentId property: The resource ID of the environment that contains this virtual machine, if any.
Parameters:
Returns:
withExpirationDate
public LabVirtualMachineCreationParameter withExpirationDate(OffsetDateTime expirationDate)
Set the expirationDate property: The expiration date for VM.
Parameters:
Returns:
withGalleryImageReference
public LabVirtualMachineCreationParameter withGalleryImageReference(GalleryImageReference galleryImageReference)
Set the galleryImageReference property: The Microsoft Azure Marketplace image reference of the virtual machine.
Parameters:
Returns:
withIsAuthenticationWithSshKey
public LabVirtualMachineCreationParameter withIsAuthenticationWithSshKey(Boolean isAuthenticationWithSshKey)
Set the isAuthenticationWithSshKey property: Indicates whether this virtual machine uses an SSH key for authentication.
Parameters:
Returns:
withLabSubnetName
public LabVirtualMachineCreationParameter withLabSubnetName(String labSubnetName)
Set the labSubnetName property: The lab subnet name of the virtual machine.
Parameters:
Returns:
withLabVirtualNetworkId
public LabVirtualMachineCreationParameter withLabVirtualNetworkId(String labVirtualNetworkId)
Set the labVirtualNetworkId property: The lab virtual network identifier of the virtual machine.
Parameters:
Returns:
withLocation
public LabVirtualMachineCreationParameter withLocation(String location)
Set the location property: The location of the new virtual machine or environment.
Parameters:
Returns:
withName
public LabVirtualMachineCreationParameter withName(String name)
Set the name property: The name of the virtual machine or environment.
Parameters:
Returns:
withNetworkInterface
public LabVirtualMachineCreationParameter withNetworkInterface(NetworkInterfaceProperties networkInterface)
Set the networkInterface property: The network interface properties.
Parameters:
Returns:
withNotes
public LabVirtualMachineCreationParameter withNotes(String notes)
Set the notes property: The notes of the virtual machine.
Parameters:
Returns:
withOwnerObjectId
public LabVirtualMachineCreationParameter withOwnerObjectId(String ownerObjectId)
Set the ownerObjectId property: The object identifier of the owner of the virtual machine.
Parameters:
Returns:
withOwnerUserPrincipalName
public LabVirtualMachineCreationParameter withOwnerUserPrincipalName(String ownerUserPrincipalName)
Set the ownerUserPrincipalName property: The user principal name of the virtual machine owner.
Parameters:
Returns:
withPassword
public LabVirtualMachineCreationParameter withPassword(String password)
Set the password property: The password of the virtual machine administrator.
Parameters:
Returns:
withPlanId
public LabVirtualMachineCreationParameter withPlanId(String planId)
Set the planId property: The id of the plan associated with the virtual machine image.
Parameters:
Returns:
withScheduleParameters
public LabVirtualMachineCreationParameter withScheduleParameters(List<ScheduleCreationParameter> scheduleParameters)
Set the scheduleParameters property: Virtual Machine schedules to be created.
Parameters:
Returns:
withSize
public LabVirtualMachineCreationParameter withSize(String size)
Set the size property: The size of the virtual machine.
Parameters:
Returns:
withSshKey
public LabVirtualMachineCreationParameter withSshKey(String sshKey)
Set the sshKey property: The SSH key of the virtual machine administrator.
Parameters:
Returns:
withStorageType
public LabVirtualMachineCreationParameter withStorageType(String storageType)
Set the storageType property: Storage type to use for virtual machine (i.e. Standard, Premium).
Parameters:
Returns:
withTags
public LabVirtualMachineCreationParameter withTags(Map<String,String> tags)
Set the tags property: The tags of the resource.
Parameters:
Returns:
withUsername
public LabVirtualMachineCreationParameter withUsername(String username)
Set the username property: The user name of the virtual machine.
Parameters:
Returns: