Class Device
- 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Device()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Device
clone()
boolean
equals(Object obj)
String
getArn()
The device's ARN.String
getCarrier()
The device's carrier.CPU
getCpu()
Information about the device's CPU.String
getFormFactor()
The device's form factor.Long
getHeapSize()
The device's heap size, expressed in bytes.String
getImage()
The device's image name.String
getManufacturer()
The device's manufacturer name.Long
getMemory()
The device's total memory size, expressed in bytes.String
getModel()
The device's model name.String
getName()
The device's display name.String
getOs()
The device's operating system type.String
getPlatform()
The device's platform.String
getRadio()
The device's radio.Resolution
getResolution()
int
hashCode()
void
setArn(String arn)
The device's ARN.void
setCarrier(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(String formFactor)
The device's form factor.void
setHeapSize(Long heapSize)
The device's heap size, expressed in bytes.void
setImage(String image)
The device's image name.void
setManufacturer(String manufacturer)
The device's manufacturer name.void
setMemory(Long memory)
The device's total memory size, expressed in bytes.void
setModel(String model)
The device's model name.void
setName(String name)
The device's display name.void
setOs(String os)
The device's operating system type.void
setPlatform(DevicePlatform platform)
The device's platform.void
setPlatform(String platform)
The device's platform.void
setRadio(String radio)
The device's radio.void
setResolution(Resolution resolution)
String
toString()
Returns a string representation of this object; useful for testing and debugging.Device
withArn(String arn)
The device's ARN.Device
withCarrier(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(String formFactor)
The device's form factor.Device
withHeapSize(Long heapSize)
The device's heap size, expressed in bytes.Device
withImage(String image)
The device's image name.Device
withManufacturer(String manufacturer)
The device's manufacturer name.Device
withMemory(Long memory)
The device's total memory size, expressed in bytes.Device
withModel(String model)
The device's model name.Device
withName(String name)
The device's display name.Device
withOs(String os)
The device's operating system type.Device
withPlatform(DevicePlatform platform)
The device's platform.Device
withPlatform(String platform)
The device's platform.Device
withRadio(String radio)
The device's radio.Device
withResolution(Resolution resolution)
-
-
-
Method Detail
-
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:
DeviceFormFactor
-
-
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:
DeviceFormFactor
-
-
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:
DeviceFormFactor
-
-
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:
DeviceFormFactor
-
-
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:
DeviceFormFactor
-
-
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:
DevicePlatform
-
-
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:
DevicePlatform
-
-
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:
DevicePlatform
-
-
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:
DevicePlatform
-
-
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:
DevicePlatform
-
-
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-