Class EC2InstanceCounts
- java.lang.Object
-
- com.amazonaws.services.gamelift.model.EC2InstanceCounts
-
- All Implemented Interfaces:
Serializable,Cloneable
public class EC2InstanceCounts extends Object implements Serializable, Cloneable
Current status of fleet capacity. The number of active instances should match or be in the process of matching the number of desired instances. Pending and terminating counts are non-zero only if fleet capacity is adjusting to an UpdateFleetCapacity request, or if access to resources is temporarily affected.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EC2InstanceCounts()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EC2InstanceCountsclone()booleanequals(Object obj)IntegergetACTIVE()Actual number of active instances in the fleet.IntegergetDESIRED()Ideal number of active instances in the fleet.IntegergetIDLE()Number of active instances in the fleet that are not currently hosting a game session.IntegergetMAXIMUM()Maximum value allowed for the fleet's instance count.IntegergetMINIMUM()Minimum value allowed for the fleet's instance count.IntegergetPENDING()Number of instances in the fleet that are starting but not yet active.IntegergetTERMINATING()Number of instances in the fleet that are no longer active but haven't yet been terminated.inthashCode()voidsetACTIVE(Integer aCTIVE)Actual number of active instances in the fleet.voidsetDESIRED(Integer dESIRED)Ideal number of active instances in the fleet.voidsetIDLE(Integer iDLE)Number of active instances in the fleet that are not currently hosting a game session.voidsetMAXIMUM(Integer mAXIMUM)Maximum value allowed for the fleet's instance count.voidsetMINIMUM(Integer mINIMUM)Minimum value allowed for the fleet's instance count.voidsetPENDING(Integer pENDING)Number of instances in the fleet that are starting but not yet active.voidsetTERMINATING(Integer tERMINATING)Number of instances in the fleet that are no longer active but haven't yet been terminated.StringtoString()Returns a string representation of this object; useful for testing and debugging.EC2InstanceCountswithACTIVE(Integer aCTIVE)Actual number of active instances in the fleet.EC2InstanceCountswithDESIRED(Integer dESIRED)Ideal number of active instances in the fleet.EC2InstanceCountswithIDLE(Integer iDLE)Number of active instances in the fleet that are not currently hosting a game session.EC2InstanceCountswithMAXIMUM(Integer mAXIMUM)Maximum value allowed for the fleet's instance count.EC2InstanceCountswithMINIMUM(Integer mINIMUM)Minimum value allowed for the fleet's instance count.EC2InstanceCountswithPENDING(Integer pENDING)Number of instances in the fleet that are starting but not yet active.EC2InstanceCountswithTERMINATING(Integer tERMINATING)Number of instances in the fleet that are no longer active but haven't yet been terminated.
-
-
-
Method Detail
-
setDESIRED
public void setDESIRED(Integer dESIRED)
Ideal number of active instances in the fleet.
- Parameters:
dESIRED- Ideal number of active instances in the fleet.
-
getDESIRED
public Integer getDESIRED()
Ideal number of active instances in the fleet.
- Returns:
- Ideal number of active instances in the fleet.
-
withDESIRED
public EC2InstanceCounts withDESIRED(Integer dESIRED)
Ideal number of active instances in the fleet.
- Parameters:
dESIRED- Ideal number of active instances in the fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMINIMUM
public void setMINIMUM(Integer mINIMUM)
Minimum value allowed for the fleet's instance count.
- Parameters:
mINIMUM- Minimum value allowed for the fleet's instance count.
-
getMINIMUM
public Integer getMINIMUM()
Minimum value allowed for the fleet's instance count.
- Returns:
- Minimum value allowed for the fleet's instance count.
-
withMINIMUM
public EC2InstanceCounts withMINIMUM(Integer mINIMUM)
Minimum value allowed for the fleet's instance count.
- Parameters:
mINIMUM- Minimum value allowed for the fleet's instance count.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMAXIMUM
public void setMAXIMUM(Integer mAXIMUM)
Maximum value allowed for the fleet's instance count.
- Parameters:
mAXIMUM- Maximum value allowed for the fleet's instance count.
-
getMAXIMUM
public Integer getMAXIMUM()
Maximum value allowed for the fleet's instance count.
- Returns:
- Maximum value allowed for the fleet's instance count.
-
withMAXIMUM
public EC2InstanceCounts withMAXIMUM(Integer mAXIMUM)
Maximum value allowed for the fleet's instance count.
- Parameters:
mAXIMUM- Maximum value allowed for the fleet's instance count.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPENDING
public void setPENDING(Integer pENDING)
Number of instances in the fleet that are starting but not yet active.
- Parameters:
pENDING- Number of instances in the fleet that are starting but not yet active.
-
getPENDING
public Integer getPENDING()
Number of instances in the fleet that are starting but not yet active.
- Returns:
- Number of instances in the fleet that are starting but not yet active.
-
withPENDING
public EC2InstanceCounts withPENDING(Integer pENDING)
Number of instances in the fleet that are starting but not yet active.
- Parameters:
pENDING- Number of instances in the fleet that are starting but not yet active.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setACTIVE
public void setACTIVE(Integer aCTIVE)
Actual number of active instances in the fleet.
- Parameters:
aCTIVE- Actual number of active instances in the fleet.
-
getACTIVE
public Integer getACTIVE()
Actual number of active instances in the fleet.
- Returns:
- Actual number of active instances in the fleet.
-
withACTIVE
public EC2InstanceCounts withACTIVE(Integer aCTIVE)
Actual number of active instances in the fleet.
- Parameters:
aCTIVE- Actual number of active instances in the fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIDLE
public void setIDLE(Integer iDLE)
Number of active instances in the fleet that are not currently hosting a game session.
- Parameters:
iDLE- Number of active instances in the fleet that are not currently hosting a game session.
-
getIDLE
public Integer getIDLE()
Number of active instances in the fleet that are not currently hosting a game session.
- Returns:
- Number of active instances in the fleet that are not currently hosting a game session.
-
withIDLE
public EC2InstanceCounts withIDLE(Integer iDLE)
Number of active instances in the fleet that are not currently hosting a game session.
- Parameters:
iDLE- Number of active instances in the fleet that are not currently hosting a game session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTERMINATING
public void setTERMINATING(Integer tERMINATING)
Number of instances in the fleet that are no longer active but haven't yet been terminated.
- Parameters:
tERMINATING- Number of instances in the fleet that are no longer active but haven't yet been terminated.
-
getTERMINATING
public Integer getTERMINATING()
Number of instances in the fleet that are no longer active but haven't yet been terminated.
- Returns:
- Number of instances in the fleet that are no longer active but haven't yet been terminated.
-
withTERMINATING
public EC2InstanceCounts withTERMINATING(Integer tERMINATING)
Number of instances in the fleet that are no longer active but haven't yet been terminated.
- Parameters:
tERMINATING- Number of instances in the fleet that are no longer active but haven't yet been terminated.- 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 EC2InstanceCounts clone()
-
-