Share via


ConnectionProfile Class

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

Implements

public final class ConnectionProfile
implements JsonSerializable<ConnectionProfile>

Connection profile for how users connect to lab virtual machines.

Constructor Summary

Constructor Description
ConnectionProfile()

Creates an instance of ConnectionProfile class.

Method Summary

Modifier and Type Method and Description
ConnectionType clientRdpAccess()

Get the clientRdpAccess property: The enabled access level for Client Access over RDP.

ConnectionType clientSshAccess()

Get the clientSshAccess property: The enabled access level for Client Access over SSH.

static ConnectionProfile fromJson(JsonReader jsonReader)

Reads an instance of ConnectionProfile from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ConnectionType webRdpAccess()

Get the webRdpAccess property: The enabled access level for Web Access over RDP.

ConnectionType webSshAccess()

Get the webSshAccess property: The enabled access level for Web Access over SSH.

ConnectionProfile withClientRdpAccess(ConnectionType clientRdpAccess)

Set the clientRdpAccess property: The enabled access level for Client Access over RDP.

ConnectionProfile withClientSshAccess(ConnectionType clientSshAccess)

Set the clientSshAccess property: The enabled access level for Client Access over SSH.

ConnectionProfile withWebRdpAccess(ConnectionType webRdpAccess)

Set the webRdpAccess property: The enabled access level for Web Access over RDP.

ConnectionProfile withWebSshAccess(ConnectionType webSshAccess)

Set the webSshAccess property: The enabled access level for Web Access over SSH.

Methods inherited from java.lang.Object

Constructor Details

ConnectionProfile

public ConnectionProfile()

Creates an instance of ConnectionProfile class.

Method Details

clientRdpAccess

public ConnectionType clientRdpAccess()

Get the clientRdpAccess property: The enabled access level for Client Access over RDP.

Returns:

the clientRdpAccess value.

clientSshAccess

public ConnectionType clientSshAccess()

Get the clientSshAccess property: The enabled access level for Client Access over SSH.

Returns:

the clientSshAccess value.

fromJson

public static ConnectionProfile fromJson(JsonReader jsonReader)

Reads an instance of ConnectionProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ConnectionProfile 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 ConnectionProfile.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

webRdpAccess

public ConnectionType webRdpAccess()

Get the webRdpAccess property: The enabled access level for Web Access over RDP.

Returns:

the webRdpAccess value.

webSshAccess

public ConnectionType webSshAccess()

Get the webSshAccess property: The enabled access level for Web Access over SSH.

Returns:

the webSshAccess value.

withClientRdpAccess

public ConnectionProfile withClientRdpAccess(ConnectionType clientRdpAccess)

Set the clientRdpAccess property: The enabled access level for Client Access over RDP.

Parameters:

clientRdpAccess - the clientRdpAccess value to set.

Returns:

the ConnectionProfile object itself.

withClientSshAccess

public ConnectionProfile withClientSshAccess(ConnectionType clientSshAccess)

Set the clientSshAccess property: The enabled access level for Client Access over SSH.

Parameters:

clientSshAccess - the clientSshAccess value to set.

Returns:

the ConnectionProfile object itself.

withWebRdpAccess

public ConnectionProfile withWebRdpAccess(ConnectionType webRdpAccess)

Set the webRdpAccess property: The enabled access level for Web Access over RDP.

Parameters:

webRdpAccess - the webRdpAccess value to set.

Returns:

the ConnectionProfile object itself.

withWebSshAccess

public ConnectionProfile withWebSshAccess(ConnectionType webSshAccess)

Set the webSshAccess property: The enabled access level for Web Access over SSH.

Parameters:

webSshAccess - the webSshAccess value to set.

Returns:

the ConnectionProfile object itself.

Applies to