@Generated(value="software.amazon.awssdk:codegen") public final class EC2InstanceLimit extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EC2InstanceLimit.Builder,EC2InstanceLimit>
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 | Class and Description |
---|---|
static interface |
EC2InstanceLimit.Builder |
Modifier and Type | Method and Description |
---|---|
static EC2InstanceLimit.Builder |
builder() |
Integer |
currentInstances()
Number of instances of the specified type that are currently in use by this AWS account.
|
EC2InstanceType |
ec2InstanceType()
Name of an EC2 instance type that is supported in Amazon GameLift.
|
String |
ec2InstanceTypeAsString()
Name of an EC2 instance type that is supported in Amazon GameLift.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
instanceLimit()
Number of instances allowed.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends EC2InstanceLimit.Builder> |
serializableBuilderClass() |
EC2InstanceLimit.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public EC2InstanceType ec2InstanceType()
Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.
If the service returns an enum value that is not available in the current SDK version, ec2InstanceType
will return EC2InstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from ec2InstanceTypeAsString()
.
EC2InstanceType
public String ec2InstanceTypeAsString()
Name of an EC2 instance type that is supported in Amazon GameLift. A fleet instance type determines the computing resources of each instance in the fleet, including CPU, memory, storage, and networking capacity. Amazon GameLift supports the following EC2 instance types. See Amazon EC2 Instance Types for detailed descriptions.
If the service returns an enum value that is not available in the current SDK version, ec2InstanceType
will return EC2InstanceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from ec2InstanceTypeAsString()
.
EC2InstanceType
public Integer currentInstances()
Number of instances of the specified type that are currently in use by this AWS account.
public Integer instanceLimit()
Number of instances allowed.
public EC2InstanceLimit.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<EC2InstanceLimit.Builder,EC2InstanceLimit>
public static EC2InstanceLimit.Builder builder()
public static Class<? extends EC2InstanceLimit.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.