Interface ContainerFleet.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ContainerFleet.Builder,
,ContainerFleet> SdkBuilder<ContainerFleet.Builder,
,ContainerFleet> SdkPojo
- Enclosing class:
ContainerFleet
-
Method Summary
Modifier and TypeMethodDescriptionbillingType
(String billingType) Indicates whether the fleet uses On-Demand or Spot instances for this fleet.billingType
(ContainerFleetBillingType billingType) Indicates whether the fleet uses On-Demand or Spot instances for this fleet.creationTime
(Instant creationTime) A time stamp indicating when this data object was created.default ContainerFleet.Builder
deploymentDetails
(Consumer<DeploymentDetails.Builder> deploymentDetails) Information about the most recent deployment for the container fleet.deploymentDetails
(DeploymentDetails deploymentDetails) Information about the most recent deployment for the container fleet.description
(String description) A meaningful description of the container fleet.The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift Servers fleet resource and uniquely identifies it.A unique identifier for the container fleet to retrieve.fleetRoleArn
(String fleetRoleArn) The unique identifier for an Identity and Access Management (IAM) role with permissions to run your containers on resources that are managed by Amazon GameLift Servers.gameServerContainerGroupDefinitionArn
(String gameServerContainerGroupDefinitionArn) The Amazon Resource Name (ARN) that is assigned to the fleet's game server container group.gameServerContainerGroupDefinitionName
(String gameServerContainerGroupDefinitionName) The name of the fleet's game server container group definition, which describes how to deploy containers with your game server build and support software onto each fleet instance.gameServerContainerGroupsPerInstance
(Integer gameServerContainerGroupsPerInstance) The number of times to replicate the game server container group on each fleet instance.default ContainerFleet.Builder
gameSessionCreationLimitPolicy
(Consumer<GameSessionCreationLimitPolicy.Builder> gameSessionCreationLimitPolicy) A policy that limits the number of game sessions that each individual player can create on instances in this fleet.gameSessionCreationLimitPolicy
(GameSessionCreationLimitPolicy gameSessionCreationLimitPolicy) A policy that limits the number of game sessions that each individual player can create on instances in this fleet.default ContainerFleet.Builder
instanceConnectionPortRange
(Consumer<ConnectionPortRange.Builder> instanceConnectionPortRange) Sets the value of the InstanceConnectionPortRange property for this object.instanceConnectionPortRange
(ConnectionPortRange instanceConnectionPortRange) Sets the value of the InstanceConnectionPortRange property for this object.instanceInboundPermissions
(Collection<IpPermission> instanceInboundPermissions) The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.instanceInboundPermissions
(Consumer<IpPermission.Builder>... instanceInboundPermissions) The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.instanceInboundPermissions
(IpPermission... instanceInboundPermissions) The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.instanceType
(String instanceType) The Amazon EC2 instance type to use for all instances in the fleet.locationAttributes
(Collection<ContainerFleetLocationAttributes> locationAttributes) Information about the container fleet's remote locations where fleet instances are deployed.locationAttributes
(Consumer<ContainerFleetLocationAttributes.Builder>... locationAttributes) Information about the container fleet's remote locations where fleet instances are deployed.locationAttributes
(ContainerFleetLocationAttributes... locationAttributes) Information about the container fleet's remote locations where fleet instances are deployed.default ContainerFleet.Builder
logConfiguration
(Consumer<LogConfiguration.Builder> logConfiguration) The method that is used to collect container logs for the fleet.logConfiguration
(LogConfiguration logConfiguration) The method that is used to collect container logs for the fleet.maximumGameServerContainerGroupsPerInstance
(Integer maximumGameServerContainerGroupsPerInstance) The calculated maximum number of game server container group that can be deployed on each fleet instance.metricGroups
(String... metricGroups) The name of an Amazon Web Services CloudWatch metric group to add this fleet to.metricGroups
(Collection<String> metricGroups) The name of an Amazon Web Services CloudWatch metric group to add this fleet to.newGameSessionProtectionPolicy
(String newGameSessionProtectionPolicy) Determines whether Amazon GameLift Servers can shut down game sessions on the fleet that are actively running and hosting players.newGameSessionProtectionPolicy
(ProtectionPolicy newGameSessionProtectionPolicy) Determines whether Amazon GameLift Servers can shut down game sessions on the fleet that are actively running and hosting players.perInstanceContainerGroupDefinitionArn
(String perInstanceContainerGroupDefinitionArn) The Amazon Resource Name (ARN) that is assigned to the fleet's per-instance container group.perInstanceContainerGroupDefinitionName
(String perInstanceContainerGroupDefinitionName) The name of the fleet's per-instance container group definition.The current status of the container fleet.status
(ContainerFleetStatus status) The current status of the container fleet.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 container fleet to retrieve.
- Parameters:
fleetId
- A unique identifier for the container fleet to retrieve.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fleetArn
The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift Servers 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
. In a GameLift fleet ARN, the resource ID matches theFleetId
value.- Parameters:
fleetArn
- The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift Servers fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format isarn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912
. In a GameLift fleet ARN, the resource ID matches theFleetId
value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fleetRoleArn
The unique identifier for an Identity and Access Management (IAM) role with permissions to run your containers on resources that are managed by Amazon GameLift Servers. See Set up an IAM service role. This fleet property can't be changed.
- Parameters:
fleetRoleArn
- The unique identifier for an Identity and Access Management (IAM) role with permissions to run your containers on resources that are managed by Amazon GameLift Servers. See Set up an IAM service role. This fleet property can't be changed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gameServerContainerGroupDefinitionName
ContainerFleet.Builder gameServerContainerGroupDefinitionName(String gameServerContainerGroupDefinitionName) The name of the fleet's game server container group definition, which describes how to deploy containers with your game server build and support software onto each fleet instance.
- Parameters:
gameServerContainerGroupDefinitionName
- The name of the fleet's game server container group definition, which describes how to deploy containers with your game server build and support software onto each fleet instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gameServerContainerGroupDefinitionArn
ContainerFleet.Builder gameServerContainerGroupDefinitionArn(String gameServerContainerGroupDefinitionArn) The Amazon Resource Name (ARN) that is assigned to the fleet's game server container group. The ARN value also identifies the specific container group definition version in use.
- Parameters:
gameServerContainerGroupDefinitionArn
- The Amazon Resource Name (ARN) that is assigned to the fleet's game server container group. The ARN value also identifies the specific container group definition version in use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
perInstanceContainerGroupDefinitionName
ContainerFleet.Builder perInstanceContainerGroupDefinitionName(String perInstanceContainerGroupDefinitionName) The name of the fleet's per-instance container group definition.
- Parameters:
perInstanceContainerGroupDefinitionName
- The name of the fleet's per-instance container group definition.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
perInstanceContainerGroupDefinitionArn
ContainerFleet.Builder perInstanceContainerGroupDefinitionArn(String perInstanceContainerGroupDefinitionArn) The Amazon Resource Name (ARN) that is assigned to the fleet's per-instance container group. The ARN value also identifies the specific container group definition version in use.
- Parameters:
perInstanceContainerGroupDefinitionArn
- The Amazon Resource Name (ARN) that is assigned to the fleet's per-instance container group. The ARN value also identifies the specific container group definition version in use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceConnectionPortRange
Sets the value of the InstanceConnectionPortRange property for this object.- Parameters:
instanceConnectionPortRange
- The new value for the InstanceConnectionPortRange property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceConnectionPortRange
default ContainerFleet.Builder instanceConnectionPortRange(Consumer<ConnectionPortRange.Builder> instanceConnectionPortRange) Sets the value of the InstanceConnectionPortRange property for this object. This is a convenience method that creates an instance of theConnectionPortRange.Builder
avoiding the need to create one manually viaConnectionPortRange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceConnectionPortRange(ConnectionPortRange)
.- Parameters:
instanceConnectionPortRange
- a consumer that will call methods onConnectionPortRange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceInboundPermissions
ContainerFleet.Builder instanceInboundPermissions(Collection<IpPermission> instanceInboundPermissions) The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.
- Parameters:
instanceInboundPermissions
- The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceInboundPermissions
The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.
- Parameters:
instanceInboundPermissions
- The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceInboundPermissions
ContainerFleet.Builder instanceInboundPermissions(Consumer<IpPermission.Builder>... instanceInboundPermissions) The IP address ranges and port settings that allow inbound traffic to access game server processes and other processes on this fleet.
This is a convenience method that creates an instance of theIpPermission.Builder
avoiding the need to create one manually viaIpPermission.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceInboundPermissions(List<IpPermission>)
.- Parameters:
instanceInboundPermissions
- a consumer that will call methods onIpPermission.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
gameServerContainerGroupsPerInstance
ContainerFleet.Builder gameServerContainerGroupsPerInstance(Integer gameServerContainerGroupsPerInstance) The number of times to replicate the game server container group on each fleet instance.
- Parameters:
gameServerContainerGroupsPerInstance
- The number of times to replicate the game server container group on each fleet instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maximumGameServerContainerGroupsPerInstance
ContainerFleet.Builder maximumGameServerContainerGroupsPerInstance(Integer maximumGameServerContainerGroupsPerInstance) The calculated maximum number of game server container group that can be deployed on each fleet instance. The calculation depends on the resource needs of the container group and the CPU and memory resources of the fleet's instance type.
- Parameters:
maximumGameServerContainerGroupsPerInstance
- The calculated maximum number of game server container group that can be deployed on each fleet instance. The calculation depends on the resource needs of the container group and the CPU and memory resources of the fleet's instance type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
The Amazon EC2 instance type to use for all instances in the fleet. Instance type determines the computing resources and processing power that's available to host your game servers. This includes including CPU, memory, storage, and networking capacity. You can't update this fleet property.
- Parameters:
instanceType
- The Amazon EC2 instance type to use for all instances in the fleet. Instance type determines the computing resources and processing power that's available to host your game servers. This includes including CPU, memory, storage, and networking capacity. You can't update this fleet property.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
billingType
Indicates whether the fleet uses On-Demand or Spot instances for this fleet. Learn more about when to use On-Demand versus Spot Instances. You can't update this fleet property.
By default, this property is set to
ON_DEMAND
.- Parameters:
billingType
- Indicates whether the fleet uses On-Demand or Spot instances for this fleet. Learn more about when to use On-Demand versus Spot Instances. You can't update this fleet property.By default, this property is set to
ON_DEMAND
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
billingType
Indicates whether the fleet uses On-Demand or Spot instances for this fleet. Learn more about when to use On-Demand versus Spot Instances. You can't update this fleet property.
By default, this property is set to
ON_DEMAND
.- Parameters:
billingType
- Indicates whether the fleet uses On-Demand or Spot instances for this fleet. Learn more about when to use On-Demand versus Spot Instances. You can't update this fleet property.By default, this property is set to
ON_DEMAND
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
A meaningful description of the container fleet.
- Parameters:
description
- A meaningful description of the container fleet.- 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.
-
metricGroups
The name of an Amazon Web Services CloudWatch metric group to add this fleet to. Metric groups aggregate metrics for multiple fleets.
- Parameters:
metricGroups
- The name of an Amazon Web Services CloudWatch metric group to add this fleet to. Metric groups aggregate metrics for multiple fleets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricGroups
The name of an Amazon Web Services CloudWatch metric group to add this fleet to. Metric groups aggregate metrics for multiple fleets.
- Parameters:
metricGroups
- The name of an Amazon Web Services CloudWatch metric group to add this fleet to. Metric groups aggregate metrics for multiple fleets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
newGameSessionProtectionPolicy
Determines whether Amazon GameLift Servers can shut down game sessions on the fleet that are actively running and hosting players. Amazon GameLift Servers might prompt an instance shutdown when scaling down fleet capacity or when retiring unhealthy instances. You can also set game session protection for individual game sessions using UpdateGameSession.
-
NoProtection -- Game sessions can be shut down during active gameplay.
-
FullProtection -- Game sessions in
ACTIVE
status can't be shut down.
- Parameters:
newGameSessionProtectionPolicy
- Determines whether Amazon GameLift Servers can shut down game sessions on the fleet that are actively running and hosting players. Amazon GameLift Servers might prompt an instance shutdown when scaling down fleet capacity or when retiring unhealthy instances. You can also set game session protection for individual game sessions using UpdateGameSession.-
NoProtection -- Game sessions can be shut down during active gameplay.
-
FullProtection -- Game sessions in
ACTIVE
status can't be shut down.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
newGameSessionProtectionPolicy
ContainerFleet.Builder newGameSessionProtectionPolicy(ProtectionPolicy newGameSessionProtectionPolicy) Determines whether Amazon GameLift Servers can shut down game sessions on the fleet that are actively running and hosting players. Amazon GameLift Servers might prompt an instance shutdown when scaling down fleet capacity or when retiring unhealthy instances. You can also set game session protection for individual game sessions using UpdateGameSession.
-
NoProtection -- Game sessions can be shut down during active gameplay.
-
FullProtection -- Game sessions in
ACTIVE
status can't be shut down.
- Parameters:
newGameSessionProtectionPolicy
- Determines whether Amazon GameLift Servers can shut down game sessions on the fleet that are actively running and hosting players. Amazon GameLift Servers might prompt an instance shutdown when scaling down fleet capacity or when retiring unhealthy instances. You can also set game session protection for individual game sessions using UpdateGameSession.-
NoProtection -- Game sessions can be shut down during active gameplay.
-
FullProtection -- Game sessions in
ACTIVE
status can't be shut down.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
gameSessionCreationLimitPolicy
ContainerFleet.Builder gameSessionCreationLimitPolicy(GameSessionCreationLimitPolicy gameSessionCreationLimitPolicy) A policy that limits the number of game sessions that each individual player can create on instances in this fleet. The limit applies for a specified span of time.
- Parameters:
gameSessionCreationLimitPolicy
- A policy that limits the number of game sessions that each individual player can create on instances in this fleet. The limit applies for a specified span of time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gameSessionCreationLimitPolicy
default ContainerFleet.Builder gameSessionCreationLimitPolicy(Consumer<GameSessionCreationLimitPolicy.Builder> gameSessionCreationLimitPolicy) A policy that limits the number of game sessions that each individual player can create on instances in this fleet. The limit applies for a specified span of time.
This is a convenience method that creates an instance of theGameSessionCreationLimitPolicy.Builder
avoiding the need to create one manually viaGameSessionCreationLimitPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togameSessionCreationLimitPolicy(GameSessionCreationLimitPolicy)
.- Parameters:
gameSessionCreationLimitPolicy
- a consumer that will call methods onGameSessionCreationLimitPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the container fleet.
-
PENDING
-- A new container fleet has been requested. -
CREATING
-- A new container fleet resource is being created. -
CREATED
-- A new container fleet resource has been created. No fleet instances have been deployed. -
ACTIVATING
-- New container fleet instances are being deployed. -
ACTIVE
-- The container fleet has been deployed and is ready to host game sessions. -
UPDATING
-- Updates to the container fleet is being updated. A deployment is in progress.
- Parameters:
status
- The current status of the container fleet.-
PENDING
-- A new container fleet has been requested. -
CREATING
-- A new container fleet resource is being created. -
CREATED
-- A new container fleet resource has been created. No fleet instances have been deployed. -
ACTIVATING
-- New container fleet instances are being deployed. -
ACTIVE
-- The container fleet has been deployed and is ready to host game sessions. -
UPDATING
-- Updates to the container fleet is being updated. A deployment is in progress.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
status
The current status of the container fleet.
-
PENDING
-- A new container fleet has been requested. -
CREATING
-- A new container fleet resource is being created. -
CREATED
-- A new container fleet resource has been created. No fleet instances have been deployed. -
ACTIVATING
-- New container fleet instances are being deployed. -
ACTIVE
-- The container fleet has been deployed and is ready to host game sessions. -
UPDATING
-- Updates to the container fleet is being updated. A deployment is in progress.
- Parameters:
status
- The current status of the container fleet.-
PENDING
-- A new container fleet has been requested. -
CREATING
-- A new container fleet resource is being created. -
CREATED
-- A new container fleet resource has been created. No fleet instances have been deployed. -
ACTIVATING
-- New container fleet instances are being deployed. -
ACTIVE
-- The container fleet has been deployed and is ready to host game sessions. -
UPDATING
-- Updates to the container fleet is being updated. A deployment is in progress.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
deploymentDetails
Information about the most recent deployment for the container fleet.
- Parameters:
deploymentDetails
- Information about the most recent deployment for the container fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deploymentDetails
default ContainerFleet.Builder deploymentDetails(Consumer<DeploymentDetails.Builder> deploymentDetails) Information about the most recent deployment for the container fleet.
This is a convenience method that creates an instance of theDeploymentDetails.Builder
avoiding the need to create one manually viaDeploymentDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todeploymentDetails(DeploymentDetails)
.- Parameters:
deploymentDetails
- a consumer that will call methods onDeploymentDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
logConfiguration
The method that is used to collect container logs for the fleet. Amazon GameLift Servers saves all standard output for each container in logs, including game session logs.
-
CLOUDWATCH
-- Send logs to an Amazon CloudWatch log group that you define. Each container emits a log stream, which is organized in the log group. -
S3
-- Store logs in an Amazon S3 bucket that you define. -
NONE
-- Don't collect container logs.
- Parameters:
logConfiguration
- The method that is used to collect container logs for the fleet. Amazon GameLift Servers saves all standard output for each container in logs, including game session logs.-
CLOUDWATCH
-- Send logs to an Amazon CloudWatch log group that you define. Each container emits a log stream, which is organized in the log group. -
S3
-- Store logs in an Amazon S3 bucket that you define. -
NONE
-- Don't collect container logs.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
logConfiguration
default ContainerFleet.Builder logConfiguration(Consumer<LogConfiguration.Builder> logConfiguration) The method that is used to collect container logs for the fleet. Amazon GameLift Servers saves all standard output for each container in logs, including game session logs.
-
CLOUDWATCH
-- Send logs to an Amazon CloudWatch log group that you define. Each container emits a log stream, which is organized in the log group. -
S3
-- Store logs in an Amazon S3 bucket that you define. -
NONE
-- Don't collect container logs.
LogConfiguration.Builder
avoiding the need to create one manually viaLogConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tologConfiguration(LogConfiguration)
.- Parameters:
logConfiguration
- a consumer that will call methods onLogConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
locationAttributes
ContainerFleet.Builder locationAttributes(Collection<ContainerFleetLocationAttributes> locationAttributes) Information about the container fleet's remote locations where fleet instances are deployed.
- Parameters:
locationAttributes
- Information about the container fleet's remote locations where fleet instances are deployed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
locationAttributes
Information about the container fleet's remote locations where fleet instances are deployed.
- Parameters:
locationAttributes
- Information about the container fleet's remote locations where fleet instances are deployed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
locationAttributes
ContainerFleet.Builder locationAttributes(Consumer<ContainerFleetLocationAttributes.Builder>... locationAttributes) Information about the container fleet's remote locations where fleet instances are deployed.
This is a convenience method that creates an instance of theContainerFleetLocationAttributes.Builder
avoiding the need to create one manually viaContainerFleetLocationAttributes.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolocationAttributes(List<ContainerFleetLocationAttributes>)
.- Parameters:
locationAttributes
- a consumer that will call methods onContainerFleetLocationAttributes.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-