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 request.
|
boolean |
equals(Object obj) |
String |
getAliasId()
Unique identifier for a fleet alias.
|
String |
getCreatorId()
Player ID identifying the person or entity creating the game session.
|
String |
getFleetId()
Unique identifier for a fleet.
|
List<GameProperty> |
getGameProperties()
Set of properties used to administer a game session.
|
String |
getGameSessionId()
Custom string to include in the game session ID, with a maximum length of 48 characters.
|
Integer |
getMaximumPlayerSessionCount()
Maximum number of players that can be connected simultaneously to the game session.
|
String |
getName()
Descriptive label associated with a game session.
|
int |
hashCode() |
void |
setAliasId(String aliasId)
Unique identifier for a fleet alias.
|
void |
setCreatorId(String creatorId)
Player ID identifying the person or entity creating the game session.
|
void |
setFleetId(String fleetId)
Unique identifier for a fleet.
|
void |
setGameProperties(Collection<GameProperty> gameProperties)
Set of properties used to administer a game session.
|
void |
setGameSessionId(String gameSessionId)
Custom string to include in the game session ID, with a maximum length of 48 characters.
|
void |
setMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
Maximum number of players that can be connected simultaneously to the game session.
|
void |
setName(String name)
Descriptive label 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 a fleet alias.
|
CreateGameSessionRequest |
withCreatorId(String creatorId)
Player ID identifying the person or entity creating the game session.
|
CreateGameSessionRequest |
withFleetId(String fleetId)
Unique identifier for a fleet.
|
CreateGameSessionRequest |
withGameProperties(Collection<GameProperty> gameProperties)
Set of properties used to administer a game session.
|
CreateGameSessionRequest |
withGameProperties(GameProperty... gameProperties)
Set of properties used to administer a game session.
|
CreateGameSessionRequest |
withGameSessionId(String gameSessionId)
Custom string to include in the game session ID, with a maximum length of 48 characters.
|
CreateGameSessionRequest |
withMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
Maximum number of players that can be connected simultaneously to the game session.
|
CreateGameSessionRequest |
withName(String name)
Descriptive label associated with a game session.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, 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. Each request must reference either a fleet ID or alias ID, but not both.
fleetId
- Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.public String getFleetId()
Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.
public CreateGameSessionRequest withFleetId(String fleetId)
Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.
fleetId
- Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.public void setAliasId(String aliasId)
Unique identifier for a fleet alias. Each request must reference either a fleet ID or alias ID, but not both.
aliasId
- Unique identifier for a fleet alias. Each request must reference either a fleet ID or alias ID, but not
both.public String getAliasId()
Unique identifier for a fleet alias. Each request must reference either a fleet ID or alias ID, but not both.
public CreateGameSessionRequest withAliasId(String aliasId)
Unique identifier for a fleet alias. Each request must reference either a fleet ID or alias ID, but not both.
aliasId
- Unique identifier for a fleet alias. 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 associated with a game session. Session names do not need to be unique.
name
- Descriptive label associated with a game session. Session names do not need to be unique.public String getName()
Descriptive label associated with a game session. Session names do not need to be unique.
public CreateGameSessionRequest withName(String name)
Descriptive label associated with a game session. Session names do not need to be unique.
name
- Descriptive label associated with a game session. Session names do not need to be unique.public List<GameProperty> getGameProperties()
Set of properties used to administer a game session. These properties are passed to the server process hosting it.
public void setGameProperties(Collection<GameProperty> gameProperties)
Set of properties used to administer a game session. These properties are passed to the server process hosting it.
gameProperties
- Set of properties used to administer a game session. These properties are passed to the server process
hosting it.public CreateGameSessionRequest withGameProperties(GameProperty... gameProperties)
Set of properties used to administer a game session. These properties are passed to the server process hosting it.
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 properties used to administer a game session. These properties are passed to the server process
hosting it.public CreateGameSessionRequest withGameProperties(Collection<GameProperty> gameProperties)
Set of properties used to administer a game session. These properties are passed to the server process hosting it.
gameProperties
- Set of properties used to administer a game session. These properties are passed to the server process
hosting it.public void setCreatorId(String creatorId)
Player ID identifying the person 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
- Player ID identifying the person 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()
Player ID identifying the person 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)
Player ID identifying the person 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
- Player ID identifying the person 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)
Custom string to include in the game session ID, with a maximum length of 48 characters. If this parameter is set, GameLift creates a game session ID in the following format: "arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<custom ID string>". For example, this full game session ID: "arn:aws:gamelift:us-west-2::gamesession/fleet-2ec2aae5-c2c7-43ca-b19d-8249fe5fddf2/my-game-session" includes the custom ID string "my-game-session". If this parameter is not set, GameLift creates a game session ID in the same format with an autogenerated ID string.
gameSessionId
- Custom string to include in the game session ID, with a maximum length of 48 characters. If this parameter
is set, GameLift creates a game session ID in the following format:
"arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<custom ID string>". For
example, this full game session ID:
"arn:aws:gamelift:us-west-2::gamesession/fleet-2ec2aae5-c2c7-43ca-b19d-8249fe5fddf2/my-game-session"
includes the custom ID string "my-game-session". If this parameter is not set, GameLift creates a game
session ID in the same format with an autogenerated ID string.public String getGameSessionId()
Custom string to include in the game session ID, with a maximum length of 48 characters. If this parameter is set, GameLift creates a game session ID in the following format: "arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<custom ID string>". For example, this full game session ID: "arn:aws:gamelift:us-west-2::gamesession/fleet-2ec2aae5-c2c7-43ca-b19d-8249fe5fddf2/my-game-session" includes the custom ID string "my-game-session". If this parameter is not set, GameLift creates a game session ID in the same format with an autogenerated ID string.
public CreateGameSessionRequest withGameSessionId(String gameSessionId)
Custom string to include in the game session ID, with a maximum length of 48 characters. If this parameter is set, GameLift creates a game session ID in the following format: "arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<custom ID string>". For example, this full game session ID: "arn:aws:gamelift:us-west-2::gamesession/fleet-2ec2aae5-c2c7-43ca-b19d-8249fe5fddf2/my-game-session" includes the custom ID string "my-game-session". If this parameter is not set, GameLift creates a game session ID in the same format with an autogenerated ID string.
gameSessionId
- Custom string to include in the game session ID, with a maximum length of 48 characters. If this parameter
is set, GameLift creates a game session ID in the following format:
"arn:aws:gamelift:<region>::gamesession/fleet-<fleet ID>/<custom ID string>". For
example, this full game session ID:
"arn:aws:gamelift:us-west-2::gamesession/fleet-2ec2aae5-c2c7-43ca-b19d-8249fe5fddf2/my-game-session"
includes the custom ID string "my-game-session". If this parameter is not set, GameLift creates a game
session ID in the same format with an autogenerated ID string.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.