@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IceServer extends Object implements Serializable, Cloneable, StructuredPojo
A structure for the ICE server connection data.
Constructor and Description |
---|
IceServer() |
Modifier and Type | Method and Description |
---|---|
IceServer |
clone() |
boolean |
equals(Object obj) |
String |
getPassword()
A password to login to the ICE server.
|
Integer |
getTtl()
The period of time, in seconds, during which the username and password are valid.
|
List<String> |
getUris()
An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris
spec.
|
String |
getUsername()
A username to login to the ICE server.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPassword(String password)
A password to login to the ICE server.
|
void |
setTtl(Integer ttl)
The period of time, in seconds, during which the username and password are valid.
|
void |
setUris(Collection<String> uris)
An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris
spec.
|
void |
setUsername(String username)
A username to login to the ICE server.
|
String |
toString()
Returns a string representation of this object.
|
IceServer |
withPassword(String password)
A password to login to the ICE server.
|
IceServer |
withTtl(Integer ttl)
The period of time, in seconds, during which the username and password are valid.
|
IceServer |
withUris(Collection<String> uris)
An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris
spec.
|
IceServer |
withUris(String... uris)
An array of URIs, in the form specified in the I-D.petithuguenin-behave-turn-uris
spec.
|
IceServer |
withUsername(String username)
A username to login to the ICE server.
|
public List<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.
public void setUris(Collection<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(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.
NOTE: This method appends the values to the existing list (if any). Use
setUris(java.util.Collection)
or withUris(java.util.Collection)
if you want to override the
existing values.
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(Collection<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 void setUsername(String username)
A username to login to the ICE server.
username
- A username to login to the ICE server.public String getUsername()
A username to login to the ICE server.
public IceServer withUsername(String username)
A username to login to the ICE server.
username
- A username to login to the ICE server.public void setPassword(String password)
A password to login to the ICE server.
password
- A password to login to the ICE server.public String getPassword()
A password to login to the ICE server.
public IceServer withPassword(String password)
A password to login to the ICE server.
password
- A password to login to the ICE server.public void setTtl(Integer ttl)
The period of time, in seconds, during which the username and password are valid.
ttl
- The period of time, in seconds, during which the username and password are valid.public Integer getTtl()
The period of time, in seconds, during which the username and password are valid.
public IceServer withTtl(Integer ttl)
The period of time, in seconds, during which the username and password are valid.
ttl
- The period of time, in seconds, during which the username and password are valid.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.