@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateGameSessionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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()
A unique identifier for the alias associated with the fleet to create a game session in.
|
String |
getCreatorId()
A unique identifier for a player or entity creating the game session.
|
String |
getFleetId()
A unique identifier for the fleet to create a game session in.
|
List<GameProperty> |
getGameProperties()
A set of key-value pairs that can store custom data in a game session.
|
String |
getGameSessionData()
A set of custom game session properties, formatted as a single string value.
|
String |
getGameSessionId()
This parameter is deprecated.
|
String |
getIdempotencyToken()
Custom string that uniquely identifies the new game session request.
|
String |
getLocation()
A fleet's remote location to place the new game session in.
|
Integer |
getMaximumPlayerSessionCount()
The maximum number of players that can be connected simultaneously to the game session.
|
String |
getName()
A descriptive label that is associated with a game session.
|
int |
hashCode() |
void |
setAliasId(String aliasId)
A unique identifier for the alias associated with the fleet to create a game session in.
|
void |
setCreatorId(String creatorId)
A unique identifier for a player or entity creating the game session.
|
void |
setFleetId(String fleetId)
A unique identifier for the fleet to create a game session in.
|
void |
setGameProperties(Collection<GameProperty> gameProperties)
A set of key-value pairs that can store custom data in a game session.
|
void |
setGameSessionData(String gameSessionData)
A set of custom game session properties, formatted as a single string value.
|
void |
setGameSessionId(String gameSessionId)
This parameter is deprecated.
|
void |
setIdempotencyToken(String idempotencyToken)
Custom string that uniquely identifies the new game session request.
|
void |
setLocation(String location)
A fleet's remote location to place the new game session in.
|
void |
setMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
The maximum number of players that can be connected simultaneously to the game session.
|
void |
setName(String name)
A descriptive label that is associated with a game session.
|
String |
toString()
Returns a string representation of this object.
|
CreateGameSessionRequest |
withAliasId(String aliasId)
A unique identifier for the alias associated with the fleet to create a game session in.
|
CreateGameSessionRequest |
withCreatorId(String creatorId)
A unique identifier for a player or entity creating the game session.
|
CreateGameSessionRequest |
withFleetId(String fleetId)
A unique identifier for the fleet to create a game session in.
|
CreateGameSessionRequest |
withGameProperties(Collection<GameProperty> gameProperties)
A set of key-value pairs that can store custom data in a game session.
|
CreateGameSessionRequest |
withGameProperties(GameProperty... gameProperties)
A set of key-value pairs that can store custom data in a game session.
|
CreateGameSessionRequest |
withGameSessionData(String gameSessionData)
A set of custom game session properties, formatted as a single string value.
|
CreateGameSessionRequest |
withGameSessionId(String gameSessionId)
This parameter is deprecated.
|
CreateGameSessionRequest |
withIdempotencyToken(String idempotencyToken)
Custom string that uniquely identifies the new game session request.
|
CreateGameSessionRequest |
withLocation(String location)
A fleet's remote location to place the new game session in.
|
CreateGameSessionRequest |
withMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
The maximum number of players that can be connected simultaneously to the game session.
|
CreateGameSessionRequest |
withName(String name)
A 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, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setFleetId(String fleetId)
A unique identifier for the fleet to create a game session in. You can use either the fleet ID or ARN value. Each request must reference either a fleet ID or alias ID, but not both.
fleetId
- A unique identifier for the fleet to create a game session in. You can use either the fleet ID or ARN
value. Each request must reference either a fleet ID or alias ID, but not both.public String getFleetId()
A unique identifier for the fleet to create a game session in. You can use either the fleet ID or ARN value. Each request must reference either a fleet ID or alias ID, but not both.
public CreateGameSessionRequest withFleetId(String fleetId)
A unique identifier for the fleet to create a game session in. You can use either the fleet ID or ARN value. Each request must reference either a fleet ID or alias ID, but not both.
fleetId
- A unique identifier for the fleet to create a game session in. You can use either the fleet ID or ARN
value. Each request must reference either a fleet ID or alias ID, but not both.public void setAliasId(String aliasId)
A unique identifier for the alias associated with the fleet to create a game session in. You can use either the alias ID or ARN value. Each request must reference either a fleet ID or alias ID, but not both.
aliasId
- A unique identifier for the alias associated with the fleet to create a game session in. You can use
either the alias ID or ARN value. Each request must reference either a fleet ID or alias ID, but not both.public String getAliasId()
A unique identifier for the alias associated with the fleet to create a game session in. You can use either the alias ID or ARN value. Each request must reference either a fleet ID or alias ID, but not both.
public CreateGameSessionRequest withAliasId(String aliasId)
A unique identifier for the alias associated with the fleet to create a game session in. You can use either the alias ID or ARN value. Each request must reference either a fleet ID or alias ID, but not both.
aliasId
- A unique identifier for the alias associated with the fleet to create a game session in. You can use
either the alias ID or ARN value. Each request must reference either a fleet ID or alias ID, but not both.public void setMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
The maximum number of players that can be connected simultaneously to the game session.
maximumPlayerSessionCount
- The maximum number of players that can be connected simultaneously to the game session.public Integer getMaximumPlayerSessionCount()
The maximum number of players that can be connected simultaneously to the game session.
public CreateGameSessionRequest withMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
The maximum number of players that can be connected simultaneously to the game session.
maximumPlayerSessionCount
- The maximum number of players that can be connected simultaneously to the game session.public void setName(String name)
A descriptive label that is associated with a game session. Session names do not need to be unique.
name
- A descriptive label that is associated with a game session. Session names do not need to be unique.public String getName()
A descriptive label that is associated with a game session. Session names do not need to be unique.
public CreateGameSessionRequest withName(String name)
A descriptive label that is associated with a game session. Session names do not need to be unique.
name
- A descriptive label that is associated with a game session. Session names do not need to be unique.public List<GameProperty> getGameProperties()
A set of key-value pairs that can store custom data in a game session. For example:
{"Key": "difficulty", "Value": "novice"}
. For an example, see Create a game session with custom properties.
{"Key": "difficulty", "Value": "novice"}
. For an example, see Create a game session with custom properties.public void setGameProperties(Collection<GameProperty> gameProperties)
A set of key-value pairs that can store custom data in a game session. For example:
{"Key": "difficulty", "Value": "novice"}
. For an example, see Create a game session with custom properties.
gameProperties
- A set of key-value pairs that can store custom data in a game session. For example:
{"Key": "difficulty", "Value": "novice"}
. For an example, see Create a game session with custom properties.public CreateGameSessionRequest withGameProperties(GameProperty... gameProperties)
A set of key-value pairs that can store custom data in a game session. For example:
{"Key": "difficulty", "Value": "novice"}
. For an example, see Create a game session with custom properties.
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
- A set of key-value pairs that can store custom data in a game session. For example:
{"Key": "difficulty", "Value": "novice"}
. For an example, see Create a game session with custom properties.public CreateGameSessionRequest withGameProperties(Collection<GameProperty> gameProperties)
A set of key-value pairs that can store custom data in a game session. For example:
{"Key": "difficulty", "Value": "novice"}
. For an example, see Create a game session with custom properties.
gameProperties
- A set of key-value pairs that can store custom data in a game session. For example:
{"Key": "difficulty", "Value": "novice"}
. For an example, see Create a game session with custom properties.public void setCreatorId(String creatorId)
A unique identifier for a player or entity creating the game session.
If you add a resource creation limit policy to a fleet, the CreateGameSession
operation requires a
CreatorId
. Amazon GameLift limits the number of game session creation requests with the same
CreatorId
in a specified time period.
If you your fleet doesn't have a resource creation limit policy and you provide a CreatorId
in your
CreateGameSession
requests, Amazon GameLift limits requests to one request per
CreatorId
per second.
To not limit CreateGameSession
requests with the same CreatorId
, don't provide a
CreatorId
in your CreateGameSession
request.
creatorId
- A unique identifier for a player or entity creating the game session.
If you add a resource creation limit policy to a fleet, the CreateGameSession
operation
requires a CreatorId
. Amazon GameLift limits the number of game session creation requests
with the same CreatorId
in a specified time period.
If you your fleet doesn't have a resource creation limit policy and you provide a CreatorId
in your CreateGameSession
requests, Amazon GameLift limits requests to one request per
CreatorId
per second.
To not limit CreateGameSession
requests with the same CreatorId
, don't provide a
CreatorId
in your CreateGameSession
request.
public String getCreatorId()
A unique identifier for a player or entity creating the game session.
If you add a resource creation limit policy to a fleet, the CreateGameSession
operation requires a
CreatorId
. Amazon GameLift limits the number of game session creation requests with the same
CreatorId
in a specified time period.
If you your fleet doesn't have a resource creation limit policy and you provide a CreatorId
in your
CreateGameSession
requests, Amazon GameLift limits requests to one request per
CreatorId
per second.
To not limit CreateGameSession
requests with the same CreatorId
, don't provide a
CreatorId
in your CreateGameSession
request.
If you add a resource creation limit policy to a fleet, the CreateGameSession
operation
requires a CreatorId
. Amazon GameLift limits the number of game session creation requests
with the same CreatorId
in a specified time period.
If you your fleet doesn't have a resource creation limit policy and you provide a CreatorId
in your CreateGameSession
requests, Amazon GameLift limits requests to one request per
CreatorId
per second.
To not limit CreateGameSession
requests with the same CreatorId
, don't provide
a CreatorId
in your CreateGameSession
request.
public CreateGameSessionRequest withCreatorId(String creatorId)
A unique identifier for a player or entity creating the game session.
If you add a resource creation limit policy to a fleet, the CreateGameSession
operation requires a
CreatorId
. Amazon GameLift limits the number of game session creation requests with the same
CreatorId
in a specified time period.
If you your fleet doesn't have a resource creation limit policy and you provide a CreatorId
in your
CreateGameSession
requests, Amazon GameLift limits requests to one request per
CreatorId
per second.
To not limit CreateGameSession
requests with the same CreatorId
, don't provide a
CreatorId
in your CreateGameSession
request.
creatorId
- A unique identifier for a player or entity creating the game session.
If you add a resource creation limit policy to a fleet, the CreateGameSession
operation
requires a CreatorId
. Amazon GameLift limits the number of game session creation requests
with the same CreatorId
in a specified time period.
If you your fleet doesn't have a resource creation limit policy and you provide a CreatorId
in your CreateGameSession
requests, Amazon GameLift limits requests to one request per
CreatorId
per second.
To not limit CreateGameSession
requests with the same CreatorId
, don't provide a
CreatorId
in your CreateGameSession
request.
public void setGameSessionId(String gameSessionId)
This parameter is deprecated. 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.
gameSessionId
- This parameter is deprecated. 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.
public String getGameSessionId()
This parameter is deprecated. 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.
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.
public CreateGameSessionRequest withGameSessionId(String gameSessionId)
This parameter is deprecated. 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.
gameSessionId
- This parameter is deprecated. 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.
public void setIdempotencyToken(String idempotencyToken)
Custom string that uniquely identifies the new game session request. This is useful for ensuring that game
session requests with the same idempotency token are processed only once. Subsequent requests with the same
string return the original GameSession
object, with an updated status. Maximum token length is 48
characters. If provided, this string is included in the new game session's ID. A game session ARN has the
following format:
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>
. Idempotency tokens remain in use for 30 days after a game session has ended; game session objects are retained
for this time period and then deleted.
idempotencyToken
- Custom string that uniquely identifies the new game session request. This is useful for ensuring that game
session requests with the same idempotency token are processed only once. Subsequent requests with the
same string return the original GameSession
object, with an updated status. Maximum token
length is 48 characters. If provided, this string is included in the new game session's ID. A game session
ARN has the following format:
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>
. Idempotency tokens remain in use for 30 days after a game session has ended; game session objects are
retained for this time period and then deleted.public String getIdempotencyToken()
Custom string that uniquely identifies the new game session request. This is useful for ensuring that game
session requests with the same idempotency token are processed only once. Subsequent requests with the same
string return the original GameSession
object, with an updated status. Maximum token length is 48
characters. If provided, this string is included in the new game session's ID. A game session ARN has the
following format:
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>
. Idempotency tokens remain in use for 30 days after a game session has ended; game session objects are retained
for this time period and then deleted.
GameSession
object, with an updated status. Maximum
token length is 48 characters. If provided, this string is included in the new game session's ID. A game
session ARN has the following format:
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>
. Idempotency tokens remain in use for 30 days after a game session has ended; game session objects are
retained for this time period and then deleted.public CreateGameSessionRequest withIdempotencyToken(String idempotencyToken)
Custom string that uniquely identifies the new game session request. This is useful for ensuring that game
session requests with the same idempotency token are processed only once. Subsequent requests with the same
string return the original GameSession
object, with an updated status. Maximum token length is 48
characters. If provided, this string is included in the new game session's ID. A game session ARN has the
following format:
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>
. Idempotency tokens remain in use for 30 days after a game session has ended; game session objects are retained
for this time period and then deleted.
idempotencyToken
- Custom string that uniquely identifies the new game session request. This is useful for ensuring that game
session requests with the same idempotency token are processed only once. Subsequent requests with the
same string return the original GameSession
object, with an updated status. Maximum token
length is 48 characters. If provided, this string is included in the new game session's ID. A game session
ARN has the following format:
arn:aws:gamelift:<region>::gamesession/<fleet ID>/<custom ID string or idempotency token>
. Idempotency tokens remain in use for 30 days after a game session has ended; game session objects are
retained for this time period and then deleted.public void setGameSessionData(String gameSessionData)
A set of custom game session properties, formatted as a single string value. This data is passed to a game server process with a request to start a new game session (see Start a Game Session).
gameSessionData
- A set of custom game session properties, formatted as a single string value. This data is passed to a game
server process with a request to start a new game session (see Start a Game Session).public String getGameSessionData()
A set of custom game session properties, formatted as a single string value. This data is passed to a game server process with a request to start a new game session (see Start a Game Session).
public CreateGameSessionRequest withGameSessionData(String gameSessionData)
A set of custom game session properties, formatted as a single string value. This data is passed to a game server process with a request to start a new game session (see Start a Game Session).
gameSessionData
- A set of custom game session properties, formatted as a single string value. This data is passed to a game
server process with a request to start a new game session (see Start a Game Session).public void setLocation(String location)
A fleet's remote location to place the new game session in. If this parameter is not set, the new game session is
placed in the fleet's home Region. Specify a remote location with an Amazon Web Services Region code such as
us-west-2
. When using an Anywhere fleet, this parameter is required and must be set to the Anywhere
fleet's custom location.
location
- A fleet's remote location to place the new game session in. If this parameter is not set, the new game
session is placed in the fleet's home Region. Specify a remote location with an Amazon Web Services Region
code such as us-west-2
. When using an Anywhere fleet, this parameter is required and must be
set to the Anywhere fleet's custom location.public String getLocation()
A fleet's remote location to place the new game session in. If this parameter is not set, the new game session is
placed in the fleet's home Region. Specify a remote location with an Amazon Web Services Region code such as
us-west-2
. When using an Anywhere fleet, this parameter is required and must be set to the Anywhere
fleet's custom location.
us-west-2
. When using an Anywhere fleet, this parameter is required and
must be set to the Anywhere fleet's custom location.public CreateGameSessionRequest withLocation(String location)
A fleet's remote location to place the new game session in. If this parameter is not set, the new game session is
placed in the fleet's home Region. Specify a remote location with an Amazon Web Services Region code such as
us-west-2
. When using an Anywhere fleet, this parameter is required and must be set to the Anywhere
fleet's custom location.
location
- A fleet's remote location to place the new game session in. If this parameter is not set, the new game
session is placed in the fleet's home Region. Specify a remote location with an Amazon Web Services Region
code such as us-west-2
. When using an Anywhere fleet, this parameter is required and must be
set to the Anywhere fleet's custom location.public String toString()
toString
in class Object
Object.toString()
public CreateGameSessionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()