{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.DeviceFarm.Types.DeviceFormFactor
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.DeviceFarm.Types.DeviceFormFactor
  ( DeviceFormFactor
      ( ..,
        DeviceFormFactor_PHONE,
        DeviceFormFactor_TABLET
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype DeviceFormFactor = DeviceFormFactor'
  { DeviceFormFactor -> Text
fromDeviceFormFactor ::
      Core.Text
  }
  deriving stock
    ( Int -> DeviceFormFactor -> ShowS
[DeviceFormFactor] -> ShowS
DeviceFormFactor -> String
(Int -> DeviceFormFactor -> ShowS)
-> (DeviceFormFactor -> String)
-> ([DeviceFormFactor] -> ShowS)
-> Show DeviceFormFactor
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeviceFormFactor] -> ShowS
$cshowList :: [DeviceFormFactor] -> ShowS
show :: DeviceFormFactor -> String
$cshow :: DeviceFormFactor -> String
showsPrec :: Int -> DeviceFormFactor -> ShowS
$cshowsPrec :: Int -> DeviceFormFactor -> ShowS
Prelude.Show,
      ReadPrec [DeviceFormFactor]
ReadPrec DeviceFormFactor
Int -> ReadS DeviceFormFactor
ReadS [DeviceFormFactor]
(Int -> ReadS DeviceFormFactor)
-> ReadS [DeviceFormFactor]
-> ReadPrec DeviceFormFactor
-> ReadPrec [DeviceFormFactor]
-> Read DeviceFormFactor
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeviceFormFactor]
$creadListPrec :: ReadPrec [DeviceFormFactor]
readPrec :: ReadPrec DeviceFormFactor
$creadPrec :: ReadPrec DeviceFormFactor
readList :: ReadS [DeviceFormFactor]
$creadList :: ReadS [DeviceFormFactor]
readsPrec :: Int -> ReadS DeviceFormFactor
$creadsPrec :: Int -> ReadS DeviceFormFactor
Prelude.Read,
      DeviceFormFactor -> DeviceFormFactor -> Bool
(DeviceFormFactor -> DeviceFormFactor -> Bool)
-> (DeviceFormFactor -> DeviceFormFactor -> Bool)
-> Eq DeviceFormFactor
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeviceFormFactor -> DeviceFormFactor -> Bool
$c/= :: DeviceFormFactor -> DeviceFormFactor -> Bool
== :: DeviceFormFactor -> DeviceFormFactor -> Bool
$c== :: DeviceFormFactor -> DeviceFormFactor -> Bool
Prelude.Eq,
      Eq DeviceFormFactor
Eq DeviceFormFactor
-> (DeviceFormFactor -> DeviceFormFactor -> Ordering)
-> (DeviceFormFactor -> DeviceFormFactor -> Bool)
-> (DeviceFormFactor -> DeviceFormFactor -> Bool)
-> (DeviceFormFactor -> DeviceFormFactor -> Bool)
-> (DeviceFormFactor -> DeviceFormFactor -> Bool)
-> (DeviceFormFactor -> DeviceFormFactor -> DeviceFormFactor)
-> (DeviceFormFactor -> DeviceFormFactor -> DeviceFormFactor)
-> Ord DeviceFormFactor
DeviceFormFactor -> DeviceFormFactor -> Bool
DeviceFormFactor -> DeviceFormFactor -> Ordering
DeviceFormFactor -> DeviceFormFactor -> DeviceFormFactor
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: DeviceFormFactor -> DeviceFormFactor -> DeviceFormFactor
$cmin :: DeviceFormFactor -> DeviceFormFactor -> DeviceFormFactor
max :: DeviceFormFactor -> DeviceFormFactor -> DeviceFormFactor
$cmax :: DeviceFormFactor -> DeviceFormFactor -> DeviceFormFactor
>= :: DeviceFormFactor -> DeviceFormFactor -> Bool
$c>= :: DeviceFormFactor -> DeviceFormFactor -> Bool
> :: DeviceFormFactor -> DeviceFormFactor -> Bool
$c> :: DeviceFormFactor -> DeviceFormFactor -> Bool
<= :: DeviceFormFactor -> DeviceFormFactor -> Bool
$c<= :: DeviceFormFactor -> DeviceFormFactor -> Bool
< :: DeviceFormFactor -> DeviceFormFactor -> Bool
$c< :: DeviceFormFactor -> DeviceFormFactor -> Bool
compare :: DeviceFormFactor -> DeviceFormFactor -> Ordering
$ccompare :: DeviceFormFactor -> DeviceFormFactor -> Ordering
$cp1Ord :: Eq DeviceFormFactor
Prelude.Ord,
      (forall x. DeviceFormFactor -> Rep DeviceFormFactor x)
-> (forall x. Rep DeviceFormFactor x -> DeviceFormFactor)
-> Generic DeviceFormFactor
forall x. Rep DeviceFormFactor x -> DeviceFormFactor
forall x. DeviceFormFactor -> Rep DeviceFormFactor x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeviceFormFactor x -> DeviceFormFactor
$cfrom :: forall x. DeviceFormFactor -> Rep DeviceFormFactor x
Prelude.Generic
    )
  deriving newtype
    ( Int -> DeviceFormFactor -> Int
DeviceFormFactor -> Int
(Int -> DeviceFormFactor -> Int)
-> (DeviceFormFactor -> Int) -> Hashable DeviceFormFactor
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DeviceFormFactor -> Int
$chash :: DeviceFormFactor -> Int
hashWithSalt :: Int -> DeviceFormFactor -> Int
$chashWithSalt :: Int -> DeviceFormFactor -> Int
Prelude.Hashable,
      DeviceFormFactor -> ()
(DeviceFormFactor -> ()) -> NFData DeviceFormFactor
forall a. (a -> ()) -> NFData a
rnf :: DeviceFormFactor -> ()
$crnf :: DeviceFormFactor -> ()
Prelude.NFData,
      Text -> Either String DeviceFormFactor
(Text -> Either String DeviceFormFactor)
-> FromText DeviceFormFactor
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DeviceFormFactor
$cfromText :: Text -> Either String DeviceFormFactor
Core.FromText,
      DeviceFormFactor -> Text
(DeviceFormFactor -> Text) -> ToText DeviceFormFactor
forall a. (a -> Text) -> ToText a
toText :: DeviceFormFactor -> Text
$ctoText :: DeviceFormFactor -> Text
Core.ToText,
      DeviceFormFactor -> ByteString
(DeviceFormFactor -> ByteString) -> ToByteString DeviceFormFactor
forall a. (a -> ByteString) -> ToByteString a
toBS :: DeviceFormFactor -> ByteString
$ctoBS :: DeviceFormFactor -> ByteString
Core.ToByteString,
      DeviceFormFactor -> ByteStringBuilder
(DeviceFormFactor -> ByteStringBuilder) -> ToLog DeviceFormFactor
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DeviceFormFactor -> ByteStringBuilder
$cbuild :: DeviceFormFactor -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DeviceFormFactor -> [Header]
(HeaderName -> DeviceFormFactor -> [Header])
-> ToHeader DeviceFormFactor
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DeviceFormFactor -> [Header]
$ctoHeader :: HeaderName -> DeviceFormFactor -> [Header]
Core.ToHeader,
      DeviceFormFactor -> QueryString
(DeviceFormFactor -> QueryString) -> ToQuery DeviceFormFactor
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DeviceFormFactor -> QueryString
$ctoQuery :: DeviceFormFactor -> QueryString
Core.ToQuery,
      Value -> Parser [DeviceFormFactor]
Value -> Parser DeviceFormFactor
(Value -> Parser DeviceFormFactor)
-> (Value -> Parser [DeviceFormFactor])
-> FromJSON DeviceFormFactor
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DeviceFormFactor]
$cparseJSONList :: Value -> Parser [DeviceFormFactor]
parseJSON :: Value -> Parser DeviceFormFactor
$cparseJSON :: Value -> Parser DeviceFormFactor
Core.FromJSON,
      FromJSONKeyFunction [DeviceFormFactor]
FromJSONKeyFunction DeviceFormFactor
FromJSONKeyFunction DeviceFormFactor
-> FromJSONKeyFunction [DeviceFormFactor]
-> FromJSONKey DeviceFormFactor
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DeviceFormFactor]
$cfromJSONKeyList :: FromJSONKeyFunction [DeviceFormFactor]
fromJSONKey :: FromJSONKeyFunction DeviceFormFactor
$cfromJSONKey :: FromJSONKeyFunction DeviceFormFactor
Core.FromJSONKey,
      [DeviceFormFactor] -> Encoding
[DeviceFormFactor] -> Value
DeviceFormFactor -> Encoding
DeviceFormFactor -> Value
(DeviceFormFactor -> Value)
-> (DeviceFormFactor -> Encoding)
-> ([DeviceFormFactor] -> Value)
-> ([DeviceFormFactor] -> Encoding)
-> ToJSON DeviceFormFactor
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DeviceFormFactor] -> Encoding
$ctoEncodingList :: [DeviceFormFactor] -> Encoding
toJSONList :: [DeviceFormFactor] -> Value
$ctoJSONList :: [DeviceFormFactor] -> Value
toEncoding :: DeviceFormFactor -> Encoding
$ctoEncoding :: DeviceFormFactor -> Encoding
toJSON :: DeviceFormFactor -> Value
$ctoJSON :: DeviceFormFactor -> Value
Core.ToJSON,
      ToJSONKeyFunction [DeviceFormFactor]
ToJSONKeyFunction DeviceFormFactor
ToJSONKeyFunction DeviceFormFactor
-> ToJSONKeyFunction [DeviceFormFactor]
-> ToJSONKey DeviceFormFactor
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DeviceFormFactor]
$ctoJSONKeyList :: ToJSONKeyFunction [DeviceFormFactor]
toJSONKey :: ToJSONKeyFunction DeviceFormFactor
$ctoJSONKey :: ToJSONKeyFunction DeviceFormFactor
Core.ToJSONKey,
      [Node] -> Either String DeviceFormFactor
([Node] -> Either String DeviceFormFactor)
-> FromXML DeviceFormFactor
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DeviceFormFactor
$cparseXML :: [Node] -> Either String DeviceFormFactor
Core.FromXML,
      DeviceFormFactor -> XML
(DeviceFormFactor -> XML) -> ToXML DeviceFormFactor
forall a. (a -> XML) -> ToXML a
toXML :: DeviceFormFactor -> XML
$ctoXML :: DeviceFormFactor -> XML
Core.ToXML
    )

pattern DeviceFormFactor_PHONE :: DeviceFormFactor
pattern $bDeviceFormFactor_PHONE :: DeviceFormFactor
$mDeviceFormFactor_PHONE :: forall r. DeviceFormFactor -> (Void# -> r) -> (Void# -> r) -> r
DeviceFormFactor_PHONE = DeviceFormFactor' "PHONE"

pattern DeviceFormFactor_TABLET :: DeviceFormFactor
pattern $bDeviceFormFactor_TABLET :: DeviceFormFactor
$mDeviceFormFactor_TABLET :: forall r. DeviceFormFactor -> (Void# -> r) -> (Void# -> r) -> r
DeviceFormFactor_TABLET = DeviceFormFactor' "TABLET"

{-# COMPLETE
  DeviceFormFactor_PHONE,
  DeviceFormFactor_TABLET,
  DeviceFormFactor'
  #-}