Class GameProperty
- java.lang.Object
-
- com.amazonaws.services.gamelift.model.GameProperty
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class GameProperty extends Object implements Serializable, 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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GameProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GameProperty
clone()
boolean
equals(Object obj)
String
getKey()
String
getValue()
int
hashCode()
void
setKey(String key)
void
setValue(String value)
String
toString()
Returns a string representation of this object; useful for testing and debugging.GameProperty
withKey(String key)
GameProperty
withValue(String value)
-
-
-
Method Detail
-
setKey
public void setKey(String key)
- Parameters:
key
-
-
getKey
public String getKey()
- Returns:
-
withKey
public GameProperty withKey(String key)
- Parameters:
key
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
public void setValue(String value)
- Parameters:
value
-
-
getValue
public String getValue()
- Returns:
-
withValue
public GameProperty withValue(String value)
- Parameters:
value
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GameProperty clone()
-
-