Interface Compute.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Compute.Builder,Compute>,SdkBuilder<Compute.Builder,Compute>,SdkPojo
- Enclosing class:
- Compute
public static interface Compute.Builder extends SdkPojo, CopyableBuilder<Compute.Builder,Compute>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Compute.BuildercomputeArn(String computeArn)The ARN that is assigned to a compute resource and uniquely identifies it.Compute.BuildercomputeName(String computeName)A descriptive label for the compute resource.Compute.BuildercomputeStatus(String computeStatus)Current status of the compute.Compute.BuildercomputeStatus(ComputeStatus computeStatus)Current status of the compute.default Compute.BuildercontainerAttributes(Consumer<ContainerAttributes.Builder> containerAttributes)Some attributes of a container.Compute.BuildercontainerAttributes(ContainerAttributes containerAttributes)Some attributes of a container.Compute.BuildercreationTime(Instant creationTime)A time stamp indicating when this data object was created.Compute.BuilderdnsName(String dnsName)The DNS name of a compute resource.Compute.BuilderfleetArn(String fleetArn)The Amazon Resource Name (ARN) of the fleet that the compute belongs to.Compute.BuilderfleetId(String fleetId)A unique identifier for the fleet that the compute belongs to.Compute.BuildergameLiftAgentEndpoint(String gameLiftAgentEndpoint)The endpoint of the Amazon GameLift Agent.Compute.BuildergameLiftServiceSdkEndpoint(String gameLiftServiceSdkEndpoint)The Amazon GameLift SDK endpoint connection for a registered compute resource in an Anywhere fleet.Compute.BuilderinstanceId(String instanceId)TheInstanceIDof theInstancehosting the compute for Container and Managed EC2 fleets.Compute.BuilderipAddress(String ipAddress)The IP address of a compute resource.Compute.Builderlocation(String location)The name of the custom location you added to the fleet that this compute resource resides in.Compute.BuilderoperatingSystem(String operatingSystem)The type of operating system on the compute resource.Compute.BuilderoperatingSystem(OperatingSystem operatingSystem)The type of operating system on the compute resource.Compute.Buildertype(String type)The Amazon EC2 instance type that the fleet uses.Compute.Buildertype(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, sdkFields
-
-
-
-
Method Detail
-
fleetId
Compute.Builder fleetId(String 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
Compute.Builder fleetArn(String 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
Compute.Builder computeName(String 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.- Parameters:
computeName- A descriptive label for the compute resource. For instances in a managed EC2 fleet, the compute name is the same value as theInstanceIdID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
computeArn
Compute.Builder computeArn(String 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
Compute.Builder ipAddress(String ipAddress)
The IP address of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.
- Parameters:
ipAddress- The IP address of a compute resource. Amazon GameLift 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
Compute.Builder dnsName(String dnsName)
The DNS name of a compute resource. Amazon GameLift requires a DNS name or IP address for a compute.
- Parameters:
dnsName- The DNS name of a compute resource. Amazon GameLift 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
Compute.Builder computeStatus(String computeStatus)
Current status of the compute. A compute must have an
ACTIVEstatus to host game sessions.- Parameters:
computeStatus- Current status of the compute. A compute must have anACTIVEstatus to host game sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ComputeStatus,ComputeStatus
-
computeStatus
Compute.Builder computeStatus(ComputeStatus computeStatus)
Current status of the compute. A compute must have an
ACTIVEstatus to host game sessions.- Parameters:
computeStatus- Current status of the compute. A compute must have anACTIVEstatus to host game sessions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ComputeStatus,ComputeStatus
-
location
Compute.Builder location(String 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
Compute.Builder creationTime(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").- 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
Compute.Builder operatingSystem(String 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.
- 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 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OperatingSystem,OperatingSystem
-
operatingSystem
Compute.Builder operatingSystem(OperatingSystem 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.
- 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 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OperatingSystem,OperatingSystem
-
type
Compute.Builder type(String type)
The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Anywhere fleet, this property is empty.
- Parameters:
type- The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Anywhere fleet, this property is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EC2InstanceType,EC2InstanceType
-
type
Compute.Builder type(EC2InstanceType type)
The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Anywhere fleet, this property is empty.
- Parameters:
type- The Amazon EC2 instance type that the fleet uses. For registered computes in an Amazon GameLift Anywhere fleet, this property is empty.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EC2InstanceType,EC2InstanceType
-
gameLiftServiceSdkEndpoint
Compute.Builder gameLiftServiceSdkEndpoint(String 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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
gameLiftAgentEndpoint
Compute.Builder gameLiftAgentEndpoint(String gameLiftAgentEndpoint)
The endpoint of the Amazon GameLift Agent.
- Parameters:
gameLiftAgentEndpoint- The endpoint of the Amazon GameLift Agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceId
Compute.Builder instanceId(String instanceId)
The
InstanceIDof theInstancehosting the compute for Container and Managed EC2 fleets.- Parameters:
instanceId- TheInstanceIDof theInstancehosting the compute for Container and Managed EC2 fleets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerAttributes
Compute.Builder containerAttributes(ContainerAttributes containerAttributes)
Some attributes of a container.
- Parameters:
containerAttributes- Some attributes of a container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerAttributes
default Compute.Builder containerAttributes(Consumer<ContainerAttributes.Builder> containerAttributes)
Some attributes of a container.
This is a convenience method that creates an instance of theContainerAttributes.Builderavoiding the need to create one manually viaContainerAttributes.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontainerAttributes(ContainerAttributes).- Parameters:
containerAttributes- a consumer that will call methods onContainerAttributes.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
containerAttributes(ContainerAttributes)
-
-