Class CfnInstanceProfileMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.devicefarm.CfnInstanceProfileMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceProfileMixinProps>
- Enclosing interface:
CfnInstanceProfileMixinProps
@Stability(Stable)
public static final class CfnInstanceProfileMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceProfileMixinProps>
A builder for
CfnInstanceProfileMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnInstanceProfileMixinProps.getDescription()excludeAppPackagesFromCleanup(List<String> excludeAppPackagesFromCleanup) Sets the value ofCfnInstanceProfileMixinProps.getExcludeAppPackagesFromCleanup()Sets the value ofCfnInstanceProfileMixinProps.getName()packageCleanup(Boolean packageCleanup) Sets the value ofCfnInstanceProfileMixinProps.getPackageCleanup()packageCleanup(IResolvable packageCleanup) Sets the value ofCfnInstanceProfileMixinProps.getPackageCleanup()rebootAfterUse(Boolean rebootAfterUse) Sets the value ofCfnInstanceProfileMixinProps.getRebootAfterUse()rebootAfterUse(IResolvable rebootAfterUse) Sets the value ofCfnInstanceProfileMixinProps.getRebootAfterUse()Sets the value ofCfnInstanceProfileMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnInstanceProfileMixinProps.getDescription()- Parameters:
description- The description of the instance profile.- Returns:
this
-
excludeAppPackagesFromCleanup
@Stability(Stable) public CfnInstanceProfileMixinProps.Builder excludeAppPackagesFromCleanup(List<String> excludeAppPackagesFromCleanup) Sets the value ofCfnInstanceProfileMixinProps.getExcludeAppPackagesFromCleanup()- 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. The list of packages is considered only if you setpackageCleanuptotrue.- Returns:
this
-
name
Sets the value ofCfnInstanceProfileMixinProps.getName()- Parameters:
name- The name of the instance profile.- Returns:
this
-
packageCleanup
@Stability(Stable) public CfnInstanceProfileMixinProps.Builder packageCleanup(Boolean packageCleanup) Sets the value ofCfnInstanceProfileMixinProps.getPackageCleanup()- Parameters:
packageCleanup- When set totrue, Device Farm removes app packages after a test run. The default value isfalsefor private devices.- Returns:
this
-
packageCleanup
@Stability(Stable) public CfnInstanceProfileMixinProps.Builder packageCleanup(IResolvable packageCleanup) Sets the value ofCfnInstanceProfileMixinProps.getPackageCleanup()- Parameters:
packageCleanup- When set totrue, Device Farm removes app packages after a test run. The default value isfalsefor private devices.- Returns:
this
-
rebootAfterUse
@Stability(Stable) public CfnInstanceProfileMixinProps.Builder rebootAfterUse(Boolean rebootAfterUse) Sets the value ofCfnInstanceProfileMixinProps.getRebootAfterUse()- Parameters:
rebootAfterUse- When set totrue, Device Farm reboots the instance after a test run. The default value istrue.- Returns:
this
-
rebootAfterUse
@Stability(Stable) public CfnInstanceProfileMixinProps.Builder rebootAfterUse(IResolvable rebootAfterUse) Sets the value ofCfnInstanceProfileMixinProps.getRebootAfterUse()- Parameters:
rebootAfterUse- When set totrue, Device Farm reboots the instance after a test run. The default value istrue.- Returns:
this
-
tags
Sets the value ofCfnInstanceProfileMixinProps.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<CfnInstanceProfileMixinProps>- Returns:
- a new instance of
CfnInstanceProfileMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-