@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FleetCapacity extends Object implements Serializable, Cloneable, StructuredPojo
Current resource capacity settings for managed EC2 fleets and container fleets. For multi-location fleets, location values might refer to a fleet's remote location or its home Region.
Returned by: DescribeFleetCapacity, DescribeFleetLocationCapacity, UpdateFleetCapacity
Constructor and Description |
---|
FleetCapacity() |
Modifier and Type | Method and Description |
---|---|
FleetCapacity |
clone() |
boolean |
equals(Object obj) |
String |
getFleetArn()
The Amazon Resource Name (ARN)
that is assigned to a Amazon GameLift fleet resource and uniquely identifies it.
|
String |
getFleetId()
A unique identifier for the fleet associated with the location.
|
EC2InstanceCounts |
getInstanceCounts()
The current number of instances in the fleet, listed by instance status.
|
String |
getInstanceType()
The Amazon EC2 instance type that is used for instances in a fleet.
|
String |
getLocation()
The fleet location for the instance count information, expressed as an Amazon Web Services Region code, such as
us-west-2 . |
ReplicaContainerGroupCounts |
getReplicaContainerGroupCounts()
This property is used with the Amazon GameLift containers feature, which is currently in public preview.
The number and status of replica container groups in a container fleet.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFleetArn(String fleetArn)
The Amazon Resource Name (ARN)
that is assigned to a Amazon GameLift fleet resource and uniquely identifies it.
|
void |
setFleetId(String fleetId)
A unique identifier for the fleet associated with the location.
|
void |
setInstanceCounts(EC2InstanceCounts instanceCounts)
The current number of instances in the fleet, listed by instance status.
|
void |
setInstanceType(EC2InstanceType instanceType)
The Amazon EC2 instance type that is used for instances in a fleet.
|
void |
setInstanceType(String instanceType)
The Amazon EC2 instance type that is used for instances in a fleet.
|
void |
setLocation(String location)
The fleet location for the instance count information, expressed as an Amazon Web Services Region code, such as
us-west-2 . |
void |
setReplicaContainerGroupCounts(ReplicaContainerGroupCounts replicaContainerGroupCounts)
This property is used with the Amazon GameLift containers feature, which is currently in public preview.
The number and status of replica container groups in a container fleet.
|
String |
toString()
Returns a string representation of this object.
|
FleetCapacity |
withFleetArn(String fleetArn)
The Amazon Resource Name (ARN)
that is assigned to a Amazon GameLift fleet resource and uniquely identifies it.
|
FleetCapacity |
withFleetId(String fleetId)
A unique identifier for the fleet associated with the location.
|
FleetCapacity |
withInstanceCounts(EC2InstanceCounts instanceCounts)
The current number of instances in the fleet, listed by instance status.
|
FleetCapacity |
withInstanceType(EC2InstanceType instanceType)
The Amazon EC2 instance type that is used for instances in a fleet.
|
FleetCapacity |
withInstanceType(String instanceType)
The Amazon EC2 instance type that is used for instances in a fleet.
|
FleetCapacity |
withLocation(String location)
The fleet location for the instance count information, expressed as an Amazon Web Services Region code, such as
us-west-2 . |
FleetCapacity |
withReplicaContainerGroupCounts(ReplicaContainerGroupCounts replicaContainerGroupCounts)
This property is used with the Amazon GameLift containers feature, which is currently in public preview.
The number and status of replica container groups in a container fleet.
|
public void setFleetId(String fleetId)
A unique identifier for the fleet associated with the location.
fleetId
- A unique identifier for the fleet associated with the location.public String getFleetId()
A unique identifier for the fleet associated with the location.
public FleetCapacity withFleetId(String fleetId)
A unique identifier for the fleet associated with the location.
fleetId
- A unique identifier for the fleet associated with the location.public void setFleetArn(String fleetArn)
The Amazon Resource Name (ARN)
that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. ARNs are unique across all
Regions. Format is arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
.
fleetArn
- The Amazon Resource Name (ARN) that is assigned to a
Amazon GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is
arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
.public String getFleetArn()
The Amazon Resource Name (ARN)
that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. ARNs are unique across all
Regions. Format is arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
.
arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
.public FleetCapacity withFleetArn(String fleetArn)
The Amazon Resource Name (ARN)
that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. ARNs are unique across all
Regions. Format is arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
.
fleetArn
- The Amazon Resource Name (ARN) that is assigned to a
Amazon GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is
arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
.public void setInstanceType(String instanceType)
The Amazon EC2 instance type that is used for instances in a fleet. Instance type determines the computing resources in use, including CPU, memory, storage, and networking capacity. See Amazon Elastic Compute Cloud Instance Types for detailed descriptions.
instanceType
- The Amazon EC2 instance type that is used for instances in a fleet. Instance type determines the computing
resources in use, including CPU, memory, storage, and networking capacity. See Amazon Elastic Compute Cloud Instance Types for
detailed descriptions.EC2InstanceType
public String getInstanceType()
The Amazon EC2 instance type that is used for instances in a fleet. Instance type determines the computing resources in use, including CPU, memory, storage, and networking capacity. See Amazon Elastic Compute Cloud Instance Types for detailed descriptions.
EC2InstanceType
public FleetCapacity withInstanceType(String instanceType)
The Amazon EC2 instance type that is used for instances in a fleet. Instance type determines the computing resources in use, including CPU, memory, storage, and networking capacity. See Amazon Elastic Compute Cloud Instance Types for detailed descriptions.
instanceType
- The Amazon EC2 instance type that is used for instances in a fleet. Instance type determines the computing
resources in use, including CPU, memory, storage, and networking capacity. See Amazon Elastic Compute Cloud Instance Types for
detailed descriptions.EC2InstanceType
public void setInstanceType(EC2InstanceType instanceType)
The Amazon EC2 instance type that is used for instances in a fleet. Instance type determines the computing resources in use, including CPU, memory, storage, and networking capacity. See Amazon Elastic Compute Cloud Instance Types for detailed descriptions.
instanceType
- The Amazon EC2 instance type that is used for instances in a fleet. Instance type determines the computing
resources in use, including CPU, memory, storage, and networking capacity. See Amazon Elastic Compute Cloud Instance Types for
detailed descriptions.EC2InstanceType
public FleetCapacity withInstanceType(EC2InstanceType instanceType)
The Amazon EC2 instance type that is used for instances in a fleet. Instance type determines the computing resources in use, including CPU, memory, storage, and networking capacity. See Amazon Elastic Compute Cloud Instance Types for detailed descriptions.
instanceType
- The Amazon EC2 instance type that is used for instances in a fleet. Instance type determines the computing
resources in use, including CPU, memory, storage, and networking capacity. See Amazon Elastic Compute Cloud Instance Types for
detailed descriptions.EC2InstanceType
public void setInstanceCounts(EC2InstanceCounts instanceCounts)
The current number of instances in the fleet, listed by instance status. Counts for pending and terminating instances might be non-zero if the fleet is adjusting to a scaling event or if access to resources is temporarily affected.
instanceCounts
- The current number of instances in the fleet, listed by instance status. Counts for pending and
terminating instances might be non-zero if the fleet is adjusting to a scaling event or if access to
resources is temporarily affected.public EC2InstanceCounts getInstanceCounts()
The current number of instances in the fleet, listed by instance status. Counts for pending and terminating instances might be non-zero if the fleet is adjusting to a scaling event or if access to resources is temporarily affected.
public FleetCapacity withInstanceCounts(EC2InstanceCounts instanceCounts)
The current number of instances in the fleet, listed by instance status. Counts for pending and terminating instances might be non-zero if the fleet is adjusting to a scaling event or if access to resources is temporarily affected.
instanceCounts
- The current number of instances in the fleet, listed by instance status. Counts for pending and
terminating instances might be non-zero if the fleet is adjusting to a scaling event or if access to
resources is temporarily affected.public void setLocation(String location)
The fleet location for the instance count information, expressed as an Amazon Web Services Region code, such as
us-west-2
.
location
- The fleet location for the instance count information, expressed as an Amazon Web Services Region code,
such as us-west-2
.public String getLocation()
The fleet location for the instance count information, expressed as an Amazon Web Services Region code, such as
us-west-2
.
us-west-2
.public FleetCapacity withLocation(String location)
The fleet location for the instance count information, expressed as an Amazon Web Services Region code, such as
us-west-2
.
location
- The fleet location for the instance count information, expressed as an Amazon Web Services Region code,
such as us-west-2
.public void setReplicaContainerGroupCounts(ReplicaContainerGroupCounts replicaContainerGroupCounts)
This property is used with the Amazon GameLift containers feature, which is currently in public preview. The number and status of replica container groups in a container fleet.
replicaContainerGroupCounts
- This property is used with the Amazon GameLift containers feature, which is currently in public
preview. The number and status of replica container groups in a container fleet.public ReplicaContainerGroupCounts getReplicaContainerGroupCounts()
This property is used with the Amazon GameLift containers feature, which is currently in public preview. The number and status of replica container groups in a container fleet.
public FleetCapacity withReplicaContainerGroupCounts(ReplicaContainerGroupCounts replicaContainerGroupCounts)
This property is used with the Amazon GameLift containers feature, which is currently in public preview. The number and status of replica container groups in a container fleet.
replicaContainerGroupCounts
- This property is used with the Amazon GameLift containers feature, which is currently in public
preview. The number and status of replica container groups in a container fleet.public String toString()
toString
in class Object
Object.toString()
public FleetCapacity clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.