Interface UpdateDevicePoolRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateDevicePoolRequest.Builder,
,UpdateDevicePoolRequest> DeviceFarmRequest.Builder
,SdkBuilder<UpdateDevicePoolRequest.Builder,
,UpdateDevicePoolRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateDevicePoolRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the Device Farm device pool to update.clearMaxDevices
(Boolean clearMaxDevices) Sets whether themaxDevices
parameter applies to your device pool.description
(String description) A description of the device pool to update.maxDevices
(Integer maxDevices) The number of devices that Device Farm can add to your device pool.A string that represents the name of the device pool to update.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.rules
(Collection<Rule> rules) Represents the rules to modify for the device pool.rules
(Consumer<Rule.Builder>... rules) Represents the rules to modify for the device pool.Represents the rules to modify for the device pool.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.devicefarm.model.DeviceFarmRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
arn
The Amazon Resource Name (ARN) of the Device Farm device pool to update.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the Device Farm device pool to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
A string that represents the name of the device pool to update.
- Parameters:
name
- A string that represents the name of the device pool to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the device pool to update.
- Parameters:
description
- A description of the device pool to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
Represents the rules to modify for the device pool. Updating rules is optional. If you update rules for your request, the update replaces the existing rules.
- Parameters:
rules
- Represents the rules to modify for the device pool. Updating rules is optional. If you update rules for your request, the update replaces the existing rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
Represents the rules to modify for the device pool. Updating rules is optional. If you update rules for your request, the update replaces the existing rules.
- Parameters:
rules
- Represents the rules to modify for the device pool. Updating rules is optional. If you update rules for your request, the update replaces the existing rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
Represents the rules to modify for the device pool. Updating rules is optional. If you update rules for your request, the update replaces the existing rules.
This is a convenience method that creates an instance of theRule.Builder
avoiding the need to create one manually viaRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torules(List<Rule>)
.- Parameters:
rules
- a consumer that will call methods onRule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxDevices
The number of devices that Device Farm can add to your device pool. Device Farm adds devices that are available and that meet the criteria that you assign for the
rules
parameter. Depending on how many devices meet these constraints, your device pool might contain fewer devices than the value for this parameter.By specifying the maximum number of devices, you can control the costs that you incur by running tests.
If you use this parameter in your request, you cannot use the
clearMaxDevices
parameter in the same request.- Parameters:
maxDevices
- The number of devices that Device Farm can add to your device pool. Device Farm adds devices that are available and that meet the criteria that you assign for therules
parameter. Depending on how many devices meet these constraints, your device pool might contain fewer devices than the value for this parameter.By specifying the maximum number of devices, you can control the costs that you incur by running tests.
If you use this parameter in your request, you cannot use the
clearMaxDevices
parameter in the same request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clearMaxDevices
Sets whether the
maxDevices
parameter applies to your device pool. If you set this parameter totrue
, themaxDevices
parameter does not apply, and Device Farm does not limit the number of devices that it adds to your device pool. In this case, Device Farm adds all available devices that meet the criteria specified in therules
parameter.If you use this parameter in your request, you cannot use the
maxDevices
parameter in the same request.- Parameters:
clearMaxDevices
- Sets whether themaxDevices
parameter applies to your device pool. If you set this parameter totrue
, themaxDevices
parameter does not apply, and Device Farm does not limit the number of devices that it adds to your device pool. In this case, Device Farm adds all available devices that meet the criteria specified in therules
parameter.If you use this parameter in your request, you cannot use the
maxDevices
parameter in the same request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateDevicePoolRequest.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
UpdateDevicePoolRequest.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.
-