Class EC2InstanceLimit

java.lang.Object
com.amazonaws.services.gamelift.model.EC2InstanceLimit
All Implemented Interfaces:
Serializable, Cloneable

public class EC2InstanceLimit extends Object implements 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 Details

    • EC2InstanceLimit

      public EC2InstanceLimit()
  • Method Details

    • setEC2InstanceType

      public void setEC2InstanceType(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.

      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

      public 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.

      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

      public EC2InstanceLimit withEC2InstanceType(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.

      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

      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.

      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

      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.

      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

      public void setCurrentInstances(Integer currentInstances)

      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

      public Integer 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

      public EC2InstanceLimit withCurrentInstances(Integer currentInstances)

      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

      public void setInstanceLimit(Integer instanceLimit)

      Number of instances allowed.

      Parameters:
      instanceLimit - Number of instances allowed.
    • getInstanceLimit

      public Integer getInstanceLimit()

      Number of instances allowed.

      Returns:
      Number of instances allowed.
    • withInstanceLimit

      public EC2InstanceLimit withInstanceLimit(Integer instanceLimit)

      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

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public EC2InstanceLimit clone()
      Overrides:
      clone in class Object