Interface CreateInstanceProfileRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateInstanceProfileRequest.Builder,
,CreateInstanceProfileRequest> DeviceFarmRequest.Builder
,SdkBuilder<CreateInstanceProfileRequest.Builder,
,CreateInstanceProfileRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateInstanceProfileRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) The description of your instance profile.excludeAppPackagesFromCleanup
(String... excludeAppPackagesFromCleanup) An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run.excludeAppPackagesFromCleanup
(Collection<String> excludeAppPackagesFromCleanup) An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run.The name of your instance profile.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.devicefarm.model.DeviceFarmRequest.Builder
build
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
-
name
The name of your instance profile.
- Parameters:
name
- The name of your instance profile.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of your instance profile.
- Parameters:
description
- The description of your 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
CreateInstanceProfileRequest.Builder excludeAppPackagesFromCleanup(Collection<String> excludeAppPackagesFromCleanup) An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run.
The list of packages is considered only if you set
packageCleanup
totrue
.- Parameters:
excludeAppPackagesFromCleanup
- An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run.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
CreateInstanceProfileRequest.Builder excludeAppPackagesFromCleanup(String... excludeAppPackagesFromCleanup) An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run.
The list of packages is considered only if you set
packageCleanup
totrue
.- Parameters:
excludeAppPackagesFromCleanup
- An array of strings that specifies the list of app packages that should not be cleaned up from the device after a test run.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.
-
overrideConfiguration
CreateInstanceProfileRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateInstanceProfileRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-