public class Device
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents a device type that an app is tested against.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
arn
The device's ARN.
|
private java.lang.String |
carrier
The device's carrier.
|
private CPU |
cpu
Information about the device's CPU.
|
private java.lang.String |
formFactor
The device's form factor.
|
private java.lang.Long |
heapSize
The device's heap size, expressed in bytes.
|
private java.lang.String |
image
The device's image name.
|
private java.lang.String |
manufacturer
The device's manufacturer name.
|
private java.lang.Long |
memory
The device's total memory size, expressed in bytes.
|
private java.lang.String |
model
The device's model name.
|
private java.lang.String |
name
The device's display name.
|
private java.lang.String |
os
The device's operating system type.
|
private java.lang.String |
platform
The device's platform.
|
private java.lang.String |
radio
The device's radio.
|
private Resolution |
resolution |
Constructor and Description |
---|
Device() |
Modifier and Type | Method and Description |
---|---|
Device |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn()
The device's ARN.
|
java.lang.String |
getCarrier()
The device's carrier.
|
CPU |
getCpu()
Information about the device's CPU.
|
java.lang.String |
getFormFactor()
The device's form factor.
|
java.lang.Long |
getHeapSize()
The device's heap size, expressed in bytes.
|
java.lang.String |
getImage()
The device's image name.
|
java.lang.String |
getManufacturer()
The device's manufacturer name.
|
java.lang.Long |
getMemory()
The device's total memory size, expressed in bytes.
|
java.lang.String |
getModel()
The device's model name.
|
java.lang.String |
getName()
The device's display name.
|
java.lang.String |
getOs()
The device's operating system type.
|
java.lang.String |
getPlatform()
The device's platform.
|
java.lang.String |
getRadio()
The device's radio.
|
Resolution |
getResolution() |
int |
hashCode() |
void |
setArn(java.lang.String arn)
The device's ARN.
|
void |
setCarrier(java.lang.String carrier)
The device's carrier.
|
void |
setCpu(CPU cpu)
Information about the device's CPU.
|
void |
setFormFactor(DeviceFormFactor formFactor)
The device's form factor.
|
void |
setFormFactor(java.lang.String formFactor)
The device's form factor.
|
void |
setHeapSize(java.lang.Long heapSize)
The device's heap size, expressed in bytes.
|
void |
setImage(java.lang.String image)
The device's image name.
|
void |
setManufacturer(java.lang.String manufacturer)
The device's manufacturer name.
|
void |
setMemory(java.lang.Long memory)
The device's total memory size, expressed in bytes.
|
void |
setModel(java.lang.String model)
The device's model name.
|
void |
setName(java.lang.String name)
The device's display name.
|
void |
setOs(java.lang.String os)
The device's operating system type.
|
void |
setPlatform(DevicePlatform platform)
The device's platform.
|
void |
setPlatform(java.lang.String platform)
The device's platform.
|
void |
setRadio(java.lang.String radio)
The device's radio.
|
void |
setResolution(Resolution resolution) |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Device |
withArn(java.lang.String arn)
The device's ARN.
|
Device |
withCarrier(java.lang.String carrier)
The device's carrier.
|
Device |
withCpu(CPU cpu)
Information about the device's CPU.
|
Device |
withFormFactor(DeviceFormFactor formFactor)
The device's form factor.
|
Device |
withFormFactor(java.lang.String formFactor)
The device's form factor.
|
Device |
withHeapSize(java.lang.Long heapSize)
The device's heap size, expressed in bytes.
|
Device |
withImage(java.lang.String image)
The device's image name.
|
Device |
withManufacturer(java.lang.String manufacturer)
The device's manufacturer name.
|
Device |
withMemory(java.lang.Long memory)
The device's total memory size, expressed in bytes.
|
Device |
withModel(java.lang.String model)
The device's model name.
|
Device |
withName(java.lang.String name)
The device's display name.
|
Device |
withOs(java.lang.String os)
The device's operating system type.
|
Device |
withPlatform(DevicePlatform platform)
The device's platform.
|
Device |
withPlatform(java.lang.String platform)
The device's platform.
|
Device |
withRadio(java.lang.String radio)
The device's radio.
|
Device |
withResolution(Resolution resolution) |
private java.lang.String arn
The device's ARN.
private java.lang.String name
The device's display name.
private java.lang.String manufacturer
The device's manufacturer name.
private java.lang.String model
The device's model name.
private java.lang.String formFactor
The device's form factor.
Allowed values include:
PHONE: The phone form factor.
TABLET: The tablet form factor.
private java.lang.String platform
The device's platform.
Allowed values include:
ANDROID: The Android platform.
IOS: The iOS platform.
private java.lang.String os
The device's operating system type.
private CPU cpu
Information about the device's CPU.
private Resolution resolution
private java.lang.Long heapSize
The device's heap size, expressed in bytes.
private java.lang.Long memory
The device's total memory size, expressed in bytes.
private java.lang.String image
The device's image name.
private java.lang.String carrier
The device's carrier.
private java.lang.String radio
The device's radio.
public void setArn(java.lang.String arn)
The device's ARN.
arn
- The device's ARN.public java.lang.String getArn()
The device's ARN.
public Device withArn(java.lang.String arn)
The device's ARN.
arn
- The device's ARN.public void setName(java.lang.String name)
The device's display name.
name
- The device's display name.public java.lang.String getName()
The device's display name.
public Device withName(java.lang.String name)
The device's display name.
name
- The device's display name.public void setManufacturer(java.lang.String manufacturer)
The device's manufacturer name.
manufacturer
- The device's manufacturer name.public java.lang.String getManufacturer()
The device's manufacturer name.
public Device withManufacturer(java.lang.String manufacturer)
The device's manufacturer name.
manufacturer
- The device's manufacturer name.public void setModel(java.lang.String model)
The device's model name.
model
- The device's model name.public java.lang.String getModel()
The device's model name.
public Device withModel(java.lang.String model)
The device's model name.
model
- The device's model name.public void setFormFactor(java.lang.String formFactor)
The device's form factor.
Allowed values include:
PHONE: The phone form factor.
TABLET: The tablet form factor.
formFactor
- The device's form factor.
Allowed values include:
PHONE: The phone form factor.
TABLET: The tablet form factor.
DeviceFormFactor
public java.lang.String getFormFactor()
The device's form factor.
Allowed values include:
PHONE: The phone form factor.
TABLET: The tablet form factor.
Allowed values include:
PHONE: The phone form factor.
TABLET: The tablet form factor.
DeviceFormFactor
public Device withFormFactor(java.lang.String formFactor)
The device's form factor.
Allowed values include:
PHONE: The phone form factor.
TABLET: The tablet form factor.
formFactor
- The device's form factor.
Allowed values include:
PHONE: The phone form factor.
TABLET: The tablet form factor.
DeviceFormFactor
public void setFormFactor(DeviceFormFactor formFactor)
The device's form factor.
Allowed values include:
PHONE: The phone form factor.
TABLET: The tablet form factor.
formFactor
- The device's form factor.
Allowed values include:
PHONE: The phone form factor.
TABLET: The tablet form factor.
DeviceFormFactor
public Device withFormFactor(DeviceFormFactor formFactor)
The device's form factor.
Allowed values include:
PHONE: The phone form factor.
TABLET: The tablet form factor.
formFactor
- The device's form factor.
Allowed values include:
PHONE: The phone form factor.
TABLET: The tablet form factor.
DeviceFormFactor
public void setPlatform(java.lang.String platform)
The device's platform.
Allowed values include:
ANDROID: The Android platform.
IOS: The iOS platform.
platform
- The device's platform.
Allowed values include:
ANDROID: The Android platform.
IOS: The iOS platform.
DevicePlatform
public java.lang.String getPlatform()
The device's platform.
Allowed values include:
ANDROID: The Android platform.
IOS: The iOS platform.
Allowed values include:
ANDROID: The Android platform.
IOS: The iOS platform.
DevicePlatform
public Device withPlatform(java.lang.String platform)
The device's platform.
Allowed values include:
ANDROID: The Android platform.
IOS: The iOS platform.
platform
- The device's platform.
Allowed values include:
ANDROID: The Android platform.
IOS: The iOS platform.
DevicePlatform
public void setPlatform(DevicePlatform platform)
The device's platform.
Allowed values include:
ANDROID: The Android platform.
IOS: The iOS platform.
platform
- The device's platform.
Allowed values include:
ANDROID: The Android platform.
IOS: The iOS platform.
DevicePlatform
public Device withPlatform(DevicePlatform platform)
The device's platform.
Allowed values include:
ANDROID: The Android platform.
IOS: The iOS platform.
platform
- The device's platform.
Allowed values include:
ANDROID: The Android platform.
IOS: The iOS platform.
DevicePlatform
public void setOs(java.lang.String os)
The device's operating system type.
os
- The device's operating system type.public java.lang.String getOs()
The device's operating system type.
public Device withOs(java.lang.String os)
The device's operating system type.
os
- The device's operating system type.public void setCpu(CPU cpu)
Information about the device's CPU.
cpu
- Information about the device's CPU.public CPU getCpu()
Information about the device's CPU.
public Device withCpu(CPU cpu)
Information about the device's CPU.
cpu
- Information about the device's CPU.public void setResolution(Resolution resolution)
resolution
- public Resolution getResolution()
public Device withResolution(Resolution resolution)
resolution
- public void setHeapSize(java.lang.Long heapSize)
The device's heap size, expressed in bytes.
heapSize
- The device's heap size, expressed in bytes.public java.lang.Long getHeapSize()
The device's heap size, expressed in bytes.
public Device withHeapSize(java.lang.Long heapSize)
The device's heap size, expressed in bytes.
heapSize
- The device's heap size, expressed in bytes.public void setMemory(java.lang.Long memory)
The device's total memory size, expressed in bytes.
memory
- The device's total memory size, expressed in bytes.public java.lang.Long getMemory()
The device's total memory size, expressed in bytes.
public Device withMemory(java.lang.Long memory)
The device's total memory size, expressed in bytes.
memory
- The device's total memory size, expressed in bytes.public void setImage(java.lang.String image)
The device's image name.
image
- The device's image name.public java.lang.String getImage()
The device's image name.
public Device withImage(java.lang.String image)
The device's image name.
image
- The device's image name.public void setCarrier(java.lang.String carrier)
The device's carrier.
carrier
- The device's carrier.public java.lang.String getCarrier()
The device's carrier.
public Device withCarrier(java.lang.String carrier)
The device's carrier.
carrier
- The device's carrier.public void setRadio(java.lang.String radio)
The device's radio.
radio
- The device's radio.public java.lang.String getRadio()
The device's radio.
public Device withRadio(java.lang.String radio)
The device's radio.
radio
- The device's radio.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Device clone()
clone
in class java.lang.Object