Class CreateGameSessionRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.gamelift.model.CreateGameSessionRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class CreateGameSessionRequest 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 CreateGameSessionRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateGameSessionRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getAliasId()
Unique identifier for a fleet alias.String
getFleetId()
Unique identifier for a fleet.List<GameProperty>
getGameProperties()
Set of properties used to administer a game session.Integer
getMaximumPlayerSessionCount()
Maximum number of players that can be connected simultaneously to the game session.String
getName()
Descriptive label associated with this game session.int
hashCode()
void
setAliasId(String aliasId)
Unique identifier for a fleet alias.void
setFleetId(String fleetId)
Unique identifier for a fleet.void
setGameProperties(Collection<GameProperty> gameProperties)
Set of properties used to administer a 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 associated with this 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
withFleetId(String fleetId)
Unique identifier for a fleet.CreateGameSessionRequest
withGameProperties(GameProperty... gameProperties)
Set of properties used to administer a game session.CreateGameSessionRequest
withGameProperties(Collection<GameProperty> gameProperties)
Set of properties used to administer a 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 associated with this game session.-
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
-
setFleetId
public void setFleetId(String fleetId)
Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.
- Parameters:
fleetId
- Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.
-
getFleetId
public String getFleetId()
Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.
- Returns:
- Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.
-
withFleetId
public CreateGameSessionRequest withFleetId(String fleetId)
Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.
- Parameters:
fleetId
- Unique identifier for a fleet. Each request must reference either a fleet ID or alias ID, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAliasId
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.
- Parameters:
aliasId
- Unique identifier for a fleet alias. Each request must reference either a fleet ID or alias ID, but not both.
-
getAliasId
public String getAliasId()
Unique identifier for a fleet alias. Each request must reference either a fleet ID or alias ID, but not both.
- Returns:
- Unique identifier for a fleet alias. Each request must reference either a fleet ID or alias ID, but not both.
-
withAliasId
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.
- Parameters:
aliasId
- Unique identifier for a fleet alias. Each request must reference either a fleet ID or alias ID, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaximumPlayerSessionCount
public void setMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
Maximum number of players that can be connected simultaneously to the game session.
- Parameters:
maximumPlayerSessionCount
- Maximum number of players that can be connected simultaneously to the game session.
-
getMaximumPlayerSessionCount
public Integer getMaximumPlayerSessionCount()
Maximum number of players that can be connected simultaneously to the game session.
- Returns:
- Maximum number of players that can be connected simultaneously to the game session.
-
withMaximumPlayerSessionCount
public CreateGameSessionRequest withMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
Maximum number of players that can be connected simultaneously to the game session.
- Parameters:
maximumPlayerSessionCount
- Maximum number of players that can be connected simultaneously to the game session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
public void setName(String name)
Descriptive label associated with this game session. Session names do not need to be unique.
- Parameters:
name
- Descriptive label associated with this game session. Session names do not need to be unique.
-
getName
public String getName()
Descriptive label associated with this game session. Session names do not need to be unique.
- Returns:
- Descriptive label associated with this game session. Session names do not need to be unique.
-
withName
public CreateGameSessionRequest withName(String name)
Descriptive label associated with this game session. Session names do not need to be unique.
- Parameters:
name
- Descriptive label associated with this game session. Session names do not need to be unique.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getGameProperties
public List<GameProperty> getGameProperties()
Set of properties used to administer a game session. These properties are passed to your game server.
- Returns:
- Set of properties used to administer a game session. These properties are passed to your game server.
-
setGameProperties
public void setGameProperties(Collection<GameProperty> gameProperties)
Set of properties used to administer a game session. These properties are passed to your game server.
- Parameters:
gameProperties
- Set of properties used to administer a game session. These properties are passed to your game server.
-
withGameProperties
public CreateGameSessionRequest withGameProperties(GameProperty... gameProperties)
Set of properties used to administer a game session. These properties are passed to your game server.
NOTE: This method appends the values to the existing list (if any). Use
setGameProperties(java.util.Collection)
orwithGameProperties(java.util.Collection)
if you want to override the existing values.- Parameters:
gameProperties
- Set of properties used to administer a game session. These properties are passed to your game server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withGameProperties
public CreateGameSessionRequest withGameProperties(Collection<GameProperty> gameProperties)
Set of properties used to administer a game session. These properties are passed to your game server.
- Parameters:
gameProperties
- Set of properties used to administer a game session. These properties are passed to your game server.- 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 CreateGameSessionRequest 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()
-
-