@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GameProperty extends Object implements Serializable, Cloneable, StructuredPojo
This key-value pair can store custom data about a game session. For example, you might use a
GameProperty to track a game session's map, level of difficulty, or remaining time. The difficulty level
could be specified like this: {"Key": "difficulty", "Value":"Novice"}.
You can set game properties when creating a game session. You can also modify game properties of an active game session. When searching for game sessions, you can filter on game property keys and values. You can't delete game properties from a game session.
For examples of working with game properties, see Create a game session with properties.
| Constructor and Description |
|---|
GameProperty() |
| Modifier and Type | Method and Description |
|---|---|
GameProperty |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The game property identifier.
|
String |
getValue()
The game property value.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setKey(String key)
The game property identifier.
|
void |
setValue(String value)
The game property value.
|
String |
toString()
Returns a string representation of this object.
|
GameProperty |
withKey(String key)
The game property identifier.
|
GameProperty |
withValue(String value)
The game property value.
|
public void setKey(String key)
The game property identifier.
key - The game property identifier.public String getKey()
The game property identifier.
public GameProperty withKey(String key)
The game property identifier.
key - The game property identifier.public void setValue(String value)
The game property value.
value - The game property value.public String getValue()
The game property value.
public GameProperty withValue(String value)
The game property value.
value - The game property value.public String toString()
toString in class ObjectObject.toString()public GameProperty clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.