Class CfnDevicePoolProps.Builder
java.lang.Object
software.amazon.awscdk.services.devicefarm.CfnDevicePoolProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDevicePoolProps>
- Enclosing interface:
CfnDevicePoolProps
@Stability(Stable)
public static final class CfnDevicePoolProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDevicePoolProps>
A builder for
CfnDevicePoolProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnDevicePoolProps.getDescription()
maxDevices
(Number maxDevices) Sets the value ofCfnDevicePoolProps.getMaxDevices()
Sets the value ofCfnDevicePoolProps.getName()
projectArn
(String projectArn) Sets the value ofCfnDevicePoolProps.getProjectArn()
Sets the value ofCfnDevicePoolProps.getRules()
rules
(IResolvable rules) Sets the value ofCfnDevicePoolProps.getRules()
Sets the value ofCfnDevicePoolProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnDevicePoolProps.getName()
- Parameters:
name
- The device pool's name. This parameter is required.- Returns:
this
-
projectArn
Sets the value ofCfnDevicePoolProps.getProjectArn()
- Parameters:
projectArn
- The ARN of the project for the device pool. This parameter is required.- Returns:
this
-
rules
Sets the value ofCfnDevicePoolProps.getRules()
- Parameters:
rules
- The device pool's rules. This parameter is required.- Returns:
this
-
rules
Sets the value ofCfnDevicePoolProps.getRules()
- Parameters:
rules
- The device pool's rules. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnDevicePoolProps.getDescription()
- Parameters:
description
- The device pool's description.- Returns:
this
-
maxDevices
Sets the value ofCfnDevicePoolProps.getMaxDevices()
- 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 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.
- Returns:
this
-
tags
Sets the value ofCfnDevicePoolProps.getTags()
- Parameters:
tags
- An array of key-value pairs to apply to this resource. For more information, see Tag in the guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDevicePoolProps>
- Returns:
- a new instance of
CfnDevicePoolProps
- Throws:
NullPointerException
- if any required attribute was not provided
-