Interface Compute.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Compute.Builder,
,Compute> SdkBuilder<Compute.Builder,
,Compute> SdkPojo
- Enclosing class:
Compute
-
Method Summary
Modifier and TypeMethodDescriptioncomputeArn
(String computeArn) The ARN that is assigned to a compute resource and uniquely identifies it.computeName
(String computeName) A descriptive label for the compute resource.computeStatus
(String computeStatus) Current status of the compute.computeStatus
(ComputeStatus computeStatus) Current status of the compute.containerAttributes
(Collection<ContainerAttribute> containerAttributes) A set of attributes for each container in the compute.containerAttributes
(Consumer<ContainerAttribute.Builder>... containerAttributes) A set of attributes for each container in the compute.containerAttributes
(ContainerAttribute... containerAttributes) A set of attributes for each container in the compute.creationTime
(Instant creationTime) A time stamp indicating when this data object was created.The DNS name of a compute resource.The Amazon Resource Name (ARN) of the fleet that the compute belongs to.A unique identifier for the fleet that the compute belongs to.gameLiftAgentEndpoint
(String gameLiftAgentEndpoint) The endpoint of the Amazon GameLift Servers Agent.gameLiftServiceSdkEndpoint
(String gameLiftServiceSdkEndpoint) The Amazon GameLift Servers SDK endpoint connection for a registered compute resource in an Anywhere fleet.gameServerContainerGroupDefinitionArn
(String gameServerContainerGroupDefinitionArn) The game server container group definition for the compute.instanceId
(String instanceId) TheInstanceID
of the EC2 instance that is hosting the compute.The IP address of a compute resource.The name of the custom location you added to the fleet that this compute resource resides in.operatingSystem
(String operatingSystem) The type of operating system on the compute resource.operatingSystem
(OperatingSystem operatingSystem) The type of operating system on the compute resource.The Amazon EC2 instance type that the fleet uses.type
(EC2InstanceType type) The Amazon EC2 instance type that the fleet uses.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
fleetId
A unique identifier for the fleet that the compute belongs to.
- Parameters:
fleetId
- A unique identifier for the fleet that the compute belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fleetArn
The Amazon Resource Name (ARN) of the fleet that the compute belongs to.
- Parameters:
fleetArn
- The Amazon Resource Name (ARN) of the fleet that the compute belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
computeName
A descriptive label for the compute resource. For instances in a managed EC2 fleet, the compute name is the same value as the
InstanceId
ID.- Parameters:
computeName
- A descriptive label for the compute resource. For instances in a managed EC2 fleet, the compute name is the same value as theInstanceId
ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
ipAddress
The IP address of a compute resource. Amazon GameLift Servers requires a DNS name or IP address for a compute.
- Parameters:
ipAddress
- The IP address of a compute resource. Amazon GameLift Servers requires a DNS name or IP address for a compute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsName
The DNS name of a compute resource. Amazon GameLift Servers requires a DNS name or IP address for a compute.
- Parameters:
dnsName
- The DNS name of a compute resource. Amazon GameLift Servers requires a DNS name or IP address for a compute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
computeStatus
Current status of the compute. A compute must have an
ACTIVE
status to host game sessions.- Parameters:
computeStatus
- Current status of the compute. A compute must have anACTIVE
status to host game sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
computeStatus
Current status of the compute. A compute must have an
ACTIVE
status to host game sessions.- Parameters:
computeStatus
- Current status of the compute. A compute must have anACTIVE
status to host game sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
location
The name of the custom location you added to the fleet that this compute resource resides in.
- Parameters:
location
- The name of the custom location you added to the fleet that this compute resource resides in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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"
).- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
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 server SDK version 4.x for Amazon GameLift Servers, first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See Migrate to server SDK version 5.
- Parameters:
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 server SDK version 4.x for Amazon GameLift Servers, first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See Migrate to server SDK version 5.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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 server SDK version 4.x for Amazon GameLift Servers, first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See Migrate to server SDK version 5.
- Parameters:
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 server SDK version 4.x for Amazon GameLift Servers, first update the game server build to server SDK 5.x, and then deploy to AL2023 instances. See Migrate to server SDK version 5.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Servers Anywhere fleet, this property is empty.
- Parameters:
type
- The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Servers Anywhere fleet, this property is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Servers Anywhere fleet, this property is empty.
- Parameters:
type
- The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Servers Anywhere fleet, this property is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
gameLiftServiceSdkEndpoint
The Amazon GameLift Servers 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 Servers service.
- Parameters:
gameLiftServiceSdkEndpoint
- The Amazon GameLift Servers 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 Servers service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gameLiftAgentEndpoint
The endpoint of the Amazon GameLift Servers Agent.
- Parameters:
gameLiftAgentEndpoint
- The endpoint of the Amazon GameLift Servers Agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceId
The
InstanceID
of the EC2 instance that is hosting the compute.- Parameters:
instanceId
- TheInstanceID
of the EC2 instance that is hosting the compute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerAttributes
A set of attributes for each container in the compute.
- Parameters:
containerAttributes
- A set of attributes for each container in the compute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerAttributes
A set of attributes for each container in the compute.
- Parameters:
containerAttributes
- A set of attributes for each container in the compute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerAttributes
A set of attributes for each container in the compute.
This is a convenience method that creates an instance of theContainerAttribute.Builder
avoiding the need to create one manually viaContainerAttribute.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontainerAttributes(List<ContainerAttribute>)
.- Parameters:
containerAttributes
- a consumer that will call methods onContainerAttribute.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
gameServerContainerGroupDefinitionArn
The game server container group definition for the compute.
- Parameters:
gameServerContainerGroupDefinitionArn
- The game server container group definition for the compute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-