@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EC2InstanceCounts extends Object implements Serializable, Cloneable, StructuredPojo
Resource capacity settings. Fleet capacity is measured in Amazon EC2 instances. Pending and terminating counts are non-zero when the fleet capacity is adjusting to a scaling event or if access to resources is temporarily affected.
Constructor and Description |
---|
EC2InstanceCounts() |
Modifier and Type | Method and Description |
---|---|
EC2InstanceCounts |
clone() |
boolean |
equals(Object obj) |
Integer |
getACTIVE()
Actual number of instances that are ready to host game sessions.
|
Integer |
getDESIRED()
Requested number of active instances.
|
Integer |
getIDLE()
Number of active instances that are not currently hosting a game session.
|
Integer |
getMAXIMUM()
The maximum instance count value allowed.
|
Integer |
getMINIMUM()
The minimum instance count value allowed.
|
Integer |
getPENDING()
Number of instances that are starting but not yet active.
|
Integer |
getTERMINATING()
Number of instances that are no longer active but haven't yet been terminated.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setACTIVE(Integer aCTIVE)
Actual number of instances that are ready to host game sessions.
|
void |
setDESIRED(Integer dESIRED)
Requested number of active instances.
|
void |
setIDLE(Integer iDLE)
Number of active instances that are not currently hosting a game session.
|
void |
setMAXIMUM(Integer mAXIMUM)
The maximum instance count value allowed.
|
void |
setMINIMUM(Integer mINIMUM)
The minimum instance count value allowed.
|
void |
setPENDING(Integer pENDING)
Number of instances that are starting but not yet active.
|
void |
setTERMINATING(Integer tERMINATING)
Number of instances that are no longer active but haven't yet been terminated.
|
String |
toString()
Returns a string representation of this object.
|
EC2InstanceCounts |
withACTIVE(Integer aCTIVE)
Actual number of instances that are ready to host game sessions.
|
EC2InstanceCounts |
withDESIRED(Integer dESIRED)
Requested number of active instances.
|
EC2InstanceCounts |
withIDLE(Integer iDLE)
Number of active instances that are not currently hosting a game session.
|
EC2InstanceCounts |
withMAXIMUM(Integer mAXIMUM)
The maximum instance count value allowed.
|
EC2InstanceCounts |
withMINIMUM(Integer mINIMUM)
The minimum instance count value allowed.
|
EC2InstanceCounts |
withPENDING(Integer pENDING)
Number of instances that are starting but not yet active.
|
EC2InstanceCounts |
withTERMINATING(Integer tERMINATING)
Number of instances that are no longer active but haven't yet been terminated.
|
public void setDESIRED(Integer dESIRED)
Requested number of active instances. Amazon GameLift takes action as needed to maintain the desired number of instances. Capacity is scaled up or down by changing the desired instances. A change in the desired instances value can take up to 1 minute to be reflected when viewing a fleet's capacity settings.
dESIRED
- Requested number of active instances. Amazon GameLift takes action as needed to maintain the desired
number of instances. Capacity is scaled up or down by changing the desired instances. A change in the
desired instances value can take up to 1 minute to be reflected when viewing a fleet's capacity settings.public Integer getDESIRED()
Requested number of active instances. Amazon GameLift takes action as needed to maintain the desired number of instances. Capacity is scaled up or down by changing the desired instances. A change in the desired instances value can take up to 1 minute to be reflected when viewing a fleet's capacity settings.
public EC2InstanceCounts withDESIRED(Integer dESIRED)
Requested number of active instances. Amazon GameLift takes action as needed to maintain the desired number of instances. Capacity is scaled up or down by changing the desired instances. A change in the desired instances value can take up to 1 minute to be reflected when viewing a fleet's capacity settings.
dESIRED
- Requested number of active instances. Amazon GameLift takes action as needed to maintain the desired
number of instances. Capacity is scaled up or down by changing the desired instances. A change in the
desired instances value can take up to 1 minute to be reflected when viewing a fleet's capacity settings.public void setMINIMUM(Integer mINIMUM)
The minimum instance count value allowed.
mINIMUM
- The minimum instance count value allowed.public Integer getMINIMUM()
The minimum instance count value allowed.
public EC2InstanceCounts withMINIMUM(Integer mINIMUM)
The minimum instance count value allowed.
mINIMUM
- The minimum instance count value allowed.public void setMAXIMUM(Integer mAXIMUM)
The maximum instance count value allowed.
mAXIMUM
- The maximum instance count value allowed.public Integer getMAXIMUM()
The maximum instance count value allowed.
public EC2InstanceCounts withMAXIMUM(Integer mAXIMUM)
The maximum instance count value allowed.
mAXIMUM
- The maximum instance count value allowed.public void setPENDING(Integer pENDING)
Number of instances that are starting but not yet active.
pENDING
- Number of instances that are starting but not yet active.public Integer getPENDING()
Number of instances that are starting but not yet active.
public EC2InstanceCounts withPENDING(Integer pENDING)
Number of instances that are starting but not yet active.
pENDING
- Number of instances that are starting but not yet active.public void setACTIVE(Integer aCTIVE)
Actual number of instances that are ready to host game sessions.
aCTIVE
- Actual number of instances that are ready to host game sessions.public Integer getACTIVE()
Actual number of instances that are ready to host game sessions.
public EC2InstanceCounts withACTIVE(Integer aCTIVE)
Actual number of instances that are ready to host game sessions.
aCTIVE
- Actual number of instances that are ready to host game sessions.public void setIDLE(Integer iDLE)
Number of active instances that are not currently hosting a game session.
iDLE
- Number of active instances that are not currently hosting a game session.public Integer getIDLE()
Number of active instances that are not currently hosting a game session.
public EC2InstanceCounts withIDLE(Integer iDLE)
Number of active instances that are not currently hosting a game session.
iDLE
- Number of active instances that are not currently hosting a game session.public void setTERMINATING(Integer tERMINATING)
Number of instances that are no longer active but haven't yet been terminated.
tERMINATING
- Number of instances that are no longer active but haven't yet been terminated.public Integer getTERMINATING()
Number of instances that are no longer active but haven't yet been terminated.
public EC2InstanceCounts withTERMINATING(Integer tERMINATING)
Number of instances that are no longer active but haven't yet been terminated.
tERMINATING
- Number of instances that are no longer active but haven't yet been terminated.public String toString()
toString
in class Object
Object.toString()
public EC2InstanceCounts clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.