AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Device

import "github.com/aws/aws-sdk-go/service/devicefarm"

type Device struct { Arn *string `locationName:"arn" min:"32" type:"string"` Availability *string `locationName:"availability" type:"string" enum:"DeviceAvailability"` Carrier *string `locationName:"carrier" type:"string"` Cpu *CPU `locationName:"cpu" type:"structure"` FleetName *string `locationName:"fleetName" type:"string"` FleetType *string `locationName:"fleetType" type:"string"` FormFactor *string `locationName:"formFactor" type:"string" enum:"DeviceFormFactor"` HeapSize *int64 `locationName:"heapSize" type:"long"` Image *string `locationName:"image" type:"string"` Instances []*DeviceInstance `locationName:"instances" type:"list"` Manufacturer *string `locationName:"manufacturer" type:"string"` Memory *int64 `locationName:"memory" type:"long"` Model *string `locationName:"model" type:"string"` ModelId *string `locationName:"modelId" type:"string"` Name *string `locationName:"name" type:"string"` Os *string `locationName:"os" type:"string"` Platform *string `locationName:"platform" type:"string" enum:"DevicePlatform"` Radio *string `locationName:"radio" type:"string"` RemoteAccessEnabled *bool `locationName:"remoteAccessEnabled" type:"boolean"` RemoteDebugEnabled *bool `locationName:"remoteDebugEnabled" type:"boolean"` Resolution *Resolution `locationName:"resolution" type:"structure"` }

Represents a device type that an app is tested against.

Arn

Type: *string

The device's ARN.

Availability

Type: *string

Reflects how likely a device will be available for a test run. It is currently available in the ListDevices and GetDevice API methods.

Carrier

Type: *string

The device's carrier.

Cpu

Represents the amount of CPU that an app is using on a physical device.

Note that this does not represent system-wide CPU usage.

FleetName

Type: *string

The name of the fleet to which this device belongs.

FleetType

Type: *string

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

FormFactor

Type: *string

The device's form factor.

Allowed values include:

  • PHONE: The phone form factor.

  • TABLET: The tablet form factor.

HeapSize

Type: *int64

The device's heap size, expressed in bytes.

Image

Type: *string

The device's image name.

Instances

Represents the device instance.

Manufacturer

Type: *string

The device's manufacturer name.

Memory

Type: *int64

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

Model

Type: *string

The device's model name.

ModelId

Type: *string

The device's model ID.

Name

Type: *string

The device's display name.

Os

Type: *string

The device's operating system type.

Platform

Type: *string

The device's platform.

Allowed values include:

  • ANDROID: The Android platform.

  • IOS: The iOS platform.

Radio

Type: *string

The device's radio.

RemoteAccessEnabled

Type: *bool

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

RemoteDebugEnabled

Type: *bool

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

Resolution

Represents the screen resolution of a device in height and width, expressed in pixels.

Method

GoString

func (s Device) GoString() string

GoString returns the string representation

SetArn

func (s *Device) SetArn(v string) *Device

SetArn sets the Arn field's value.

SetAvailability

func (s *Device) SetAvailability(v string) *Device

SetAvailability sets the Availability field's value.

SetCarrier

func (s *Device) SetCarrier(v string) *Device

SetCarrier sets the Carrier field's value.

SetCpu

func (s *Device) SetCpu(v *CPU) *Device

SetCpu sets the Cpu field's value.

SetFleetName

func (s *Device) SetFleetName(v string) *Device

SetFleetName sets the FleetName field's value.

SetFleetType

func (s *Device) SetFleetType(v string) *Device

SetFleetType sets the FleetType field's value.

SetFormFactor

func (s *Device) SetFormFactor(v string) *Device

SetFormFactor sets the FormFactor field's value.

SetHeapSize

func (s *Device) SetHeapSize(v int64) *Device

SetHeapSize sets the HeapSize field's value.

SetImage

func (s *Device) SetImage(v string) *Device

SetImage sets the Image field's value.

SetInstances

func (s *Device) SetInstances(v []*DeviceInstance) *Device

SetInstances sets the Instances field's value.

SetManufacturer

func (s *Device) SetManufacturer(v string) *Device

SetManufacturer sets the Manufacturer field's value.

SetMemory

func (s *Device) SetMemory(v int64) *Device

SetMemory sets the Memory field's value.

SetModel

func (s *Device) SetModel(v string) *Device

SetModel sets the Model field's value.

SetModelId

func (s *Device) SetModelId(v string) *Device

SetModelId sets the ModelId field's value.

SetName

func (s *Device) SetName(v string) *Device

SetName sets the Name field's value.

SetOs

func (s *Device) SetOs(v string) *Device

SetOs sets the Os field's value.

SetPlatform

func (s *Device) SetPlatform(v string) *Device

SetPlatform sets the Platform field's value.

SetRadio

func (s *Device) SetRadio(v string) *Device

SetRadio sets the Radio field's value.

SetRemoteAccessEnabled

func (s *Device) SetRemoteAccessEnabled(v bool) *Device

SetRemoteAccessEnabled sets the RemoteAccessEnabled field's value.

SetRemoteDebugEnabled

func (s *Device) SetRemoteDebugEnabled(v bool) *Device

SetRemoteDebugEnabled sets the RemoteDebugEnabled field's value.

SetResolution

func (s *Device) SetResolution(v *Resolution) *Device

SetResolution sets the Resolution field's value.

String

func (s Device) String() string

String returns the string representation

On this page: