Interface UpdateFleetRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateFleetRequest.Builder,
,UpdateFleetRequest> DeadlineRequest.Builder
,SdkBuilder<UpdateFleetRequest.Builder,
,UpdateFleetRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateFleetRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) The unique token which the server uses to recognize retries of the same request.default UpdateFleetRequest.Builder
configuration
(Consumer<FleetConfiguration.Builder> configuration) The fleet configuration to update.configuration
(FleetConfiguration configuration) The fleet configuration to update.description
(String description) The description of the fleet to update.displayName
(String displayName) The display name of the fleet to update.The farm ID to update.The fleet ID to update.default UpdateFleetRequest.Builder
hostConfiguration
(Consumer<HostConfiguration.Builder> hostConfiguration) Provides a script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet.hostConfiguration
(HostConfiguration hostConfiguration) Provides a script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet.maxWorkerCount
(Integer maxWorkerCount) The maximum number of workers in the fleet.minWorkerCount
(Integer minWorkerCount) The minimum number of workers in the fleet.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The IAM role ARN that the fleet's workers assume while running jobs.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.deadline.model.DeadlineRequest.Builder
build
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
-
clientToken
The unique token which the server uses to recognize retries of the same request.
- Parameters:
clientToken
- The unique token which the server uses to recognize retries of the same request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
farmId
The farm ID to update.
- Parameters:
farmId
- The farm ID to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fleetId
The fleet ID to update.
- Parameters:
fleetId
- The fleet ID to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
displayName
The display name of the fleet to update.
This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
- Parameters:
displayName
- The display name of the fleet to update.This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the fleet to update.
This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
- Parameters:
description
- The description of the fleet to update.This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
roleArn
The IAM role ARN that the fleet's workers assume while running jobs.
- Parameters:
roleArn
- The IAM role ARN that the fleet's workers assume while running jobs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minWorkerCount
The minimum number of workers in the fleet.
- Parameters:
minWorkerCount
- The minimum number of workers in the fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxWorkerCount
The maximum number of workers in the fleet.
Deadline Cloud limits the number of workers to less than or equal to the fleet's maximum worker count. The service maintains eventual consistency for the worker count. If you make multiple rapid calls to
CreateWorker
before the field updates, you might exceed your fleet's maximum worker count. For example, if yourmaxWorkerCount
is 10 and you currently have 9 workers, making two quickCreateWorker
calls might successfully create 2 workers instead of 1, resulting in 11 total workers.- Parameters:
maxWorkerCount
- The maximum number of workers in the fleet.Deadline Cloud limits the number of workers to less than or equal to the fleet's maximum worker count. The service maintains eventual consistency for the worker count. If you make multiple rapid calls to
CreateWorker
before the field updates, you might exceed your fleet's maximum worker count. For example, if yourmaxWorkerCount
is 10 and you currently have 9 workers, making two quickCreateWorker
calls might successfully create 2 workers instead of 1, resulting in 11 total workers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
The fleet configuration to update.
- Parameters:
configuration
- The fleet configuration to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default UpdateFleetRequest.Builder configuration(Consumer<FleetConfiguration.Builder> configuration) The fleet configuration to update.
This is a convenience method that creates an instance of theFleetConfiguration.Builder
avoiding the need to create one manually viaFleetConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfiguration(FleetConfiguration)
.- Parameters:
configuration
- a consumer that will call methods onFleetConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
hostConfiguration
Provides a script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet.
- Parameters:
hostConfiguration
- Provides a script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostConfiguration
default UpdateFleetRequest.Builder hostConfiguration(Consumer<HostConfiguration.Builder> hostConfiguration) Provides a script that runs as a worker is starting up that you can use to provide additional configuration for workers in your fleet.
This is a convenience method that creates an instance of theHostConfiguration.Builder
avoiding the need to create one manually viaHostConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohostConfiguration(HostConfiguration)
.- Parameters:
hostConfiguration
- a consumer that will call methods onHostConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateFleetRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateFleetRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-