@Generated(value="software.amazon.awssdk:codegen") public final class Instance extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Instance.Builder,Instance>
Represents an EC2 instance of virtual computing resources that hosts one or more game servers. In Amazon GameLift, a fleet can contain zero or more instances.
Related actions
| Modifier and Type | Class and Description |
|---|---|
static interface |
Instance.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Instance.Builder |
builder() |
Instant |
creationTime()
A time stamp indicating when this data object was created.
|
String |
dnsName()
The DNS identifier assigned to the instance that is running the game session.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
fleetArn()
The Amazon Resource Name (ARN)
that is assigned to a Amazon GameLift fleet resource and uniquely identifies it.
|
String |
fleetId()
A unique identifier for the fleet that the instance is in.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
instanceId()
A unique identifier for the instance.
|
String |
ipAddress()
IP address that is assigned to the instance.
|
String |
location()
The fleet location of the instance, expressed as an Amazon Web Services Region code, such as
us-west-2. |
OperatingSystem |
operatingSystem()
Operating system that is running on this instance.
|
String |
operatingSystemAsString()
Operating system that is running on this instance.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Instance.Builder> |
serializableBuilderClass() |
InstanceStatus |
status()
Current status of the instance.
|
String |
statusAsString()
Current status of the instance.
|
Instance.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
EC2InstanceType |
type()
Amazon EC2 instance type that defines the computing resources of this instance.
|
String |
typeAsString()
Amazon EC2 instance type that defines the computing resources of this instance.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String fleetId()
A unique identifier for the fleet that the instance is in.
public final 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
.
arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.public final String instanceId()
A unique identifier for the instance.
public final String ipAddress()
IP address that is assigned to the instance.
public final String dnsName()
The DNS identifier assigned to the instance that is running the game session. Values have the following format:
TLS-enabled fleets: <unique identifier>.<region identifier>.amazongamelift.com.
Non-TLS-enabled fleets: ec2-<unique identifier>.compute.amazonaws.com. (See Amazon EC2 Instance IP Addressing.)
When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP address.
TLS-enabled fleets: <unique identifier>.<region identifier>.amazongamelift.com.
Non-TLS-enabled fleets: ec2-<unique identifier>.compute.amazonaws.com. (See Amazon EC2 Instance IP Addressing.)
When connecting to a game session that is running on a TLS-enabled fleet, you must use the DNS name, not the IP address.
public final OperatingSystem operatingSystem()
Operating system that is running on this instance.
If the service returns an enum value that is not available in the current SDK version, operatingSystem
will return OperatingSystem.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from operatingSystemAsString().
OperatingSystempublic final String operatingSystemAsString()
Operating system that is running on this instance.
If the service returns an enum value that is not available in the current SDK version, operatingSystem
will return OperatingSystem.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from operatingSystemAsString().
OperatingSystempublic final EC2InstanceType type()
Amazon EC2 instance type that defines the computing resources of this instance.
If the service returns an enum value that is not available in the current SDK version, type will return
EC2InstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
EC2InstanceTypepublic final String typeAsString()
Amazon EC2 instance type that defines the computing resources of this instance.
If the service returns an enum value that is not available in the current SDK version, type will return
EC2InstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
EC2InstanceTypepublic final InstanceStatus status()
Current status of the instance. Possible statuses include the following:
PENDING -- The instance is in the process of being created and launching server processes as defined in the fleet's run-time configuration.
ACTIVE -- The instance has been successfully created and at least one server process has successfully launched and reported back to Amazon GameLift that it is ready to host a game session. The instance is now considered ready to host game sessions.
TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity during a scaling down event or to recycle resources in the event of a problem.
If the service returns an enum value that is not available in the current SDK version, status will
return InstanceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
PENDING -- The instance is in the process of being created and launching server processes as defined in the fleet's run-time configuration.
ACTIVE -- The instance has been successfully created and at least one server process has successfully launched and reported back to Amazon GameLift that it is ready to host a game session. The instance is now considered ready to host game sessions.
TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity during a scaling down event or to recycle resources in the event of a problem.
InstanceStatuspublic final String statusAsString()
Current status of the instance. Possible statuses include the following:
PENDING -- The instance is in the process of being created and launching server processes as defined in the fleet's run-time configuration.
ACTIVE -- The instance has been successfully created and at least one server process has successfully launched and reported back to Amazon GameLift that it is ready to host a game session. The instance is now considered ready to host game sessions.
TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity during a scaling down event or to recycle resources in the event of a problem.
If the service returns an enum value that is not available in the current SDK version, status will
return InstanceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
PENDING -- The instance is in the process of being created and launching server processes as defined in the fleet's run-time configuration.
ACTIVE -- The instance has been successfully created and at least one server process has successfully launched and reported back to Amazon GameLift that it is ready to host a game session. The instance is now considered ready to host game sessions.
TERMINATING -- The instance is in the process of shutting down. This may happen to reduce capacity during a scaling down event or to recycle resources in the event of a problem.
InstanceStatuspublic final Instant creationTime()
A time stamp indicating when this data object was created. Format is a number expressed in Unix time as
milliseconds (for example "1469498468.057").
"1469498468.057").public final String location()
The fleet location of the instance, expressed as an Amazon Web Services Region code, such as
us-west-2.
us-west-2.public Instance.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Instance.Builder,Instance>public static Instance.Builder builder()
public static Class<? extends Instance.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.