@Generated(value="software.amazon.awssdk:codegen") public final class Device extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Device.Builder,Device>
Represents a device type that an app is tested against.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Device.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The device's ARN.
|
DeviceAvailability |
availability()
Indicates how likely a device is available for a test run.
|
String |
availabilityAsString()
Indicates how likely a device is available for a test run.
|
static Device.Builder |
builder() |
String |
carrier()
The device's carrier.
|
CPU |
cpu()
Information about the device's CPU.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
fleetName()
The name of the fleet to which this device belongs.
|
String |
fleetType()
The type of fleet to which this device belongs.
|
DeviceFormFactor |
formFactor()
The device's form factor.
|
String |
formFactorAsString()
The device's form factor.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasInstances()
Returns true if the Instances property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
Long |
heapSize()
The device's heap size, expressed in bytes.
|
String |
image()
The device's image name.
|
List<DeviceInstance> |
instances()
The instances that belong to this device.
|
String |
manufacturer()
The device's manufacturer name.
|
Long |
memory()
The device's total memory size, expressed in bytes.
|
String |
model()
The device's model name.
|
String |
modelId()
The device's model ID.
|
String |
name()
The device's display name.
|
String |
os()
The device's operating system type.
|
DevicePlatform |
platform()
The device's platform.
|
String |
platformAsString()
The device's platform.
|
String |
radio()
The device's radio.
|
Boolean |
remoteAccessEnabled()
Specifies whether remote access has been enabled for the specified device.
|
Boolean |
remoteDebugEnabled()
This flag is set to
true if remote debugging is enabled for the device. |
Resolution |
resolution()
The resolution of the device.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Device.Builder> |
serializableBuilderClass() |
Device.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String arn()
The device's ARN.
public final String name()
The device's display name.
public final String manufacturer()
The device's manufacturer name.
public final String model()
The device's model name.
public final String modelId()
The device's model ID.
public final DeviceFormFactor formFactor()
The device's form factor.
Allowed values include:
PHONE
TABLET
If the service returns an enum value that is not available in the current SDK version, formFactor will
return DeviceFormFactor.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
formFactorAsString().
Allowed values include:
PHONE
TABLET
DeviceFormFactorpublic final String formFactorAsString()
The device's form factor.
Allowed values include:
PHONE
TABLET
If the service returns an enum value that is not available in the current SDK version, formFactor will
return DeviceFormFactor.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
formFactorAsString().
Allowed values include:
PHONE
TABLET
DeviceFormFactorpublic final DevicePlatform platform()
The device's platform.
Allowed values include:
ANDROID
IOS
If the service returns an enum value that is not available in the current SDK version, platform will
return DevicePlatform.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
platformAsString().
Allowed values include:
ANDROID
IOS
DevicePlatformpublic final String platformAsString()
The device's platform.
Allowed values include:
ANDROID
IOS
If the service returns an enum value that is not available in the current SDK version, platform will
return DevicePlatform.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
platformAsString().
Allowed values include:
ANDROID
IOS
DevicePlatformpublic final String os()
The device's operating system type.
public final CPU cpu()
Information about the device's CPU.
public final Resolution resolution()
The resolution of the device.
public final Long heapSize()
The device's heap size, expressed in bytes.
public final Long memory()
The device's total memory size, expressed in bytes.
public final String image()
The device's image name.
public final String carrier()
The device's carrier.
public final String radio()
The device's radio.
public final Boolean remoteAccessEnabled()
Specifies whether remote access has been enabled for the specified device.
public final Boolean remoteDebugEnabled()
This flag is set to true if remote debugging is enabled for the device.
Remote debugging is no longer supported.
true if remote debugging is enabled for the device.
Remote debugging is no longer supported.
public final String fleetType()
The type of fleet to which this device belongs. Possible values are PRIVATE and PUBLIC.
public final String fleetName()
The name of the fleet to which this device belongs.
public final boolean hasInstances()
public final List<DeviceInstance> instances()
The instances that belong to this device.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasInstances() to see if a value was sent in this field.
public final DeviceAvailability availability()
Indicates how likely a device is available for a test run. Currently available in the ListDevices and GetDevice API methods.
If the service returns an enum value that is not available in the current SDK version, availability will
return DeviceAvailability.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
availabilityAsString().
DeviceAvailabilitypublic final String availabilityAsString()
Indicates how likely a device is available for a test run. Currently available in the ListDevices and GetDevice API methods.
If the service returns an enum value that is not available in the current SDK version, availability will
return DeviceAvailability.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
availabilityAsString().
DeviceAvailabilitypublic Device.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Device.Builder,Device>public static Device.Builder builder()
public static Class<? extends Device.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2020. All rights reserved.