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