public class IceServer
extends java.lang.Object
implements java.io.Serializable
A structure for the ICE server connection data.
Constructor and Description |
---|
IceServer() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPassword()
A password to login to the ICE server.
|
java.lang.Integer |
getTtl()
The period of time, in seconds, during which the username and password
are valid.
|
java.util.List<java.lang.String> |
getUris()
An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris spec.
|
java.lang.String |
getUsername()
A username to login to the ICE server.
|
int |
hashCode() |
void |
setPassword(java.lang.String password)
A password to login to the ICE server.
|
void |
setTtl(java.lang.Integer ttl)
The period of time, in seconds, during which the username and password
are valid.
|
void |
setUris(java.util.Collection<java.lang.String> uris)
An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris spec.
|
void |
setUsername(java.lang.String username)
A username to login to the ICE server.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
IceServer |
withPassword(java.lang.String password)
A password to login to the ICE server.
|
IceServer |
withTtl(java.lang.Integer ttl)
The period of time, in seconds, during which the username and password
are valid.
|
IceServer |
withUris(java.util.Collection<java.lang.String> uris)
An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris spec.
|
IceServer |
withUris(java.lang.String... uris)
An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris spec.
|
IceServer |
withUsername(java.lang.String username)
A username to login to the ICE server.
|
public java.util.List<java.lang.String> getUris()
An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris spec. These URIs provide the different addresses and/or protocols that can be used to reach the TURN server.
An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris spec. These URIs provide the different addresses and/or protocols that can be used to reach the TURN server.
public void setUris(java.util.Collection<java.lang.String> uris)
An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris spec. These URIs provide the different addresses and/or protocols that can be used to reach the TURN server.
uris
- An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris spec. These URIs provide the different addresses and/or protocols that can be used to reach the TURN server.
public IceServer withUris(java.lang.String... uris)
An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris spec. These URIs provide the different addresses and/or protocols that can be used to reach the TURN server.
Returns a reference to this object so that method calls can be chained together.
uris
- An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris spec. These URIs provide the different addresses and/or protocols that can be used to reach the TURN server.
public IceServer withUris(java.util.Collection<java.lang.String> uris)
An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris spec. These URIs provide the different addresses and/or protocols that can be used to reach the TURN server.
Returns a reference to this object so that method calls can be chained together.
uris
- An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris spec. These URIs provide the different addresses and/or protocols that can be used to reach the TURN server.
public java.lang.String getUsername()
A username to login to the ICE server.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
A username to login to the ICE server.
public void setUsername(java.lang.String username)
A username to login to the ICE server.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
username
- A username to login to the ICE server.
public IceServer withUsername(java.lang.String username)
A username to login to the ICE server.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
username
- A username to login to the ICE server.
public java.lang.String getPassword()
A password to login to the ICE server.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
A password to login to the ICE server.
public void setPassword(java.lang.String password)
A password to login to the ICE server.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
password
- A password to login to the ICE server.
public IceServer withPassword(java.lang.String password)
A password to login to the ICE server.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.-]+
password
- A password to login to the ICE server.
public java.lang.Integer getTtl()
The period of time, in seconds, during which the username and password are valid.
Constraints:
Range: 30 - 86400
The period of time, in seconds, during which the username and password are valid.
public void setTtl(java.lang.Integer ttl)
The period of time, in seconds, during which the username and password are valid.
Constraints:
Range: 30 - 86400
ttl
- The period of time, in seconds, during which the username and password are valid.
public IceServer withTtl(java.lang.Integer ttl)
The period of time, in seconds, during which the username and password are valid.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 30 - 86400
ttl
- The period of time, in seconds, during which the username and password are valid.
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.