@Generated(value="software.amazon.awssdk:codegen") public final class Instance extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Instance.Builder,Instance>
Properties that describe an instance of a virtual computing resource that hosts one or more game servers. A fleet may contain zero or more instances.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Instance.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Instance.Builder |
builder() |
Instant |
creationTime()
Time stamp indicating when this data object was created.
|
String |
dnsName()
DNS identifier assigned to the instance that is running the game session.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
fleetId()
A unique identifier for a fleet that the instance is in.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
instanceId()
A unique identifier for an instance.
|
String |
ipAddress()
IP address that is assigned to the instance.
|
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()
EC2 instance type that defines the computing resources of this instance.
|
String |
typeAsString()
EC2 instance type that defines the computing resources of this instance.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String fleetId()
A unique identifier for a fleet that the instance is in.
public String instanceId()
A unique identifier for an instance.
public String ipAddress()
IP address that is assigned to the instance.
public String dnsName()
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 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 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 EC2InstanceType type()
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 String typeAsString()
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 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 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 Instant creationTime()
Time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").
public Instance.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Instance.Builder,Instance>public static Instance.Builder builder()
public static Class<? extends Instance.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.