Interface InstanceProfile.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceProfile.Builder,
,InstanceProfile> SdkBuilder<InstanceProfile.Builder,
,InstanceProfile> SdkPojo
- Enclosing class:
InstanceProfile
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the instance profile.description
(String description) The description of the instance profile.excludeAppPackagesFromCleanup
(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.excludeAppPackagesFromCleanup
(Collection<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.rebootAfterUse
(Boolean rebootAfterUse) When set totrue
, Device Farm reboots the instance after a test run.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 Details
-
arn
The Amazon Resource Name (ARN) of the instance profile.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageCleanup
When set to
true
, Device Farm removes app packages after a test run. The default value isfalse
for private devices.- Parameters:
packageCleanup
- When set totrue
, Device Farm removes app packages after a test run. The default value isfalse
for private devices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeAppPackagesFromCleanup
InstanceProfile.Builder excludeAppPackagesFromCleanup(Collection<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
packageCleanup
totrue
.- 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 set
packageCleanup
totrue
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
packageCleanup
totrue
.- 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 set
packageCleanup
totrue
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rebootAfterUse
When set to
true
, Device Farm reboots the instance after a test run. The default value istrue
.- Parameters:
rebootAfterUse
- When set totrue
, Device Farm reboots the instance after a test run. The default value istrue
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the instance profile.
- Parameters:
name
- The name of the instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the instance profile.
- Parameters:
description
- The description of the instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-