Class CfnDevicePoolMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.devicefarm.CfnDevicePoolMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDevicePoolMixinProps>
- Enclosing interface:
CfnDevicePoolMixinProps
@Stability(Stable)
public static final class CfnDevicePoolMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDevicePoolMixinProps>
A builder for
CfnDevicePoolMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnDevicePoolMixinProps.getDescription()maxDevices(Number maxDevices) Sets the value ofCfnDevicePoolMixinProps.getMaxDevices()Sets the value ofCfnDevicePoolMixinProps.getName()projectArn(String projectArn) Sets the value ofCfnDevicePoolMixinProps.getProjectArn()Sets the value ofCfnDevicePoolMixinProps.getRules()rules(IResolvable rules) Sets the value ofCfnDevicePoolMixinProps.getRules()Sets the value ofCfnDevicePoolMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnDevicePoolMixinProps.getDescription()- Parameters:
description- The device pool's description.- Returns:
this
-
maxDevices
Sets the value ofCfnDevicePoolMixinProps.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 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:
this
-
name
Sets the value ofCfnDevicePoolMixinProps.getName()- Parameters:
name- The device pool's name.- Returns:
this
-
projectArn
Sets the value ofCfnDevicePoolMixinProps.getProjectArn()- Parameters:
projectArn- The ARN of the project for the device pool.- Returns:
this
-
rules
Sets the value ofCfnDevicePoolMixinProps.getRules()- Parameters:
rules- The device pool's rules.- Returns:
this
-
rules
Sets the value ofCfnDevicePoolMixinProps.getRules()- Parameters:
rules- The device pool's rules.- Returns:
this
-
tags
Sets the value ofCfnDevicePoolMixinProps.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnDevicePoolMixinProps>- Returns:
- a new instance of
CfnDevicePoolMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-