Interface UpdateDevicePoolRequest.Builder

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

public static interface UpdateDevicePoolRequest.Builder extends DeviceFarmRequest.Builder, SdkPojo, CopyableBuilder<UpdateDevicePoolRequest.Builder,UpdateDevicePoolRequest>
  • Method Details

    • arn

      The Amazon Resource Name (ARN) of the Device Farm device pool to update.

      Parameters:
      arn - The Amazon Resource Name (ARN) of the Device Farm device pool to update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      A string that represents the name of the device pool to update.

      Parameters:
      name - A string that represents the name of the device pool to update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      UpdateDevicePoolRequest.Builder description(String description)

      A description of the device pool to update.

      Parameters:
      description - A description of the device pool to update.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rules

      Represents the rules to modify for the device pool. Updating rules is optional. If you update rules for your request, the update replaces the existing rules.

      Parameters:
      rules - Represents the rules to modify for the device pool. Updating rules is optional. If you update rules for your request, the update replaces the existing rules.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rules

      Represents the rules to modify for the device pool. Updating rules is optional. If you update rules for your request, the update replaces the existing rules.

      Parameters:
      rules - Represents the rules to modify for the device pool. Updating rules is optional. If you update rules for your request, the update replaces the existing rules.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rules

      Represents the rules to modify for the device pool. Updating rules is optional. If you update rules for your request, the update replaces the existing rules.

      This is a convenience method that creates an instance of the Rule.Builder avoiding the need to create one manually via Rule.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to rules(List<Rule>).

      Parameters:
      rules - a consumer that will call methods on Rule.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • maxDevices

      UpdateDevicePoolRequest.Builder maxDevices(Integer maxDevices)

      The number of devices that Device Farm can add to your device pool. Device Farm adds devices that are available and that meet the criteria that you assign for the rules parameter. Depending on how many devices meet these constraints, your device pool might contain fewer devices than the value for this parameter.

      By specifying the maximum number of devices, you can control the costs that you incur by running tests.

      If you use this parameter in your request, you cannot use the clearMaxDevices parameter in the same request.

      Parameters:
      maxDevices - The number of devices that Device Farm can add to your device pool. Device Farm adds devices that are available and that meet the criteria that you assign for the rules parameter. Depending on how many devices meet these constraints, your device pool might contain fewer devices than the value for this parameter.

      By specifying the maximum number of devices, you can control the costs that you incur by running tests.

      If you use this parameter in your request, you cannot use the clearMaxDevices parameter in the same request.

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

      UpdateDevicePoolRequest.Builder clearMaxDevices(Boolean clearMaxDevices)

      Sets whether the maxDevices parameter applies to your device pool. If you set this parameter to true, the maxDevices parameter does not apply, and Device Farm does not limit the number of devices that it adds to your device pool. In this case, Device Farm adds all available devices that meet the criteria specified in the rules parameter.

      If you use this parameter in your request, you cannot use the maxDevices parameter in the same request.

      Parameters:
      clearMaxDevices - Sets whether the maxDevices parameter applies to your device pool. If you set this parameter to true, the maxDevices parameter does not apply, and Device Farm does not limit the number of devices that it adds to your device pool. In this case, Device Farm adds all available devices that meet the criteria specified in the rules parameter.

      If you use this parameter in your request, you cannot use the maxDevices parameter in the same request.

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

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