public class EC2InstanceLimit
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Maximum number of instances allowed based on the Amazon Elastic Compute Cloud (Amazon EC2) instance type. Instance limits can be retrieved by calling DescribeEC2InstanceLimits.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
currentInstances
Number of instances of the specified type that are currently in use by
this AWS account.
|
private java.lang.String |
eC2InstanceType
Type of EC2 instances used in the fleet.
|
private java.lang.Integer |
instanceLimit
Number of instances allowed.
|
Constructor and Description |
---|
EC2InstanceLimit() |
Modifier and Type | Method and Description |
---|---|
EC2InstanceLimit |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getCurrentInstances()
Number of instances of the specified type that are currently in use by
this AWS account.
|
java.lang.String |
getEC2InstanceType()
Type of EC2 instances used in the fleet.
|
java.lang.Integer |
getInstanceLimit()
Number of instances allowed.
|
int |
hashCode() |
void |
setCurrentInstances(java.lang.Integer currentInstances)
Number of instances of the specified type that are currently in use by
this AWS account.
|
void |
setEC2InstanceType(EC2InstanceType eC2InstanceType)
Type of EC2 instances used in the fleet.
|
void |
setEC2InstanceType(java.lang.String eC2InstanceType)
Type of EC2 instances used in the fleet.
|
void |
setInstanceLimit(java.lang.Integer instanceLimit)
Number of instances allowed.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EC2InstanceLimit |
withCurrentInstances(java.lang.Integer currentInstances)
Number of instances of the specified type that are currently in use by
this AWS account.
|
EC2InstanceLimit |
withEC2InstanceType(EC2InstanceType eC2InstanceType)
Type of EC2 instances used in the fleet.
|
EC2InstanceLimit |
withEC2InstanceType(java.lang.String eC2InstanceType)
Type of EC2 instances used in the fleet.
|
EC2InstanceLimit |
withInstanceLimit(java.lang.Integer instanceLimit)
Number of instances allowed.
|
private java.lang.String eC2InstanceType
Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance Types for detailed descriptions of each.
private java.lang.Integer currentInstances
Number of instances of the specified type that are currently in use by this AWS account.
private java.lang.Integer instanceLimit
Number of instances allowed.
public void setEC2InstanceType(java.lang.String eC2InstanceType)
Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance Types for detailed descriptions of each.
eC2InstanceType
- Type of EC2 instances used in the fleet. EC2 instance types define
the CPU, memory, storage, and networking capacity of the
fleetaposs hosts. Amazon GameLift supports the EC2 instance types
listed below. See Amazon EC2
Instance Types for detailed descriptions of each.EC2InstanceType
public java.lang.String getEC2InstanceType()
Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance Types for detailed descriptions of each.
EC2InstanceType
public EC2InstanceLimit withEC2InstanceType(java.lang.String eC2InstanceType)
Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance Types for detailed descriptions of each.
eC2InstanceType
- Type of EC2 instances used in the fleet. EC2 instance types define
the CPU, memory, storage, and networking capacity of the
fleetaposs hosts. Amazon GameLift supports the EC2 instance types
listed below. See Amazon EC2
Instance Types for detailed descriptions of each.EC2InstanceType
public void setEC2InstanceType(EC2InstanceType eC2InstanceType)
Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance Types for detailed descriptions of each.
eC2InstanceType
- Type of EC2 instances used in the fleet. EC2 instance types define
the CPU, memory, storage, and networking capacity of the
fleetaposs hosts. Amazon GameLift supports the EC2 instance types
listed below. See Amazon EC2
Instance Types for detailed descriptions of each.EC2InstanceType
public EC2InstanceLimit withEC2InstanceType(EC2InstanceType eC2InstanceType)
Type of EC2 instances used in the fleet. EC2 instance types define the CPU, memory, storage, and networking capacity of the fleetaposs hosts. Amazon GameLift supports the EC2 instance types listed below. See Amazon EC2 Instance Types for detailed descriptions of each.
eC2InstanceType
- Type of EC2 instances used in the fleet. EC2 instance types define
the CPU, memory, storage, and networking capacity of the
fleetaposs hosts. Amazon GameLift supports the EC2 instance types
listed below. See Amazon EC2
Instance Types for detailed descriptions of each.EC2InstanceType
public void setCurrentInstances(java.lang.Integer currentInstances)
Number of instances of the specified type that are currently in use by this AWS account.
currentInstances
- Number of instances of the specified type that are currently in
use by this AWS account.public java.lang.Integer getCurrentInstances()
Number of instances of the specified type that are currently in use by this AWS account.
public EC2InstanceLimit withCurrentInstances(java.lang.Integer currentInstances)
Number of instances of the specified type that are currently in use by this AWS account.
currentInstances
- Number of instances of the specified type that are currently in
use by this AWS account.public void setInstanceLimit(java.lang.Integer instanceLimit)
Number of instances allowed.
instanceLimit
- Number of instances allowed.public java.lang.Integer getInstanceLimit()
Number of instances allowed.
public EC2InstanceLimit withInstanceLimit(java.lang.Integer instanceLimit)
Number of instances allowed.
instanceLimit
- Number of instances allowed.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public EC2InstanceLimit clone()
clone
in class java.lang.Object