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 Deviceclone()booleanequals(Object obj)StringgetArn()The device's ARN.StringgetCarrier()The device's carrier.CPUgetCpu()Information about the device's CPU.StringgetFormFactor()The device's form factor.LonggetHeapSize()The device's heap size, expressed in bytes.StringgetImage()The device's image name.StringgetManufacturer()The device's manufacturer name.LonggetMemory()The device's total memory size, expressed in bytes.StringgetModel()The device's model name.StringgetName()The device's display name.StringgetOs()The device's operating system type.StringgetPlatform()The device's platform.StringgetRadio()The device's radio.ResolutiongetResolution()inthashCode()voidsetArn(String arn)The device's ARN.voidsetCarrier(String carrier)The device's carrier.voidsetCpu(CPU cpu)Information about the device's CPU.voidsetFormFactor(DeviceFormFactor formFactor)The device's form factor.voidsetFormFactor(String formFactor)The device's form factor.voidsetHeapSize(Long heapSize)The device's heap size, expressed in bytes.voidsetImage(String image)The device's image name.voidsetManufacturer(String manufacturer)The device's manufacturer name.voidsetMemory(Long memory)The device's total memory size, expressed in bytes.voidsetModel(String model)The device's model name.voidsetName(String name)The device's display name.voidsetOs(String os)The device's operating system type.voidsetPlatform(DevicePlatform platform)The device's platform.voidsetPlatform(String platform)The device's platform.voidsetRadio(String radio)The device's radio.voidsetResolution(Resolution resolution)StringtoString()Returns a string representation of this object; useful for testing and debugging.DevicewithArn(String arn)The device's ARN.DevicewithCarrier(String carrier)The device's carrier.DevicewithCpu(CPU cpu)Information about the device's CPU.DevicewithFormFactor(DeviceFormFactor formFactor)The device's form factor.DevicewithFormFactor(String formFactor)The device's form factor.DevicewithHeapSize(Long heapSize)The device's heap size, expressed in bytes.DevicewithImage(String image)The device's image name.DevicewithManufacturer(String manufacturer)The device's manufacturer name.DevicewithMemory(Long memory)The device's total memory size, expressed in bytes.DevicewithModel(String model)The device's model name.DevicewithName(String name)The device's display name.DevicewithOs(String os)The device's operating system type.DevicewithPlatform(DevicePlatform platform)The device's platform.DevicewithPlatform(String platform)The device's platform.DevicewithRadio(String radio)The device's radio.DevicewithResolution(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-