Interface InstanceProfile.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InstanceProfile.Builder,InstanceProfile>,SdkBuilder<InstanceProfile.Builder,InstanceProfile>,SdkPojo
- Enclosing class:
- InstanceProfile
public static interface InstanceProfile.Builder extends SdkPojo, CopyableBuilder<InstanceProfile.Builder,InstanceProfile>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstanceProfile.Builderarn(String arn)The Amazon Resource Name (ARN) of the instance profile.InstanceProfile.Builderdescription(String description)The description of the instance profile.InstanceProfile.BuilderexcludeAppPackagesFromCleanup(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.InstanceProfile.BuilderexcludeAppPackagesFromCleanup(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.InstanceProfile.Buildername(String name)The name of the instance profile.InstanceProfile.BuilderpackageCleanup(Boolean packageCleanup)When set totrue, Device Farm removes app packages after a test run.InstanceProfile.BuilderrebootAfterUse(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 Detail
-
arn
InstanceProfile.Builder arn(String 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
InstanceProfile.Builder packageCleanup(Boolean packageCleanup)
When set to
true, Device Farm removes app packages after a test run. The default value isfalsefor private devices.- Parameters:
packageCleanup- When set totrue, Device Farm removes app packages after a test run. The default value isfalsefor 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
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.The list of packages is considered only if you set
packageCleanuptotrue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeAppPackagesFromCleanup
InstanceProfile.Builder 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.
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.The list of packages is considered only if you set
packageCleanuptotrue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rebootAfterUse
InstanceProfile.Builder rebootAfterUse(Boolean 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
InstanceProfile.Builder name(String 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
InstanceProfile.Builder description(String 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.
-
-