Class CfnInstanceProfilePropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.devicefarm.CfnInstanceProfilePropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceProfilePropsMixin>
- Enclosing class:
CfnInstanceProfilePropsMixin
@Stability(Stable)
public static final class CfnInstanceProfilePropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceProfilePropsMixin>
A fluent builder for
CfnInstanceProfilePropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) description(String description) The description of the instance profile.excludeAppPackagesFromCleanup(List<String> excludeAppPackagesFromCleanup) An array of strings containing the list of app packages that should not be cleaned up from the device after a test run completes.The name of the instance profile.packageCleanup(Boolean packageCleanup) When set totrue, Device Farm removes app packages after a test run.packageCleanup(IResolvable packageCleanup) When set totrue, Device Farm removes app packages after a test run.rebootAfterUse(Boolean rebootAfterUse) When set totrue, Device Farm reboots the instance after a test run.rebootAfterUse(IResolvable rebootAfterUse) When set totrue, Device Farm reboots the instance after a test run.An array of key-value pairs to apply to this resource.
-
Method Details
-
create
@Stability(Stable) public static CfnInstanceProfilePropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnInstanceProfilePropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnInstanceProfilePropsMixin.Builder.
-
description
The description of the instance profile.- Parameters:
description- The description of the instance profile. This parameter is required.- Returns:
this- See Also:
-
excludeAppPackagesFromCleanup
@Stability(Stable) public CfnInstanceProfilePropsMixin.Builder excludeAppPackagesFromCleanup(List<String> excludeAppPackagesFromCleanup) An array of strings containing the list of app packages that should not be cleaned up from the device after a test run completes.The list of packages is considered only if you set
packageCleanuptotrue.- Parameters:
excludeAppPackagesFromCleanup- An array of strings containing the list of app packages that should not be cleaned up from the device after a test run completes. This parameter is required.- Returns:
this- See Also:
-
name
The name of the instance profile.- Parameters:
name- The name of the instance profile. This parameter is required.- Returns:
this- See Also:
-
packageCleanup
@Stability(Stable) public CfnInstanceProfilePropsMixin.Builder packageCleanup(Boolean packageCleanup) When set totrue, Device Farm removes app packages after a test run.The default value is
falsefor private devices.- Parameters:
packageCleanup- When set totrue, Device Farm removes app packages after a test run. This parameter is required.- Returns:
this- See Also:
-
packageCleanup
@Stability(Stable) public CfnInstanceProfilePropsMixin.Builder packageCleanup(IResolvable packageCleanup) When set totrue, Device Farm removes app packages after a test run.The default value is
falsefor private devices.- Parameters:
packageCleanup- When set totrue, Device Farm removes app packages after a test run. This parameter is required.- Returns:
this- See Also:
-
rebootAfterUse
@Stability(Stable) public CfnInstanceProfilePropsMixin.Builder rebootAfterUse(Boolean rebootAfterUse) When set totrue, Device Farm reboots the instance after a test run.The default value is
true.- Parameters:
rebootAfterUse- When set totrue, Device Farm reboots the instance after a test run. This parameter is required.- Returns:
this- See Also:
-
rebootAfterUse
@Stability(Stable) public CfnInstanceProfilePropsMixin.Builder rebootAfterUse(IResolvable rebootAfterUse) When set totrue, Device Farm reboots the instance after a test run.The default value is
true.- Parameters:
rebootAfterUse- When set totrue, Device Farm reboots the instance after a test run. 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstanceProfilePropsMixin>- Returns:
- a newly built instance of
CfnInstanceProfilePropsMixin.
-