Class CommunicationRelayConfiguration
- java.lang.Object
-
- com.azure.communication.networktraversal.models.CommunicationRelayConfiguration
-
public final class CommunicationRelayConfiguration extends Object
A relay configuration containing the STUN/TURN URLs and credentials.
-
-
Constructor Summary
Constructors Constructor Description CommunicationRelayConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTime
getExpiresOn()
Get the expiresOn property: The date for which the username and credentials are not longer valid.List<CommunicationIceServer>
getIceServers()
Get the iceServers property: An array representing the credentials and the STUN/TURN server URLs for use in ICE negotiations.CommunicationRelayConfiguration
setExpiresOn(OffsetDateTime expiresOn)
Set the expiresOn property: The date for which the username and credentials are not longer valid.CommunicationRelayConfiguration
setIceServers(List<CommunicationIceServer> iceServers)
Set the iceServers property: An array representing the credentials and the STUN/TURN server URLs for use in ICE negotiations.
-
-
-
Method Detail
-
getExpiresOn
public OffsetDateTime getExpiresOn()
Get the expiresOn property: The date for which the username and credentials are not longer valid.- Returns:
- the expiresOn value.
-
setExpiresOn
public CommunicationRelayConfiguration setExpiresOn(OffsetDateTime expiresOn)
Set the expiresOn property: The date for which the username and credentials are not longer valid.- Parameters:
expiresOn
- the expiresOn value to set.- Returns:
- the CommunicationRelayConfiguration object itself.
-
getIceServers
public List<CommunicationIceServer> getIceServers()
Get the iceServers property: An array representing the credentials and the STUN/TURN server URLs for use in ICE negotiations.- Returns:
- the iceServers value.
-
setIceServers
public CommunicationRelayConfiguration setIceServers(List<CommunicationIceServer> iceServers)
Set the iceServers property: An array representing the credentials and the STUN/TURN server URLs for use in ICE negotiations.- Parameters:
iceServers
- the iceServers value to set.- Returns:
- the CommunicationRelayConfiguration object itself.
-
-