Interface CreateDevicePoolRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateDevicePoolRequest.Builder,,CreateDevicePoolRequest> DeviceFarmRequest.Builder,SdkBuilder<CreateDevicePoolRequest.Builder,,CreateDevicePoolRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateDevicePoolRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) The device pool's description.maxDevices(Integer maxDevices) The number of devices that Device Farm can add to your device pool.The device pool's name.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.projectArn(String projectArn) The ARN of the project for the device pool.rules(Collection<Rule> rules) The device pool's rules.rules(Consumer<Rule.Builder>... rules) The device pool's rules.The device pool's rules.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.devicefarm.model.DeviceFarmRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
projectArn
The ARN of the project for the device pool.
- Parameters:
projectArn- The ARN of the project for the device pool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The device pool's name.
- Parameters:
name- The device pool's name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The device pool's description.
- Parameters:
description- The device pool's description.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The device pool's rules.
- Parameters:
rules- The device pool's rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The device pool's rules.
- Parameters:
rules- The device pool's rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
The device pool's rules.
This is a convenience method that creates an instance of theRule.Builderavoiding the need to create one manually viaRule.builder().When the
Consumercompletes,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 meet the criteria that you assign for the
rulesparameter. 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.
- Parameters:
maxDevices- The number of devices that Device Farm can add to your device pool. Device Farm adds devices that are available and meet the criteria that you assign for therulesparameter. 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateDevicePoolRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateDevicePoolRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-