Share via


VirtualMachineConnectionProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.labservices.models.VirtualMachineConnectionProfile

Implements

public final class VirtualMachineConnectionProfile
implements JsonSerializable<VirtualMachineConnectionProfile>

The connection information for the virtual machine.

Constructor Summary

Constructor Description
VirtualMachineConnectionProfile()

Creates an instance of VirtualMachineConnectionProfile class.

Method Summary

Modifier and Type Method and Description
String adminUsername()

Get the adminUsername property: The username used to log on to the virtual machine as admin.

static VirtualMachineConnectionProfile fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineConnectionProfile from the JsonReader.

String nonAdminUsername()

Get the nonAdminUsername property: The username used to log on to the virtual machine as non-admin, if one exists.

String privateIpAddress()

Get the privateIpAddress property: The private IP address of the virtual machine.

String rdpAuthority()

Get the rdpAuthority property: Port and host name separated by semicolon for connecting via RDP protocol to the virtual machine.

String rdpInBrowserUrl()

Get the rdpInBrowserUrl property: URL for connecting via RDP protocol to the virtual machine in browser.

String sshAuthority()

Get the sshAuthority property: Port and host name separated by semicolon for connecting via SSH protocol to the virtual machine.

String sshInBrowserUrl()

Get the sshInBrowserUrl property: URL for connecting via SSH protocol to the virtual machine in browser.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineConnectionProfile

public VirtualMachineConnectionProfile()

Creates an instance of VirtualMachineConnectionProfile class.

Method Details

adminUsername

public String adminUsername()

Get the adminUsername property: The username used to log on to the virtual machine as admin.

Returns:

the adminUsername value.

fromJson

public static VirtualMachineConnectionProfile fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineConnectionProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachineConnectionProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the VirtualMachineConnectionProfile.

nonAdminUsername

public String nonAdminUsername()

Get the nonAdminUsername property: The username used to log on to the virtual machine as non-admin, if one exists.

Returns:

the nonAdminUsername value.

privateIpAddress

public String privateIpAddress()

Get the privateIpAddress property: The private IP address of the virtual machine.

Returns:

the privateIpAddress value.

rdpAuthority

public String rdpAuthority()

Get the rdpAuthority property: Port and host name separated by semicolon for connecting via RDP protocol to the virtual machine.

Returns:

the rdpAuthority value.

rdpInBrowserUrl

public String rdpInBrowserUrl()

Get the rdpInBrowserUrl property: URL for connecting via RDP protocol to the virtual machine in browser.

Returns:

the rdpInBrowserUrl value.

sshAuthority

public String sshAuthority()

Get the sshAuthority property: Port and host name separated by semicolon for connecting via SSH protocol to the virtual machine.

Returns:

the sshAuthority value.

sshInBrowserUrl

public String sshInBrowserUrl()

Get the sshInBrowserUrl property: URL for connecting via SSH protocol to the virtual machine in browser.

Returns:

the sshInBrowserUrl value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to