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 CreateGameSessionRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetAliasId()Unique identifier for a fleet alias.StringgetFleetId()Unique identifier for a fleet.List<GameProperty>getGameProperties()Set of properties used to administer a game session.IntegergetMaximumPlayerSessionCount()Maximum number of players that can be connected simultaneously to the game session.StringgetName()Descriptive label associated with this game session.inthashCode()voidsetAliasId(String aliasId)Unique identifier for a fleet alias.voidsetFleetId(String fleetId)Unique identifier for a fleet.voidsetGameProperties(Collection<GameProperty> gameProperties)Set of properties used to administer a game session.voidsetMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)Maximum number of players that can be connected simultaneously to the game session.voidsetName(String name)Descriptive label associated with this game session.StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateGameSessionRequestwithAliasId(String aliasId)Unique identifier for a fleet alias.CreateGameSessionRequestwithFleetId(String fleetId)Unique identifier for a fleet.CreateGameSessionRequestwithGameProperties(GameProperty... gameProperties)Set of properties used to administer a game session.CreateGameSessionRequestwithGameProperties(Collection<GameProperty> gameProperties)Set of properties used to administer a game session.CreateGameSessionRequestwithMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)Maximum number of players that can be connected simultaneously to the game session.CreateGameSessionRequestwithName(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateGameSessionRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-