Interface Device.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Device.Builder,Device>, SdkBuilder<Device.Builder,Device>, SdkPojo
Enclosing class:
Device

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

    • arn

      The device's ARN.

      Parameters:
      arn - The device's ARN.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      Device.Builder name(String name)

      The device's display name.

      Parameters:
      name - The device's display name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • manufacturer

      Device.Builder manufacturer(String manufacturer)

      The device's manufacturer name.

      Parameters:
      manufacturer - The device's manufacturer name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • model

      Device.Builder model(String model)

      The device's model name.

      Parameters:
      model - The device's model name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • modelId

      Device.Builder modelId(String modelId)

      The device's model ID.

      Parameters:
      modelId - The device's model ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • formFactor

      Device.Builder formFactor(String formFactor)

      The device's form factor.

      Allowed values include:

      • PHONE

      • TABLET

      Parameters:
      formFactor - The device's form factor.

      Allowed values include:

      • PHONE

      • TABLET

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

      Device.Builder formFactor(DeviceFormFactor formFactor)

      The device's form factor.

      Allowed values include:

      • PHONE

      • TABLET

      Parameters:
      formFactor - The device's form factor.

      Allowed values include:

      • PHONE

      • TABLET

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

      Device.Builder platform(String platform)

      The device's platform.

      Allowed values include:

      • ANDROID

      • IOS

      Parameters:
      platform - The device's platform.

      Allowed values include:

      • ANDROID

      • IOS

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

      Device.Builder platform(DevicePlatform platform)

      The device's platform.

      Allowed values include:

      • ANDROID

      • IOS

      Parameters:
      platform - The device's platform.

      Allowed values include:

      • ANDROID

      • IOS

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

      The device's operating system type.

      Parameters:
      os - The device's operating system type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cpu

      Device.Builder cpu(CPU cpu)

      Information about the device's CPU.

      Parameters:
      cpu - Information about the device's CPU.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cpu

      default Device.Builder cpu(Consumer<CPU.Builder> cpu)

      Information about the device's CPU.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to cpu(CPU).

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

      Device.Builder resolution(Resolution resolution)

      The resolution of the device.

      Parameters:
      resolution - The resolution of the device.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resolution

      default Device.Builder resolution(Consumer<Resolution.Builder> resolution)

      The resolution of the device.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to resolution(Resolution).

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

      Device.Builder heapSize(Long heapSize)

      The device's heap size, expressed in bytes.

      Parameters:
      heapSize - The device's heap size, expressed in bytes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memory

      Device.Builder memory(Long memory)

      The device's total memory size, expressed in bytes.

      Parameters:
      memory - The device's total memory size, expressed in bytes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • image

      Device.Builder image(String image)

      The device's image name.

      Parameters:
      image - The device's image name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • carrier

      Device.Builder carrier(String carrier)

      The device's carrier.

      Parameters:
      carrier - The device's carrier.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • radio

      Device.Builder radio(String radio)

      The device's radio.

      Parameters:
      radio - The device's radio.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • remoteAccessEnabled

      Device.Builder remoteAccessEnabled(Boolean remoteAccessEnabled)

      Specifies whether remote access has been enabled for the specified device.

      Parameters:
      remoteAccessEnabled - Specifies whether remote access has been enabled for the specified device.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • remoteDebugEnabled

      Device.Builder remoteDebugEnabled(Boolean remoteDebugEnabled)

      This flag is set to true if remote debugging is enabled for the device.

      Remote debugging is no longer supported.

      Parameters:
      remoteDebugEnabled - This flag is set to true if remote debugging is enabled for the device.

      Remote debugging is no longer supported.

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

      Device.Builder fleetType(String fleetType)

      The type of fleet to which this device belongs. Possible values are PRIVATE and PUBLIC.

      Parameters:
      fleetType - The type of fleet to which this device belongs. Possible values are PRIVATE and PUBLIC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fleetName

      Device.Builder fleetName(String fleetName)

      The name of the fleet to which this device belongs.

      Parameters:
      fleetName - The name of the fleet to which this device belongs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instances

      Device.Builder instances(Collection<DeviceInstance> instances)

      The instances that belong to this device.

      Parameters:
      instances - The instances that belong to this device.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instances

      Device.Builder instances(DeviceInstance... instances)

      The instances that belong to this device.

      Parameters:
      instances - The instances that belong to this device.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instances

      The instances that belong to this device.

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

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

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

      Device.Builder availability(String availability)

      Indicates how likely a device is available for a test run. Currently available in the ListDevices and GetDevice API methods.

      Parameters:
      availability - Indicates how likely a device is available for a test run. Currently available in the ListDevices and GetDevice API methods.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • availability

      Device.Builder availability(DeviceAvailability availability)

      Indicates how likely a device is available for a test run. Currently available in the ListDevices and GetDevice API methods.

      Parameters:
      availability - Indicates how likely a device is available for a test run. Currently available in the ListDevices and GetDevice API methods.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: