Class EC2InstanceLimit
- All Implemented Interfaces:
Serializable
,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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Number of instances of the specified type that are currently in use by this AWS account.Type of EC2 instances used in the fleet.Number of instances allowed.int
hashCode()
void
setCurrentInstances
(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
(String eC2InstanceType) Type of EC2 instances used in the fleet.void
setInstanceLimit
(Integer instanceLimit) Number of instances allowed.toString()
Returns a string representation of this object; useful for testing and debugging.withCurrentInstances
(Integer currentInstances) Number of instances of the specified type that are currently in use by this AWS account.withEC2InstanceType
(EC2InstanceType eC2InstanceType) Type of EC2 instances used in the fleet.withEC2InstanceType
(String eC2InstanceType) Type of EC2 instances used in the fleet.withInstanceLimit
(Integer instanceLimit) Number of instances allowed.
-
Constructor Details
-
EC2InstanceLimit
public EC2InstanceLimit()
-
-
Method Details
-
setEC2InstanceType
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.
- Parameters:
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.- See Also:
-
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.
- Returns:
- 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.
- See Also:
-
withEC2InstanceType
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setEC2InstanceType
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.
- Parameters:
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.- See Also:
-
withEC2InstanceType
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setCurrentInstances
Number of instances of the specified type that are currently in use by this AWS account.
- Parameters:
currentInstances
- Number of instances of the specified type that are currently in use by this AWS account.
-
getCurrentInstances
Number of instances of the specified type that are currently in use by this AWS account.
- Returns:
- Number of instances of the specified type that are currently in use by this AWS account.
-
withCurrentInstances
Number of instances of the specified type that are currently in use by this AWS account.
- Parameters:
currentInstances
- Number of instances of the specified type that are currently in use by this AWS account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceLimit
Number of instances allowed.
- Parameters:
instanceLimit
- Number of instances allowed.
-
getInstanceLimit
Number of instances allowed.
- Returns:
- Number of instances allowed.
-
withInstanceLimit
Number of instances allowed.
- Parameters:
instanceLimit
- Number of instances allowed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-