Class CreatePlayerSessionsRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.gamelift.model.CreatePlayerSessionsRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class CreatePlayerSessionsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input for a request action.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreatePlayerSessionsRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreatePlayerSessionsRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getGameSessionId()
Unique identifier for a game session.List<String>
getPlayerIds()
List of unique identifiers for the players to be added.int
hashCode()
void
setGameSessionId(String gameSessionId)
Unique identifier for a game session.void
setPlayerIds(Collection<String> playerIds)
List of unique identifiers for the players to be added.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreatePlayerSessionsRequest
withGameSessionId(String gameSessionId)
Unique identifier for a game session.CreatePlayerSessionsRequest
withPlayerIds(String... playerIds)
List of unique identifiers for the players to be added.CreatePlayerSessionsRequest
withPlayerIds(Collection<String> playerIds)
List of unique identifiers for the players to be added.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setGameSessionId
public void setGameSessionId(String gameSessionId)
Unique identifier for a game session.
- Parameters:
gameSessionId
- Unique identifier for a game session.
-
getGameSessionId
public String getGameSessionId()
Unique identifier for a game session.
- Returns:
- Unique identifier for a game session.
-
withGameSessionId
public CreatePlayerSessionsRequest withGameSessionId(String gameSessionId)
Unique identifier for a game session.
- Parameters:
gameSessionId
- Unique identifier for a game session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getPlayerIds
public List<String> getPlayerIds()
List of unique identifiers for the players to be added.
- Returns:
- List of unique identifiers for the players to be added.
-
setPlayerIds
public void setPlayerIds(Collection<String> playerIds)
List of unique identifiers for the players to be added.
- Parameters:
playerIds
- List of unique identifiers for the players to be added.
-
withPlayerIds
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)
orwithPlayerIds(java.util.Collection)
if you want to override the existing values.- Parameters:
playerIds
- List of unique identifiers for the players to be added.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withPlayerIds
public CreatePlayerSessionsRequest withPlayerIds(Collection<String> playerIds)
List of unique identifiers for the players to be added.
- Parameters:
playerIds
- List of unique identifiers for the players to be added.- 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 CreatePlayerSessionsRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-