Class Instance
- All Implemented Interfaces:
- Serializable,- SdkPojo,- ToCopyableBuilder<Instance.Builder,- Instance> 
Represents a virtual computing instance that runs game server processes and hosts game sessions. In Amazon GameLift, one or more instances make up a managed EC2 fleet.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionstatic Instance.Builderbuilder()final InstantA time stamp indicating when this data object was created.final StringdnsName()The DNS identifier assigned to the instance that is running the game session.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringfleetArn()The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift fleet resource and uniquely identifies it.final StringfleetId()A unique identifier for the fleet that the instance belongs to.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringA unique identifier for the instance.final StringIP address that is assigned to the instance.final Stringlocation()The fleet location of the instance, expressed as an Amazon Web Services Region code, such asus-west-2.final OperatingSystemOperating system that is running on this EC2 instance.final StringOperating system that is running on this EC2 instance.static Class<? extends Instance.Builder> final InstanceStatusstatus()Current status of the instance.final StringCurrent status of the instance.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final EC2InstanceTypetype()EC2 instance type that defines the computing resources of this instance.final StringEC2 instance type that defines the computing resources of this instance.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuildercopy
- 
Method Details- 
fleetIdA unique identifier for the fleet that the instance belongs to. - Returns:
- A unique identifier for the fleet that the instance belongs to.
 
- 
fleetArnThe 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.- Returns:
- 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.
 
- 
instanceIdA unique identifier for the instance. - Returns:
- A unique identifier for the instance.
 
- 
ipAddressIP address that is assigned to the instance. - Returns:
- IP address that is assigned to the instance.
 
- 
dnsNameThe 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 Elastic Compute Cloud 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. - Returns:
- 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 Elastic Compute Cloud 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. 
- 
         
 
- 
 
- 
operatingSystemOperating system that is running on this EC2 instance. Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the Amazon Linux 2 FAQs. For game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See Migrate to Amazon GameLift server SDK version 5. If the service returns an enum value that is not available in the current SDK version, operatingSystemwill returnOperatingSystem.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoperatingSystemAsString().- Returns:
- Operating system that is running on this EC2 instance.  Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the Amazon Linux 2 FAQs. For game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See Migrate to Amazon GameLift server SDK version 5. 
- See Also:
 
- 
operatingSystemAsStringOperating system that is running on this EC2 instance. Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the Amazon Linux 2 FAQs. For game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See Migrate to Amazon GameLift server SDK version 5. If the service returns an enum value that is not available in the current SDK version, operatingSystemwill returnOperatingSystem.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoperatingSystemAsString().- Returns:
- Operating system that is running on this EC2 instance.  Amazon Linux 2 (AL2) will reach end of support on 6/30/2025. See more details in the Amazon Linux 2 FAQs. For game servers that are hosted on AL2 and use Amazon GameLift server SDK 4.x., first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See Migrate to Amazon GameLift server SDK version 5. 
- See Also:
 
- 
typeEC2 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, typewill returnEC2InstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- EC2 instance type that defines the computing resources of this instance.
- See Also:
 
- 
typeAsStringEC2 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, typewill returnEC2InstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- EC2 instance type that defines the computing resources of this instance.
- See Also:
 
- 
statusCurrent 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, statuswill returnInstanceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- 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. 
 
- 
         
- See Also:
 
- 
 
- 
statusAsStringCurrent 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, statuswill returnInstanceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- 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. 
 
- 
         
- See Also:
 
- 
 
- 
creationTimeA time stamp indicating when this data object was created. Format is a number expressed in Unix time as milliseconds (for example "1469498468.057").- Returns:
- A time stamp indicating when this data object was created. Format is a number expressed in Unix time as
         milliseconds (for example "1469498468.057").
 
- 
locationThe fleet location of the instance, expressed as an Amazon Web Services Region code, such as us-west-2.- Returns:
- The fleet location of the instance, expressed as an Amazon Web Services Region code, such as
         us-west-2.
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<Instance.Builder,- Instance> 
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClass
- 
hashCode
- 
equals
- 
equalsBySdkFieldsDescription copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
- equalsBySdkFieldsin interface- SdkPojo
- Parameters:
- obj- the object to be compared with
- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
 
- 
toString
- 
getValueForField
- 
sdkFields
 
-