Class Compute
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Compute.Builder,Compute>
This data type has been expanded to use with the Amazon GameLift containers feature, which is currently in public preview.
An Amazon GameLift compute resource for hosting your game servers. Computes in an Amazon GameLift fleet differs depending on the fleet's compute type property as follows:
-
For
EC2fleets, a compute is an EC2 instance. -
For
ANYWHEREfleets, a compute is a computing resource that you provide and is registered to the fleet. -
For
CONTAINERfleets, a compute is a container that's registered to the fleet.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Compute.Builderbuilder()final StringThe ARN that is assigned to a compute resource and uniquely identifies it.final StringA descriptive label for the compute resource.final ComputeStatusCurrent status of the compute.final StringCurrent status of the compute.final ContainerAttributesSome attributes of a container.final InstantA time stamp indicating when this data object was created.final StringdnsName()The DNS name of a compute resource.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) of the fleet that the compute belongs to.final StringfleetId()A unique identifier for the fleet that the compute belongs to.final StringThe endpoint of the Amazon GameLift Agent.final StringThe Amazon GameLift SDK endpoint connection for a registered compute resource in an Anywhere fleet.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringTheInstanceIDof theInstancehosting the compute for Container and Managed EC2 fleets.final StringThe IP address of a compute resource.final Stringlocation()The name of the custom location you added to the fleet that this compute resource resides in.final OperatingSystemThe type of operating system on the compute resource.final StringThe type of operating system on the compute resource.static Class<? extends Compute.Builder> 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()The Amazon EC2 instance type that the fleet uses.final StringThe Amazon EC2 instance type that the fleet uses.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
fleetId
A unique identifier for the fleet that the compute belongs to.
- Returns:
- A unique identifier for the fleet that the compute belongs to.
-
fleetArn
The Amazon Resource Name (ARN) of the fleet that the compute belongs to.
- Returns:
- The Amazon Resource Name (ARN) of the fleet that the compute belongs to.
-
computeName
A descriptive label for the compute resource. For instances in a managed EC2 fleet, the compute name is the same value as the
InstanceIdID.- Returns:
- A descriptive label for the compute resource. For instances in a managed EC2 fleet, the compute name is
the same value as the
InstanceIdID.
-
computeArn
The ARN that is assigned to a compute resource and uniquely identifies it. ARNs are unique across locations. Instances in managed EC2 fleets are not assigned a Compute ARN.
- Returns:
- The ARN that is assigned to a compute resource and uniquely identifies it. ARNs are unique across locations. Instances in managed EC2 fleets are not assigned a Compute ARN.
-
ipAddress
The IP address of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.
- Returns:
- The IP address of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.
-
dnsName
The DNS name of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.
- Returns:
- The DNS name of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.
-
computeStatus
Current status of the compute. A compute must have an
ACTIVEstatus to host game sessions.If the service returns an enum value that is not available in the current SDK version,
computeStatuswill returnComputeStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcomputeStatusAsString().- Returns:
- Current status of the compute. A compute must have an
ACTIVEstatus to host game sessions. - See Also:
-
computeStatusAsString
Current status of the compute. A compute must have an
ACTIVEstatus to host game sessions.If the service returns an enum value that is not available in the current SDK version,
computeStatuswill returnComputeStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcomputeStatusAsString().- Returns:
- Current status of the compute. A compute must have an
ACTIVEstatus to host game sessions. - See Also:
-
location
The name of the custom location you added to the fleet that this compute resource resides in.
- Returns:
- The name of the custom location you added to the fleet that this compute resource resides in.
-
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").- 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").
-
operatingSystem
The type of operating system on the compute resource.
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:
- The type of operating system on the compute resource.
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:
-
operatingSystemAsString
The type of operating system on the compute resource.
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:
- The type of operating system on the compute resource.
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:
-
type
The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Anywhere fleet, this property is empty.
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:
- The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Anywhere fleet, this property is empty.
- See Also:
-
typeAsString
The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Anywhere fleet, this property is empty.
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:
- The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Anywhere fleet, this property is empty.
- See Also:
-
gameLiftServiceSdkEndpoint
The Amazon GameLift SDK endpoint connection for a registered compute resource in an Anywhere fleet. The game servers on the compute use this endpoint to connect to the Amazon GameLift service.
- Returns:
- The Amazon GameLift SDK endpoint connection for a registered compute resource in an Anywhere fleet. The game servers on the compute use this endpoint to connect to the Amazon GameLift service.
-
gameLiftAgentEndpoint
The endpoint of the Amazon GameLift Agent.
- Returns:
- The endpoint of the Amazon GameLift Agent.
-
instanceId
The
InstanceIDof theInstancehosting the compute for Container and Managed EC2 fleets.- Returns:
- The
InstanceIDof theInstancehosting the compute for Container and Managed EC2 fleets.
-
containerAttributes
Some attributes of a container.
- Returns:
- Some attributes of a container.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Compute.Builder,Compute> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description 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 interfaceSdkPojo- 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
-