java.lang.Object
com.amazonaws.services.devicefarm.model.Device
All Implemented Interfaces:
Serializable, Cloneable

public class Device extends Object implements Serializable, Cloneable

Represents a device type that an app is tested against.

See Also:
  • Constructor Details

    • Device

      public Device()
  • Method Details

    • setArn

      public void setArn(String arn)

      The device's ARN.

      Parameters:
      arn - The device's ARN.
    • getArn

      public String getArn()

      The device's ARN.

      Returns:
      The device's ARN.
    • withArn

      public Device withArn(String 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.
    • setName

      public void setName(String name)

      The device's display name.

      Parameters:
      name - The device's display name.
    • getName

      public String getName()

      The device's display name.

      Returns:
      The device's display name.
    • withName

      public Device withName(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.
    • setManufacturer

      public void setManufacturer(String manufacturer)

      The device's manufacturer name.

      Parameters:
      manufacturer - The device's manufacturer name.
    • getManufacturer

      public String getManufacturer()

      The device's manufacturer name.

      Returns:
      The device's manufacturer name.
    • withManufacturer

      public Device withManufacturer(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.
    • setModel

      public void setModel(String model)

      The device's model name.

      Parameters:
      model - The device's model name.
    • getModel

      public String getModel()

      The device's model name.

      Returns:
      The device's model name.
    • withModel

      public Device withModel(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.
    • setFormFactor

      public void setFormFactor(String formFactor)

      The device's form factor.

      Allowed values include:

      • PHONE: The phone form factor.

      • TABLET: The tablet form factor.

      Parameters:
      formFactor - The device's form factor.

      Allowed values include:

      • PHONE: The phone form factor.

      • TABLET: The tablet form factor.

      See Also:
    • getFormFactor

      public String getFormFactor()

      The device's form factor.

      Allowed values include:

      • PHONE: The phone form factor.

      • TABLET: The tablet form factor.

      Returns:
      The device's form factor.

      Allowed values include:

      • PHONE: The phone form factor.

      • TABLET: The tablet form factor.

      See Also:
    • withFormFactor

      public Device withFormFactor(String formFactor)

      The device's form factor.

      Allowed values include:

      • PHONE: The phone form factor.

      • TABLET: The tablet form factor.

      Parameters:
      formFactor - The device's form factor.

      Allowed values include:

      • PHONE: The phone form factor.

      • TABLET: The tablet form factor.

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

      public void setFormFactor(DeviceFormFactor formFactor)

      The device's form factor.

      Allowed values include:

      • PHONE: The phone form factor.

      • TABLET: The tablet form factor.

      Parameters:
      formFactor - The device's form factor.

      Allowed values include:

      • PHONE: The phone form factor.

      • TABLET: The tablet form factor.

      See Also:
    • withFormFactor

      public Device withFormFactor(DeviceFormFactor formFactor)

      The device's form factor.

      Allowed values include:

      • PHONE: The phone form factor.

      • TABLET: The tablet form factor.

      Parameters:
      formFactor - The device's form factor.

      Allowed values include:

      • PHONE: The phone form factor.

      • TABLET: The tablet form factor.

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

      public void setPlatform(String platform)

      The device's platform.

      Allowed values include:

      • ANDROID: The Android platform.

      • IOS: The iOS platform.

      Parameters:
      platform - The device's platform.

      Allowed values include:

      • ANDROID: The Android platform.

      • IOS: The iOS platform.

      See Also:
    • getPlatform

      public String getPlatform()

      The device's platform.

      Allowed values include:

      • ANDROID: The Android platform.

      • IOS: The iOS platform.

      Returns:
      The device's platform.

      Allowed values include:

      • ANDROID: The Android platform.

      • IOS: The iOS platform.

      See Also:
    • withPlatform

      public Device withPlatform(String platform)

      The device's platform.

      Allowed values include:

      • ANDROID: The Android platform.

      • IOS: The iOS platform.

      Parameters:
      platform - The device's platform.

      Allowed values include:

      • ANDROID: The Android platform.

      • IOS: The iOS platform.

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

      public void setPlatform(DevicePlatform platform)

      The device's platform.

      Allowed values include:

      • ANDROID: The Android platform.

      • IOS: The iOS platform.

      Parameters:
      platform - The device's platform.

      Allowed values include:

      • ANDROID: The Android platform.

      • IOS: The iOS platform.

      See Also:
    • withPlatform

      public Device withPlatform(DevicePlatform platform)

      The device's platform.

      Allowed values include:

      • ANDROID: The Android platform.

      • IOS: The iOS platform.

      Parameters:
      platform - The device's platform.

      Allowed values include:

      • ANDROID: The Android platform.

      • IOS: The iOS platform.

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

      public void setOs(String os)

      The device's operating system type.

      Parameters:
      os - The device's operating system type.
    • getOs

      public String getOs()

      The device's operating system type.

      Returns:
      The device's operating system type.
    • withOs

      public Device withOs(String 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.
    • setCpu

      public void setCpu(CPU cpu)

      Information about the device's CPU.

      Parameters:
      cpu - Information about the device's CPU.
    • getCpu

      public CPU getCpu()

      Information about the device's CPU.

      Returns:
      Information about the device's CPU.
    • withCpu

      public Device withCpu(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.
    • setResolution

      public void setResolution(Resolution resolution)
      Parameters:
      resolution -
    • getResolution

      public Resolution getResolution()
      Returns:
    • withResolution

      public Device withResolution(Resolution resolution)
      Parameters:
      resolution -
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setHeapSize

      public void setHeapSize(Long heapSize)

      The device's heap size, expressed in bytes.

      Parameters:
      heapSize - The device's heap size, expressed in bytes.
    • getHeapSize

      public Long getHeapSize()

      The device's heap size, expressed in bytes.

      Returns:
      The device's heap size, expressed in bytes.
    • withHeapSize

      public Device withHeapSize(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.
    • setMemory

      public void setMemory(Long memory)

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

      Parameters:
      memory - The device's total memory size, expressed in bytes.
    • getMemory

      public Long getMemory()

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

      Returns:
      The device's total memory size, expressed in bytes.
    • withMemory

      public Device withMemory(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.
    • setImage

      public void setImage(String image)

      The device's image name.

      Parameters:
      image - The device's image name.
    • getImage

      public String getImage()

      The device's image name.

      Returns:
      The device's image name.
    • withImage

      public Device withImage(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.
    • setCarrier

      public void setCarrier(String carrier)

      The device's carrier.

      Parameters:
      carrier - The device's carrier.
    • getCarrier

      public String getCarrier()

      The device's carrier.

      Returns:
      The device's carrier.
    • withCarrier

      public Device withCarrier(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.
    • setRadio

      public void setRadio(String radio)

      The device's radio.

      Parameters:
      radio - The device's radio.
    • getRadio

      public String getRadio()

      The device's radio.

      Returns:
      The device's radio.
    • withRadio

      public Device withRadio(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.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Device clone()
      Overrides:
      clone in class Object