Class FleetUtilization
- java.lang.Object
-
- com.amazonaws.services.gamelift.model.FleetUtilization
-
- All Implemented Interfaces:
Serializable,Cloneable
public class FleetUtilization extends Object implements Serializable, Cloneable
Current status of fleet utilization, including the number of game and player sessions being hosted.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FleetUtilization()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FleetUtilizationclone()booleanequals(Object obj)IntegergetActiveGameSessionCount()Number of active game sessions currently being hosted on fleet game servers.IntegergetCurrentPlayerSessionCount()Number of active player sessions currently being hosted on fleet game servers.StringgetFleetId()Unique identifier for a fleet.IntegergetMaximumPlayerSessionCount()Maximum players allowed across all game sessions currently hosted in the fleet.inthashCode()voidsetActiveGameSessionCount(Integer activeGameSessionCount)Number of active game sessions currently being hosted on fleet game servers.voidsetCurrentPlayerSessionCount(Integer currentPlayerSessionCount)Number of active player sessions currently being hosted on fleet game servers.voidsetFleetId(String fleetId)Unique identifier for a fleet.voidsetMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)Maximum players allowed across all game sessions currently hosted in the fleet.StringtoString()Returns a string representation of this object; useful for testing and debugging.FleetUtilizationwithActiveGameSessionCount(Integer activeGameSessionCount)Number of active game sessions currently being hosted on fleet game servers.FleetUtilizationwithCurrentPlayerSessionCount(Integer currentPlayerSessionCount)Number of active player sessions currently being hosted on fleet game servers.FleetUtilizationwithFleetId(String fleetId)Unique identifier for a fleet.FleetUtilizationwithMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)Maximum players allowed across all game sessions currently hosted in the fleet.
-
-
-
Method Detail
-
setFleetId
public void setFleetId(String fleetId)
Unique identifier for a fleet.
- Parameters:
fleetId- Unique identifier for a fleet.
-
getFleetId
public String getFleetId()
Unique identifier for a fleet.
- Returns:
- Unique identifier for a fleet.
-
withFleetId
public FleetUtilization withFleetId(String fleetId)
Unique identifier for a fleet.
- Parameters:
fleetId- Unique identifier for a fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setActiveGameSessionCount
public void setActiveGameSessionCount(Integer activeGameSessionCount)
Number of active game sessions currently being hosted on fleet game servers.
- Parameters:
activeGameSessionCount- Number of active game sessions currently being hosted on fleet game servers.
-
getActiveGameSessionCount
public Integer getActiveGameSessionCount()
Number of active game sessions currently being hosted on fleet game servers.
- Returns:
- Number of active game sessions currently being hosted on fleet game servers.
-
withActiveGameSessionCount
public FleetUtilization withActiveGameSessionCount(Integer activeGameSessionCount)
Number of active game sessions currently being hosted on fleet game servers.
- Parameters:
activeGameSessionCount- Number of active game sessions currently being hosted on fleet game servers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCurrentPlayerSessionCount
public void setCurrentPlayerSessionCount(Integer currentPlayerSessionCount)
Number of active player sessions currently being hosted on fleet game servers.
- Parameters:
currentPlayerSessionCount- Number of active player sessions currently being hosted on fleet game servers.
-
getCurrentPlayerSessionCount
public Integer getCurrentPlayerSessionCount()
Number of active player sessions currently being hosted on fleet game servers.
- Returns:
- Number of active player sessions currently being hosted on fleet game servers.
-
withCurrentPlayerSessionCount
public FleetUtilization withCurrentPlayerSessionCount(Integer currentPlayerSessionCount)
Number of active player sessions currently being hosted on fleet game servers.
- Parameters:
currentPlayerSessionCount- Number of active player sessions currently being hosted on fleet game servers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaximumPlayerSessionCount
public void setMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
Maximum players allowed across all game sessions currently hosted in the fleet.
- Parameters:
maximumPlayerSessionCount- Maximum players allowed across all game sessions currently hosted in the fleet.
-
getMaximumPlayerSessionCount
public Integer getMaximumPlayerSessionCount()
Maximum players allowed across all game sessions currently hosted in the fleet.
- Returns:
- Maximum players allowed across all game sessions currently hosted in the fleet.
-
withMaximumPlayerSessionCount
public FleetUtilization withMaximumPlayerSessionCount(Integer maximumPlayerSessionCount)
Maximum players allowed across all game sessions currently hosted in the fleet.
- Parameters:
maximumPlayerSessionCount- Maximum players allowed across all game sessions currently hosted in the fleet.- 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 FleetUtilization clone()
-
-