@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)
Marshalls this structured data using the given
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.EC2InstanceType
public String getEC2InstanceType()
The name of an EC2 instance type. See Amazon EC2 Instance Types for detailed descriptions.
EC2InstanceType
public 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.EC2InstanceType
public 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.EC2InstanceType
public 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.EC2InstanceType
public 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 Object
Object.toString()
public EC2InstanceLimit clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.