Interface DevicePool.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DevicePool.Builder,DevicePool>,SdkBuilder<DevicePool.Builder,DevicePool>,SdkPojo
- Enclosing class:
- DevicePool
public static interface DevicePool.Builder extends SdkPojo, CopyableBuilder<DevicePool.Builder,DevicePool>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DevicePool.Builderarn(String arn)The device pool's ARN.DevicePool.Builderdescription(String description)The device pool's description.DevicePool.BuildermaxDevices(Integer maxDevices)The number of devices that Device Farm can add to your device pool.DevicePool.Buildername(String name)The device pool's name.DevicePool.Builderrules(Collection<Rule> rules)Information about the device pool's rules.DevicePool.Builderrules(Consumer<Rule.Builder>... rules)Information about the device pool's rules.DevicePool.Builderrules(Rule... rules)Information about the device pool's rules.DevicePool.Buildertype(String type)The device pool's type.DevicePool.Buildertype(DevicePoolType type)The device pool's type.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
arn
DevicePool.Builder arn(String arn)
The device pool's ARN.
- Parameters:
arn- The device pool's ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
DevicePool.Builder name(String 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
DevicePool.Builder description(String 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.
-
type
DevicePool.Builder type(String type)
The device pool's type.
Allowed values include:
-
CURATED: A device pool that is created and managed by AWS Device Farm.
-
PRIVATE: A device pool that is created and managed by the device pool developer.
- Parameters:
type- The device pool's type.Allowed values include:
-
CURATED: A device pool that is created and managed by AWS Device Farm.
-
PRIVATE: A device pool that is created and managed by the device pool developer.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DevicePoolType,DevicePoolType
-
-
type
DevicePool.Builder type(DevicePoolType type)
The device pool's type.
Allowed values include:
-
CURATED: A device pool that is created and managed by AWS Device Farm.
-
PRIVATE: A device pool that is created and managed by the device pool developer.
- Parameters:
type- The device pool's type.Allowed values include:
-
CURATED: A device pool that is created and managed by AWS Device Farm.
-
PRIVATE: A device pool that is created and managed by the device pool developer.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DevicePoolType,DevicePoolType
-
-
rules
DevicePool.Builder rules(Collection<Rule> rules)
Information about the device pool's rules.
- Parameters:
rules- Information about the device pool's rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
DevicePool.Builder rules(Rule... rules)
Information about the device pool's rules.
- Parameters:
rules- Information about the device pool's rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
DevicePool.Builder rules(Consumer<Rule.Builder>... rules)
Information about 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 to#rules(List.) - 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:
#rules(java.util.Collection)
-
maxDevices
DevicePool.Builder maxDevices(Integer 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.
-
-