Class CfnDevicePool.Builder
java.lang.Object
software.amazon.awscdk.services.devicefarm.CfnDevicePool.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDevicePool>
- Enclosing class:
CfnDevicePool
@Stability(Stable)
public static final class CfnDevicePool.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDevicePool>
A fluent builder for
CfnDevicePool
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnDevicePool.Builder
description
(String description) The device pool's description.maxDevices
(Number maxDevices) The number of devices that Device Farm can add to your device pool.The device pool's name.projectArn
(String projectArn) The ARN of the project for the device pool.The device pool's rules.rules
(IResolvable rules) The device pool's rules.An array of key-value pairs to apply to this resource.
-
Method Details
-
create
@Stability(Stable) public static CfnDevicePool.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnDevicePool.Builder
.
-
name
The device pool's name.- Parameters:
name
- The device pool's name. This parameter is required.- Returns:
this
- See Also:
-
projectArn
The ARN of the project for the device pool.- Parameters:
projectArn
- The ARN of the project for the device pool. This parameter is required.- Returns:
this
- See Also:
-
rules
The device pool's rules.- Parameters:
rules
- The device pool's rules. This parameter is required.- Returns:
this
- See Also:
-
rules
The device pool's rules.- Parameters:
rules
- The device pool's rules. This parameter is required.- Returns:
this
- See Also:
-
description
The device pool's description.- Parameters:
description
- The device pool's description. This parameter is required.- Returns:
this
- 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
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.
- Parameters:
maxDevices
- The number of devices that Device Farm can add to your device pool. This parameter is required.- Returns:
this
- See Also:
-
tags
An array of key-value pairs to apply to this resource.For more information, see Tag in the guide .
- Parameters:
tags
- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDevicePool>
- Returns:
- a newly built instance of
CfnDevicePool
.
-