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 EC2InstanceCounts
clone()
boolean
equals(Object obj)
Integer
getACTIVE()
Actual number of active instances in the fleet.Integer
getDESIRED()
Ideal number of active instances in the fleet.Integer
getIDLE()
Number of active instances in the fleet that are not currently hosting a game session.Integer
getMAXIMUM()
Maximum value allowed for the fleet's instance count.Integer
getMINIMUM()
Minimum value allowed for the fleet's instance count.Integer
getPENDING()
Number of instances in the fleet that are starting but not yet active.Integer
getTERMINATING()
Number of instances in the fleet that are no longer active but haven't yet been terminated.int
hashCode()
void
setACTIVE(Integer aCTIVE)
Actual number of active instances in the fleet.void
setDESIRED(Integer dESIRED)
Ideal number of active instances in the fleet.void
setIDLE(Integer iDLE)
Number of active instances in the fleet that are not currently hosting a game session.void
setMAXIMUM(Integer mAXIMUM)
Maximum value allowed for the fleet's instance count.void
setMINIMUM(Integer mINIMUM)
Minimum value allowed for the fleet's instance count.void
setPENDING(Integer pENDING)
Number of instances in the fleet that are starting but not yet active.void
setTERMINATING(Integer tERMINATING)
Number of instances in the fleet that are no longer active but haven't yet been terminated.String
toString()
Returns a string representation of this object; useful for testing and debugging.EC2InstanceCounts
withACTIVE(Integer aCTIVE)
Actual number of active instances in the fleet.EC2InstanceCounts
withDESIRED(Integer dESIRED)
Ideal number of active instances in the fleet.EC2InstanceCounts
withIDLE(Integer iDLE)
Number of active instances in the fleet that are not currently hosting a game session.EC2InstanceCounts
withMAXIMUM(Integer mAXIMUM)
Maximum value allowed for the fleet's instance count.EC2InstanceCounts
withMINIMUM(Integer mINIMUM)
Minimum value allowed for the fleet's instance count.EC2InstanceCounts
withPENDING(Integer pENDING)
Number of instances in the fleet that are starting but not yet active.EC2InstanceCounts
withTERMINATING(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public EC2InstanceCounts clone()
-
-