public class GetIceServerConfigRequest extends AmazonWebServiceRequest implements java.io.Serializable
Gets the Interactive Connectivity Establishment (ICE) server configuration information, including URIs, username, and password which can be used to configure the WebRTC connection. The ICE component uses this configuration information to setup the WebRTC connection, including authenticating with the Traversal Using Relays around NAT (TURN) relay server.
TURN is a protocol that is used to improve the connectivity of peer-to-peer applications. By providing a cloud-based relay service, TURN ensures that a connection can be established even when one or more peers are incapable of a direct peer-to-peer connection. For more information, see A REST API For Access To TURN Services.
You can invoke this API to establish a fallback mechanism in case either of the peers is unable to establish a direct peer-to-peer connection over a signaling channel. You must specify either a signaling channel ARN or the client ID in order to invoke this API.
Constructor and Description |
---|
GetIceServerConfigRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getChannelARN()
The ARN of the signaling channel to be used for the peer-to-peer
connection between configured peers.
|
java.lang.String |
getClientId()
Unique identifier for the viewer.
|
java.lang.String |
getService()
Specifies the desired service.
|
java.lang.String |
getUsername()
An optional user ID to be associated with the credentials.
|
int |
hashCode() |
void |
setChannelARN(java.lang.String channelARN)
The ARN of the signaling channel to be used for the peer-to-peer
connection between configured peers.
|
void |
setClientId(java.lang.String clientId)
Unique identifier for the viewer.
|
void |
setService(Service service)
Specifies the desired service.
|
void |
setService(java.lang.String service)
Specifies the desired service.
|
void |
setUsername(java.lang.String username)
An optional user ID to be associated with the credentials.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetIceServerConfigRequest |
withChannelARN(java.lang.String channelARN)
The ARN of the signaling channel to be used for the peer-to-peer
connection between configured peers.
|
GetIceServerConfigRequest |
withClientId(java.lang.String clientId)
Unique identifier for the viewer.
|
GetIceServerConfigRequest |
withService(Service service)
Specifies the desired service.
|
GetIceServerConfigRequest |
withService(java.lang.String service)
Specifies the desired service.
|
GetIceServerConfigRequest |
withUsername(java.lang.String username)
An optional user ID to be associated with the credentials.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getChannelARN()
The ARN of the signaling channel to be used for the peer-to-peer connection between configured peers.
Constraints:
Length: 1 - 1024
Pattern:
arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+
The ARN of the signaling channel to be used for the peer-to-peer connection between configured peers.
public void setChannelARN(java.lang.String channelARN)
The ARN of the signaling channel to be used for the peer-to-peer connection between configured peers.
Constraints:
Length: 1 - 1024
Pattern:
arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+
channelARN
- The ARN of the signaling channel to be used for the peer-to-peer connection between configured peers.
public GetIceServerConfigRequest withChannelARN(java.lang.String channelARN)
The ARN of the signaling channel to be used for the peer-to-peer connection between configured peers.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
Pattern:
arn:aws:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+
channelARN
- The ARN of the signaling channel to be used for the peer-to-peer connection between configured peers.
public java.lang.String getClientId()
Unique identifier for the viewer. Must be unique within the signaling channel.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
Unique identifier for the viewer. Must be unique within the signaling channel.
public void setClientId(java.lang.String clientId)
Unique identifier for the viewer. Must be unique within the signaling channel.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
clientId
- Unique identifier for the viewer. Must be unique within the signaling channel.
public GetIceServerConfigRequest withClientId(java.lang.String clientId)
Unique identifier for the viewer. Must be unique within the signaling channel.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
clientId
- Unique identifier for the viewer. Must be unique within the signaling channel.
public java.lang.String getService()
Specifies the desired service. Currently, TURN
is the only
valid value.
Constraints:
Allowed Values: TURN
Specifies the desired service. Currently, TURN
is
the only valid value.
Service
public void setService(java.lang.String service)
Specifies the desired service. Currently, TURN
is the only
valid value.
Constraints:
Allowed Values: TURN
service
-
Specifies the desired service. Currently, TURN
is
the only valid value.
Service
public GetIceServerConfigRequest withService(java.lang.String service)
Specifies the desired service. Currently, TURN
is the only
valid value.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: TURN
service
-
Specifies the desired service. Currently, TURN
is
the only valid value.
Service
public void setService(Service service)
Specifies the desired service. Currently, TURN
is the only
valid value.
Constraints:
Allowed Values: TURN
service
-
Specifies the desired service. Currently, TURN
is
the only valid value.
Service
public GetIceServerConfigRequest withService(Service service)
Specifies the desired service. Currently, TURN
is the only
valid value.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: TURN
service
-
Specifies the desired service. Currently, TURN
is
the only valid value.
Service
public java.lang.String getUsername()
An optional user ID to be associated with the credentials.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
An optional user ID to be associated with the credentials.
public void setUsername(java.lang.String username)
An optional user ID to be associated with the credentials.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
username
- An optional user ID to be associated with the credentials.
public GetIceServerConfigRequest withUsername(java.lang.String username)
An optional user ID to be associated with the credentials.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
username
- An optional user ID to be associated with the credentials.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.