@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateGameSessionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input for a request action.
NOOP
Constructor and Description |
---|
CreateGameSessionRequest() |
Modifier and Type | Method and Description |
---|---|
CreateGameSessionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAliasId()
Unique identifier for an alias associated with the fleet to create a game session in.
|
String |
getCreatorId()
Unique identifier for a player or entity creating the game session.
|
String |
getFleetId()
Unique identifier for a fleet to create a game session in.
|
List<GameProperty> |
getGameProperties()
Set of developer-defined properties for a game session.
|
String |
getGameSessionId()
This parameter is no longer preferred.
|
String |
getIdempotencyToken()
Custom string that uniquely identifies a request for a new game session.
|
Integer |
getMaximumPlayerSessionCount()
Maximum number of players that can be connected simultaneously to the game session.
|
String |
getName()
Descriptive label that is associated with a game session.
|
int |
hashCode() |
void |
setAliasId(String aliasId)
Unique identifier for an alias associated with the fleet to create a game session in.
|
void |
setCreatorId(String creatorId)
Unique identifier for a player or entity creating the game session.
|
void |
setFleetId(String fleetId)
Unique identifier for a fleet to create a game session in.
|
void |
setGameProperties(Collection<GameProperty> gameProperties)
Set of developer-defined properties for a game session.
|
void |
setGameSessionId(String gameSessionId)
This parameter is no longer preferred.
|
void |
setIdempotencyToken(String idempotencyToken)
Custom string that uniquely identifies a request for a new game session.
|
void |
setMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
Maximum number of players that can be connected simultaneously to the game session.
|
void |
setName(String name)
Descriptive label that is associated with a game session.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CreateGameSessionRequest |
withAliasId(String aliasId)
Unique identifier for an alias associated with the fleet to create a game session in.
|
CreateGameSessionRequest |
withCreatorId(String creatorId)
Unique identifier for a player or entity creating the game session.
|
CreateGameSessionRequest |
withFleetId(String fleetId)
Unique identifier for a fleet to create a game session in.
|
CreateGameSessionRequest |
withGameProperties(Collection<GameProperty> gameProperties)
Set of developer-defined properties for a game session.
|
CreateGameSessionRequest |
withGameProperties(GameProperty... gameProperties)
Set of developer-defined properties for a game session.
|
CreateGameSessionRequest |
withGameSessionId(String gameSessionId)
This parameter is no longer preferred.
|
CreateGameSessionRequest |
withIdempotencyToken(String idempotencyToken)
Custom string that uniquely identifies a request for a new game session.
|
CreateGameSessionRequest |
withMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
Maximum number of players that can be connected simultaneously to the game session.
|
CreateGameSessionRequest |
withName(String name)
Descriptive label that is associated with a game session.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setFleetId(String fleetId)
Unique identifier for a fleet to create a game session in. Each request must reference either a fleet ID or alias ID, but not both.
fleetId
- Unique identifier for a fleet to create a game session in. Each request must reference either a fleet ID
or alias ID, but not both.public String getFleetId()
Unique identifier for a fleet to create a game session in. Each request must reference either a fleet ID or alias ID, but not both.
public CreateGameSessionRequest withFleetId(String fleetId)
Unique identifier for a fleet to create a game session in. Each request must reference either a fleet ID or alias ID, but not both.
fleetId
- Unique identifier for a fleet to create a game session in. Each request must reference either a fleet ID
or alias ID, but not both.public void setAliasId(String aliasId)
Unique identifier for an alias associated with the fleet to create a game session in. Each request must reference either a fleet ID or alias ID, but not both.
aliasId
- Unique identifier for an alias associated with the fleet to create a game session in. Each request must
reference either a fleet ID or alias ID, but not both.public String getAliasId()
Unique identifier for an alias associated with the fleet to create a game session in. Each request must reference either a fleet ID or alias ID, but not both.
public CreateGameSessionRequest withAliasId(String aliasId)
Unique identifier for an alias associated with the fleet to create a game session in. Each request must reference either a fleet ID or alias ID, but not both.
aliasId
- Unique identifier for an alias associated with the fleet to create a game session in. Each request must
reference either a fleet ID or alias ID, but not both.public void setMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
Maximum number of players that can be connected simultaneously to the game session.
maximumPlayerSessionCount
- Maximum number of players that can be connected simultaneously to the game session.public Integer getMaximumPlayerSessionCount()
Maximum number of players that can be connected simultaneously to the game session.
public CreateGameSessionRequest withMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
Maximum number of players that can be connected simultaneously to the game session.
maximumPlayerSessionCount
- Maximum number of players that can be connected simultaneously to the game session.public void setName(String name)
Descriptive label that is associated with a game session. Session names do not need to be unique.
name
- Descriptive label that is associated with a game session. Session names do not need to be unique.public String getName()
Descriptive label that is associated with a game session. Session names do not need to be unique.
public CreateGameSessionRequest withName(String name)
Descriptive label that is associated with a game session. Session names do not need to be unique.
name
- Descriptive label that is associated with a game session. Session names do not need to be unique.public List<GameProperty> getGameProperties()
Set of developer-defined properties for a game session. These properties are passed to the server process hosting the game session.
public void setGameProperties(Collection<GameProperty> gameProperties)
Set of developer-defined properties for a game session. These properties are passed to the server process hosting the game session.
gameProperties
- Set of developer-defined properties for a game session. These properties are passed to the server process
hosting the game session.public CreateGameSessionRequest withGameProperties(GameProperty... gameProperties)
Set of developer-defined properties for a game session. These properties are passed to the server process hosting the game session.
NOTE: This method appends the values to the existing list (if any). Use
setGameProperties(java.util.Collection)
or withGameProperties(java.util.Collection)
if you want
to override the existing values.
gameProperties
- Set of developer-defined properties for a game session. These properties are passed to the server process
hosting the game session.public CreateGameSessionRequest withGameProperties(Collection<GameProperty> gameProperties)
Set of developer-defined properties for a game session. These properties are passed to the server process hosting the game session.
gameProperties
- Set of developer-defined properties for a game session. These properties are passed to the server process
hosting the game session.public void setCreatorId(String creatorId)
Unique identifier for a player or entity creating the game session. This ID is used to enforce a resource protection policy (if one exists) that limits the number of concurrent active game sessions one player can have.
creatorId
- Unique identifier for a player or entity creating the game session. This ID is used to enforce a resource
protection policy (if one exists) that limits the number of concurrent active game sessions one player can
have.public String getCreatorId()
Unique identifier for a player or entity creating the game session. This ID is used to enforce a resource protection policy (if one exists) that limits the number of concurrent active game sessions one player can have.
public CreateGameSessionRequest withCreatorId(String creatorId)
Unique identifier for a player or entity creating the game session. This ID is used to enforce a resource protection policy (if one exists) that limits the number of concurrent active game sessions one player can have.
creatorId
- Unique identifier for a player or entity creating the game session. This ID is used to enforce a resource
protection policy (if one exists) that limits the number of concurrent active game sessions one player can
have.public void setGameSessionId(String gameSessionId)
This parameter is no longer preferred. Please use IdempotencyToken
instead. Custom string
that uniquely identifies a request for a new game session. Maximum token length is 48 characters. If provided,
this string is included in the new game session's ID. (A game session ID has the following format:
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>
.)
gameSessionId
- This parameter is no longer preferred. Please use IdempotencyToken
instead. Custom
string that uniquely identifies a request for a new game session. Maximum token length is 48 characters.
If provided, this string is included in the new game session's ID. (A game session ID has the following
format:
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>
.)public String getGameSessionId()
This parameter is no longer preferred. Please use IdempotencyToken
instead. Custom string
that uniquely identifies a request for a new game session. Maximum token length is 48 characters. If provided,
this string is included in the new game session's ID. (A game session ID has the following format:
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>
.)
IdempotencyToken
instead. Custom
string that uniquely identifies a request for a new game session. Maximum token length is 48 characters.
If provided, this string is included in the new game session's ID. (A game session ID has the following
format:
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>
.)public CreateGameSessionRequest withGameSessionId(String gameSessionId)
This parameter is no longer preferred. Please use IdempotencyToken
instead. Custom string
that uniquely identifies a request for a new game session. Maximum token length is 48 characters. If provided,
this string is included in the new game session's ID. (A game session ID has the following format:
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>
.)
gameSessionId
- This parameter is no longer preferred. Please use IdempotencyToken
instead. Custom
string that uniquely identifies a request for a new game session. Maximum token length is 48 characters.
If provided, this string is included in the new game session's ID. (A game session ID has the following
format:
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>
.)public void setIdempotencyToken(String idempotencyToken)
Custom string that uniquely identifies a request for a new game session. Maximum token length is 48 characters.
If provided, this string is included in the new game session's ID. (A game session ID has the following format:
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>
.)
idempotencyToken
- Custom string that uniquely identifies a request for a new game session. Maximum token length is 48
characters. If provided, this string is included in the new game session's ID. (A game session ID has the
following format:
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>
.)public String getIdempotencyToken()
Custom string that uniquely identifies a request for a new game session. Maximum token length is 48 characters.
If provided, this string is included in the new game session's ID. (A game session ID has the following format:
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>
.)
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>
.)public CreateGameSessionRequest withIdempotencyToken(String idempotencyToken)
Custom string that uniquely identifies a request for a new game session. Maximum token length is 48 characters.
If provided, this string is included in the new game session's ID. (A game session ID has the following format:
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>
.)
idempotencyToken
- Custom string that uniquely identifies a request for a new game session. Maximum token length is 48
characters. If provided, this string is included in the new game session's ID. (A game session ID has the
following format:
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>
.)public String toString()
toString
in class Object
Object.toString()
public CreateGameSessionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.