@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreatePlayerSessionsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreatePlayerSessionsRequest() |
Modifier and Type | Method and Description |
---|---|
CreatePlayerSessionsRequest |
addPlayerDataMapEntry(String key,
String value)
Add a single PlayerDataMap entry
|
CreatePlayerSessionsRequest |
clearPlayerDataMapEntries()
Removes all the entries added into PlayerDataMap.
|
CreatePlayerSessionsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getGameSessionId()
A unique identifier for the game session to add players to.
|
Map<String,String> |
getPlayerDataMap()
Map of string pairs, each specifying a player ID and a set of developer-defined information related to the
player.
|
List<String> |
getPlayerIds()
List of unique identifiers for the players to be added.
|
int |
hashCode() |
void |
setGameSessionId(String gameSessionId)
A unique identifier for the game session to add players to.
|
void |
setPlayerDataMap(Map<String,String> playerDataMap)
Map of string pairs, each specifying a player ID and a set of developer-defined information related to the
player.
|
void |
setPlayerIds(Collection<String> playerIds)
List of unique identifiers for the players to be added.
|
String |
toString()
Returns a string representation of this object.
|
CreatePlayerSessionsRequest |
withGameSessionId(String gameSessionId)
A unique identifier for the game session to add players to.
|
CreatePlayerSessionsRequest |
withPlayerDataMap(Map<String,String> playerDataMap)
Map of string pairs, each specifying a player ID and a set of developer-defined information related to the
player.
|
CreatePlayerSessionsRequest |
withPlayerIds(Collection<String> playerIds)
List of unique identifiers for the players to be added.
|
CreatePlayerSessionsRequest |
withPlayerIds(String... playerIds)
List of unique identifiers for the players to be added.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setGameSessionId(String gameSessionId)
A unique identifier for the game session to add players to.
gameSessionId
- A unique identifier for the game session to add players to.public String getGameSessionId()
A unique identifier for the game session to add players to.
public CreatePlayerSessionsRequest withGameSessionId(String gameSessionId)
A unique identifier for the game session to add players to.
gameSessionId
- A unique identifier for the game session to add players to.public List<String> getPlayerIds()
List of unique identifiers for the players to be added.
public void setPlayerIds(Collection<String> playerIds)
List of unique identifiers for the players to be added.
playerIds
- List of unique identifiers for the players to be added.public CreatePlayerSessionsRequest withPlayerIds(String... playerIds)
List of unique identifiers for the players to be added.
NOTE: This method appends the values to the existing list (if any). Use
setPlayerIds(java.util.Collection)
or withPlayerIds(java.util.Collection)
if you want to
override the existing values.
playerIds
- List of unique identifiers for the players to be added.public CreatePlayerSessionsRequest withPlayerIds(Collection<String> playerIds)
List of unique identifiers for the players to be added.
playerIds
- List of unique identifiers for the players to be added.public Map<String,String> getPlayerDataMap()
Map of string pairs, each specifying a player ID and a set of developer-defined information related to the
player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game. Any player
data strings for player IDs that are not included in the PlayerIds
parameter are ignored.
PlayerIds
parameter are
ignored.public void setPlayerDataMap(Map<String,String> playerDataMap)
Map of string pairs, each specifying a player ID and a set of developer-defined information related to the
player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game. Any player
data strings for player IDs that are not included in the PlayerIds
parameter are ignored.
playerDataMap
- Map of string pairs, each specifying a player ID and a set of developer-defined information related to the
player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game. Any
player data strings for player IDs that are not included in the PlayerIds
parameter are
ignored.public CreatePlayerSessionsRequest withPlayerDataMap(Map<String,String> playerDataMap)
Map of string pairs, each specifying a player ID and a set of developer-defined information related to the
player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game. Any player
data strings for player IDs that are not included in the PlayerIds
parameter are ignored.
playerDataMap
- Map of string pairs, each specifying a player ID and a set of developer-defined information related to the
player. Amazon GameLift does not use this data, so it can be formatted as needed for use in the game. Any
player data strings for player IDs that are not included in the PlayerIds
parameter are
ignored.public CreatePlayerSessionsRequest addPlayerDataMapEntry(String key, String value)
public CreatePlayerSessionsRequest clearPlayerDataMapEntries()
public String toString()
toString
in class Object
Object.toString()
public CreatePlayerSessionsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()