Class CPU
- 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CPU()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPU
clone()
boolean
equals(Object obj)
String
getArchitecture()
The CPU's architecture, for example x86 or ARM.Double
getClock()
The clock speed of the device's CPU, expressed in hertz (Hz).String
getFrequency()
The CPU's frequency.int
hashCode()
void
setArchitecture(String architecture)
The CPU's architecture, for example x86 or ARM.void
setClock(Double clock)
The clock speed of the device's CPU, expressed in hertz (Hz).void
setFrequency(String frequency)
The CPU's frequency.String
toString()
Returns a string representation of this object; useful for testing and debugging.CPU
withArchitecture(String architecture)
The CPU's architecture, for example x86 or ARM.CPU
withClock(Double clock)
The clock speed of the device's CPU, expressed in hertz (Hz).CPU
withFrequency(String frequency)
The CPU's frequency.
-
-
-
Method Detail
-
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-