amazonka-devicefarm-2.0: Amazon Device Farm SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.DeviceFarm.Types.Resolution

Description

 
Synopsis

Documentation

data Resolution Source #

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

See: newResolution smart constructor.

Constructors

Resolution' 

Fields

  • height :: Maybe Int

    The screen resolution's height, expressed in pixels.

  • width :: Maybe Int

    The screen resolution's width, expressed in pixels.

Instances

Instances details
FromJSON Resolution Source # 
Instance details

Defined in Amazonka.DeviceFarm.Types.Resolution

Generic Resolution Source # 
Instance details

Defined in Amazonka.DeviceFarm.Types.Resolution

Associated Types

type Rep Resolution :: Type -> Type #

Read Resolution Source # 
Instance details

Defined in Amazonka.DeviceFarm.Types.Resolution

Show Resolution Source # 
Instance details

Defined in Amazonka.DeviceFarm.Types.Resolution

NFData Resolution Source # 
Instance details

Defined in Amazonka.DeviceFarm.Types.Resolution

Methods

rnf :: Resolution -> () #

Eq Resolution Source # 
Instance details

Defined in Amazonka.DeviceFarm.Types.Resolution

Hashable Resolution Source # 
Instance details

Defined in Amazonka.DeviceFarm.Types.Resolution

type Rep Resolution Source # 
Instance details

Defined in Amazonka.DeviceFarm.Types.Resolution

type Rep Resolution = D1 ('MetaData "Resolution" "Amazonka.DeviceFarm.Types.Resolution" "amazonka-devicefarm-2.0-2e4KvZvQ9bT8TNjEPvmW9Q" 'False) (C1 ('MetaCons "Resolution'" 'PrefixI 'True) (S1 ('MetaSel ('Just "height") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "width") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))

newResolution :: Resolution Source #

Create a value of Resolution with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:height:Resolution', resolution_height - The screen resolution's height, expressed in pixels.

$sel:width:Resolution', resolution_width - The screen resolution's width, expressed in pixels.

resolution_height :: Lens' Resolution (Maybe Int) Source #

The screen resolution's height, expressed in pixels.

resolution_width :: Lens' Resolution (Maybe Int) Source #

The screen resolution's width, expressed in pixels.