@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EC2InstanceLimit extends Object implements Serializable, Cloneable, StructuredPojo
The GameLift service limits for an EC2 instance type and current utilization. GameLift allows AWS accounts a maximum number of instances, per instance type, per AWS Region or location, for use with GameLift. You can request an limit increase for your account by using the Service limits page in the GameLift console.
Related actions
| Constructor and Description |
|---|
EC2InstanceLimit() |
| Modifier and Type | Method and Description |
|---|---|
EC2InstanceLimit |
clone() |
boolean |
equals(Object obj) |
Integer |
getCurrentInstances()
The number of instances for the specified type and location that are currently being used by the AWS account.
|
String |
getEC2InstanceType()
The name of an EC2 instance type.
|
Integer |
getInstanceLimit()
The number of instances that is allowed for the specified instance type and location.
|
String |
getLocation()
An AWS Region code, such as
us-west-2. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setCurrentInstances(Integer currentInstances)
The number of instances for the specified type and location that are currently being used by the AWS account.
|
void |
setEC2InstanceType(EC2InstanceType eC2InstanceType)
The name of an EC2 instance type.
|
void |
setEC2InstanceType(String eC2InstanceType)
The name of an EC2 instance type.
|
void |
setInstanceLimit(Integer instanceLimit)
The number of instances that is allowed for the specified instance type and location.
|
void |
setLocation(String location)
An AWS Region code, such as
us-west-2. |
String |
toString()
Returns a string representation of this object.
|
EC2InstanceLimit |
withCurrentInstances(Integer currentInstances)
The number of instances for the specified type and location that are currently being used by the AWS account.
|
EC2InstanceLimit |
withEC2InstanceType(EC2InstanceType eC2InstanceType)
The name of an EC2 instance type.
|
EC2InstanceLimit |
withEC2InstanceType(String eC2InstanceType)
The name of an EC2 instance type.
|
EC2InstanceLimit |
withInstanceLimit(Integer instanceLimit)
The number of instances that is allowed for the specified instance type and location.
|
EC2InstanceLimit |
withLocation(String location)
An AWS Region code, such as
us-west-2. |
public void setEC2InstanceType(String eC2InstanceType)
The name of an EC2 instance type. See Amazon EC2 Instance Types for detailed descriptions.
eC2InstanceType - The name of an EC2 instance type. See Amazon EC2
Instance Types for detailed descriptions.EC2InstanceTypepublic String getEC2InstanceType()
The name of an EC2 instance type. See Amazon EC2 Instance Types for detailed descriptions.
EC2InstanceTypepublic EC2InstanceLimit withEC2InstanceType(String eC2InstanceType)
The name of an EC2 instance type. See Amazon EC2 Instance Types for detailed descriptions.
eC2InstanceType - The name of an EC2 instance type. See Amazon EC2
Instance Types for detailed descriptions.EC2InstanceTypepublic void setEC2InstanceType(EC2InstanceType eC2InstanceType)
The name of an EC2 instance type. See Amazon EC2 Instance Types for detailed descriptions.
eC2InstanceType - The name of an EC2 instance type. See Amazon EC2
Instance Types for detailed descriptions.EC2InstanceTypepublic EC2InstanceLimit withEC2InstanceType(EC2InstanceType eC2InstanceType)
The name of an EC2 instance type. See Amazon EC2 Instance Types for detailed descriptions.
eC2InstanceType - The name of an EC2 instance type. See Amazon EC2
Instance Types for detailed descriptions.EC2InstanceTypepublic void setCurrentInstances(Integer currentInstances)
The number of instances for the specified type and location that are currently being used by the AWS account.
currentInstances - The number of instances for the specified type and location that are currently being used by the AWS
account.public Integer getCurrentInstances()
The number of instances for the specified type and location that are currently being used by the AWS account.
public EC2InstanceLimit withCurrentInstances(Integer currentInstances)
The number of instances for the specified type and location that are currently being used by the AWS account.
currentInstances - The number of instances for the specified type and location that are currently being used by the AWS
account.public void setInstanceLimit(Integer instanceLimit)
The number of instances that is allowed for the specified instance type and location.
instanceLimit - The number of instances that is allowed for the specified instance type and location.public Integer getInstanceLimit()
The number of instances that is allowed for the specified instance type and location.
public EC2InstanceLimit withInstanceLimit(Integer instanceLimit)
The number of instances that is allowed for the specified instance type and location.
instanceLimit - The number of instances that is allowed for the specified instance type and location.public void setLocation(String location)
An AWS Region code, such as us-west-2.
location - An AWS Region code, such as us-west-2.public String getLocation()
An AWS Region code, such as us-west-2.
us-west-2.public EC2InstanceLimit withLocation(String location)
An AWS Region code, such as us-west-2.
location - An AWS Region code, such as us-west-2.public String toString()
toString in class ObjectObject.toString()public EC2InstanceLimit clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2021. All rights reserved.