public class GameProperty
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Set of key-value pairs containing information your game server requires to set up sessions. This object allows you to pass in any set of data needed for your game. For more information, see the Amazon GameLift Developer Guide.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
key |
private java.lang.String |
value |
Constructor and Description |
---|
GameProperty() |
Modifier and Type | Method and Description |
---|---|
GameProperty |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey() |
java.lang.String |
getValue() |
int |
hashCode() |
void |
setKey(java.lang.String key) |
void |
setValue(java.lang.String value) |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GameProperty |
withKey(java.lang.String key) |
GameProperty |
withValue(java.lang.String value) |
public void setKey(java.lang.String key)
key
- public java.lang.String getKey()
public GameProperty withKey(java.lang.String key)
key
- public void setValue(java.lang.String value)
value
- public java.lang.String getValue()
public GameProperty withValue(java.lang.String value)
value
- public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public GameProperty clone()
clone
in class java.lang.Object