Class CPU
java.lang.Object
com.amazonaws.services.devicefarm.model.CPU
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The CPU's architecture, for example x86 or ARM.getClock()
The clock speed of the device's CPU, expressed in hertz (Hz).The CPU's frequency.int
hashCode()
void
setArchitecture
(String architecture) The CPU's architecture, for example x86 or ARM.void
The clock speed of the device's CPU, expressed in hertz (Hz).void
setFrequency
(String frequency) The CPU's frequency.toString()
Returns a string representation of this object; useful for testing and debugging.withArchitecture
(String architecture) The CPU's architecture, for example x86 or ARM.The clock speed of the device's CPU, expressed in hertz (Hz).withFrequency
(String frequency) The CPU's frequency.
-
Constructor Details
-
CPU
public CPU()
-
-
Method Details
-
setFrequency
The CPU's frequency.
- Parameters:
frequency
- The CPU's frequency.
-
getFrequency
The CPU's frequency.
- Returns:
- The CPU's frequency.
-
withFrequency
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
The CPU's architecture, for example x86 or ARM.
- Parameters:
architecture
- The CPU's architecture, for example x86 or ARM.
-
getArchitecture
The CPU's architecture, for example x86 or ARM.
- Returns:
- The CPU's architecture, for example x86 or ARM.
-
withArchitecture
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-