Interface CreateInstanceProfileRequest.Builder

    • Method Detail

      • name

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