Interface CreateFleetRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateFleetRequest.Builder,
,CreateFleetRequest> DeadlineRequest.Builder
,SdkBuilder<CreateFleetRequest.Builder,
,CreateFleetRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateFleetRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) The unique token which the server uses to recognize retries of the same request.default CreateFleetRequest.Builder
configuration
(Consumer<FleetConfiguration.Builder> configuration) The configuration settings for the fleet.configuration
(FleetConfiguration configuration) The configuration settings for the fleet.description
(String description) The description of the fleet.displayName
(String displayName) The display name of the fleet.The farm ID of the farm to connect to the fleet.default CreateFleetRequest.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 for the fleet.minWorkerCount
(Integer minWorkerCount) The minimum number of workers for 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 for the role that the fleet's workers will use.Each tag consists of a tag key and a tag value.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 of the farm to connect to the fleet.
- Parameters:
farmId
- The farm ID of the farm to connect to the fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
displayName
The display name of the fleet.
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.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.
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.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 for the role that the fleet's workers will use.
- Parameters:
roleArn
- The IAM role ARN for the role that the fleet's workers will use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minWorkerCount
The minimum number of workers for the fleet.
- Parameters:
minWorkerCount
- The minimum number of workers for the fleet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxWorkerCount
The maximum number of workers for 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 for 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 configuration settings for the fleet. Customer managed fleets are self-managed. Service managed Amazon EC2 fleets are managed by Deadline Cloud.
- Parameters:
configuration
- The configuration settings for the fleet. Customer managed fleets are self-managed. Service managed Amazon EC2 fleets are managed by Deadline Cloud.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default CreateFleetRequest.Builder configuration(Consumer<FleetConfiguration.Builder> configuration) The configuration settings for the fleet. Customer managed fleets are self-managed. Service managed Amazon EC2 fleets are managed by Deadline Cloud.
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:
-
tags
Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings.
- Parameters:
tags
- Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 CreateFleetRequest.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
CreateFleetRequest.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
CreateFleetRequest.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.
-