/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.devicefarm.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Represents a device type that an app is tested against. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Device implements Serializable, Cloneable, StructuredPojo { /** *

* The device's ARN. *

*/ private String arn; /** *

* The device's display name. *

*/ private String name; /** *

* The device's manufacturer name. *

*/ private String manufacturer; /** *

* The device's model name. *

*/ private String model; /** *

* The device's model ID. *

*/ private String modelId; /** *

* The device's form factor. *

*

* Allowed values include: *

* */ private String formFactor; /** *

* The device's platform. *

*

* Allowed values include: *

* */ private String platform; /** *

* The device's operating system type. *

*/ private String os; /** *

* Information about the device's CPU. *

*/ private CPU cpu; /** *

* The resolution of the device. *

*/ private Resolution resolution; /** *

* The device's heap size, expressed in bytes. *

*/ private Long heapSize; /** *

* The device's total memory size, expressed in bytes. *

*/ private Long memory; /** *

* The device's image name. *

*/ private String image; /** *

* The device's carrier. *

*/ private String carrier; /** *

* The device's radio. *

*/ private String radio; /** *

* Specifies whether remote access has been enabled for the specified device. *

*/ private Boolean remoteAccessEnabled; /** *

* This flag is set to true if remote debugging is enabled for the device. *

*

* Remote debugging is no longer * supported. *

*/ private Boolean remoteDebugEnabled; /** *

* The type of fleet to which this device belongs. Possible values are PRIVATE and PUBLIC. *

*/ private String fleetType; /** *

* The name of the fleet to which this device belongs. *

*/ private String fleetName; /** *

* The instances that belong to this device. *

*/ private java.util.List instances; /** *

* Indicates how likely a device is available for a test run. Currently available in the ListDevices and * GetDevice API methods. *

*/ private String availability; /** *

* The device's ARN. *

* * @param arn * The device's ARN. */ public void setArn(String arn) { this.arn = arn; } /** *

* The device's ARN. *

* * @return The device's ARN. */ public String getArn() { return this.arn; } /** *

* The device's ARN. *

* * @param arn * The device's ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public Device withArn(String arn) { setArn(arn); return this; } /** *

* The device's display name. *

* * @param name * The device's display name. */ public void setName(String name) { this.name = name; } /** *

* The device's display name. *

* * @return The device's display name. */ public String getName() { return this.name; } /** *

* The device's display name. *

* * @param name * The device's display name. * @return Returns a reference to this object so that method calls can be chained together. */ public Device withName(String name) { setName(name); return this; } /** *

* The device's manufacturer name. *

* * @param manufacturer * The device's manufacturer name. */ public void setManufacturer(String manufacturer) { this.manufacturer = manufacturer; } /** *

* The device's manufacturer name. *

* * @return The device's manufacturer name. */ public String getManufacturer() { return this.manufacturer; } /** *

* The device's manufacturer name. *

* * @param manufacturer * The device's manufacturer name. * @return Returns a reference to this object so that method calls can be chained together. */ public Device withManufacturer(String manufacturer) { setManufacturer(manufacturer); return this; } /** *

* The device's model name. *

* * @param model * The device's model name. */ public void setModel(String model) { this.model = model; } /** *

* The device's model name. *

* * @return The device's model name. */ public String getModel() { return this.model; } /** *

* The device's model name. *

* * @param model * The device's model name. * @return Returns a reference to this object so that method calls can be chained together. */ public Device withModel(String model) { setModel(model); return this; } /** *

* The device's model ID. *

* * @param modelId * The device's model ID. */ public void setModelId(String modelId) { this.modelId = modelId; } /** *

* The device's model ID. *

* * @return The device's model ID. */ public String getModelId() { return this.modelId; } /** *

* The device's model ID. *

* * @param modelId * The device's model ID. * @return Returns a reference to this object so that method calls can be chained together. */ public Device withModelId(String modelId) { setModelId(modelId); return this; } /** *

* The device's form factor. *

*

* Allowed values include: *

* * * @param formFactor * The device's form factor.

*

* Allowed values include: *

*