libZSservicesZSamazonka-devicefarmZSamazonka-devicefarm
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq Resolution Source # 
Instance details

Defined in Amazonka.DeviceFarm.Types.Resolution

Read Resolution Source # 
Instance details

Defined in Amazonka.DeviceFarm.Types.Resolution

Show 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 #

NFData Resolution Source # 
Instance details

Defined in Amazonka.DeviceFarm.Types.Resolution

Methods

rnf :: Resolution -> () #

Hashable Resolution Source # 
Instance details

Defined in Amazonka.DeviceFarm.Types.Resolution

FromJSON 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" "libZSservicesZSamazonka-devicefarmZSamazonka-devicefarm" '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.