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:
  • Constructor Details

    • GameProperty

      public GameProperty()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public GameProperty clone()
      Overrides:
      clone in class Object