Interface CreateInstanceProfileRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<CreateInstanceProfileRequest.Builder,CreateInstanceProfileRequest>, DeviceFarmRequest.Builder, SdkBuilder<CreateInstanceProfileRequest.Builder,CreateInstanceProfileRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
CreateInstanceProfileRequest

public static interface CreateInstanceProfileRequest.Builder extends DeviceFarmRequest.Builder, SdkPojo, CopyableBuilder<CreateInstanceProfileRequest.Builder,CreateInstanceProfileRequest>
  • 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

      CreateInstanceProfileRequest.Builder description(String 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

      CreateInstanceProfileRequest.Builder packageCleanup(Boolean packageCleanup)

      When set to true, Device Farm removes app packages after a test run. The default value is false for private devices.

      Parameters:
      packageCleanup - When set to true, Device Farm removes app packages after a test run. The default value is false 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 to true.

      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 to true.

      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 to true.

      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 to true.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rebootAfterUse

      CreateInstanceProfileRequest.Builder rebootAfterUse(Boolean rebootAfterUse)

      When set to true, Device Farm reboots the instance after a test run. The default value is true.

      Parameters:
      rebootAfterUse - When set to true, Device Farm reboots the instance after a test run. The default value is true.
      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 interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.