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 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

      InstanceProfile.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

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

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

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

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

      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 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.
    • 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.