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

public class CPU extends Object implements Serializable, Cloneable

Represents the amount of CPU that an app is using on a physical device.

Note that this does not represent system-wide CPU usage.

See Also:
  • Constructor Details

    • CPU

      public CPU()
  • Method Details

    • setFrequency

      public void setFrequency(String frequency)

      The CPU's frequency.

      Parameters:
      frequency - The CPU's frequency.
    • getFrequency

      public String getFrequency()

      The CPU's frequency.

      Returns:
      The CPU's frequency.
    • withFrequency

      public CPU withFrequency(String frequency)

      The CPU's frequency.

      Parameters:
      frequency - The CPU's frequency.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setArchitecture

      public void setArchitecture(String architecture)

      The CPU's architecture, for example x86 or ARM.

      Parameters:
      architecture - The CPU's architecture, for example x86 or ARM.
    • getArchitecture

      public String getArchitecture()

      The CPU's architecture, for example x86 or ARM.

      Returns:
      The CPU's architecture, for example x86 or ARM.
    • withArchitecture

      public CPU withArchitecture(String architecture)

      The CPU's architecture, for example x86 or ARM.

      Parameters:
      architecture - The CPU's architecture, for example x86 or ARM.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setClock

      public void setClock(Double clock)

      The clock speed of the device's CPU, expressed in hertz (Hz). For example, a 1.2 GHz CPU is expressed as 1200000000.

      Parameters:
      clock - The clock speed of the device's CPU, expressed in hertz (Hz). For example, a 1.2 GHz CPU is expressed as 1200000000.
    • getClock

      public Double getClock()

      The clock speed of the device's CPU, expressed in hertz (Hz). For example, a 1.2 GHz CPU is expressed as 1200000000.

      Returns:
      The clock speed of the device's CPU, expressed in hertz (Hz). For example, a 1.2 GHz CPU is expressed as 1200000000.
    • withClock

      public CPU withClock(Double clock)

      The clock speed of the device's CPU, expressed in hertz (Hz). For example, a 1.2 GHz CPU is expressed as 1200000000.

      Parameters:
      clock - The clock speed of the device's CPU, expressed in hertz (Hz). For example, a 1.2 GHz CPU is expressed as 1200000000.
      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 CPU clone()
      Overrides:
      clone in class Object