Interface UpdateWorkerRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateWorkerRequest.Builder,
,UpdateWorkerRequest> DeadlineRequest.Builder
,SdkBuilder<UpdateWorkerRequest.Builder,
,UpdateWorkerRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateWorkerRequest
@Mutable
@NotThreadSafe
public static interface UpdateWorkerRequest.Builder
extends DeadlineRequest.Builder, SdkPojo, CopyableBuilder<UpdateWorkerRequest.Builder,UpdateWorkerRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondefault UpdateWorkerRequest.Builder
capabilities
(Consumer<WorkerCapabilities.Builder> capabilities) The worker capabilities to update.capabilities
(WorkerCapabilities capabilities) The worker capabilities to update.The farm ID to update.The fleet ID to update.default UpdateWorkerRequest.Builder
hostProperties
(Consumer<HostPropertiesRequest.Builder> hostProperties) The host properties to update.hostProperties
(HostPropertiesRequest hostProperties) The host properties to update.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The worker status to update.status
(UpdatedWorkerStatus status) The worker status to update.The worker ID to update.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
-
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.
-
workerId
The worker ID to update.
- Parameters:
workerId
- The worker ID to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The worker status to update.
- Parameters:
status
- The worker status to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The worker status to update.
- Parameters:
status
- The worker status to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
capabilities
The worker capabilities to update.
- Parameters:
capabilities
- The worker capabilities to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capabilities
The worker capabilities to update.
This is a convenience method that creates an instance of theWorkerCapabilities.Builder
avoiding the need to create one manually viaWorkerCapabilities.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapabilities(WorkerCapabilities)
.- Parameters:
capabilities
- a consumer that will call methods onWorkerCapabilities.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
hostProperties
The host properties to update.
- Parameters:
hostProperties
- The host properties to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostProperties
default UpdateWorkerRequest.Builder hostProperties(Consumer<HostPropertiesRequest.Builder> hostProperties) The host properties to update.
This is a convenience method that creates an instance of theHostPropertiesRequest.Builder
avoiding the need to create one manually viaHostPropertiesRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohostProperties(HostPropertiesRequest)
.- Parameters:
hostProperties
- a consumer that will call methods onHostPropertiesRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateWorkerRequest.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
UpdateWorkerRequest.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.
-