{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype DeviceFormFactor = DeviceFormFactor'
  { DeviceFormFactor -> Text
fromDeviceFormFactor ::
      Data.Text
  }
  deriving stock
    ( Int -> DeviceFormFactor -> ShowS
[DeviceFormFactor] -> ShowS
DeviceFormFactor -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq DeviceFormFactor
Int -> DeviceFormFactor -> Int
DeviceFormFactor -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: DeviceFormFactor -> ()
$crnf :: DeviceFormFactor -> ()
Prelude.NFData,
      Text -> Either String DeviceFormFactor
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DeviceFormFactor
$cfromText :: Text -> Either String DeviceFormFactor
Data.FromText,
      DeviceFormFactor -> Text
forall a. (a -> Text) -> ToText a
toText :: DeviceFormFactor -> Text
$ctoText :: DeviceFormFactor -> Text
Data.ToText,
      DeviceFormFactor -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: DeviceFormFactor -> ByteString
$ctoBS :: DeviceFormFactor -> ByteString
Data.ToByteString,
      DeviceFormFactor -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DeviceFormFactor -> ByteStringBuilder
$cbuild :: DeviceFormFactor -> ByteStringBuilder
Data.ToLog,
      HeaderName -> DeviceFormFactor -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DeviceFormFactor -> [Header]
$ctoHeader :: HeaderName -> DeviceFormFactor -> [Header]
Data.ToHeader,
      DeviceFormFactor -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DeviceFormFactor -> QueryString
$ctoQuery :: DeviceFormFactor -> QueryString
Data.ToQuery,
      Value -> Parser [DeviceFormFactor]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [DeviceFormFactor]
FromJSONKeyFunction DeviceFormFactor
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DeviceFormFactor]
$cfromJSONKeyList :: FromJSONKeyFunction [DeviceFormFactor]
fromJSONKey :: FromJSONKeyFunction DeviceFormFactor
$cfromJSONKey :: FromJSONKeyFunction DeviceFormFactor
Data.FromJSONKey,
      [DeviceFormFactor] -> Encoding
[DeviceFormFactor] -> Value
DeviceFormFactor -> Encoding
DeviceFormFactor -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [DeviceFormFactor]
ToJSONKeyFunction DeviceFormFactor
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DeviceFormFactor]
$ctoJSONKeyList :: ToJSONKeyFunction [DeviceFormFactor]
toJSONKey :: ToJSONKeyFunction DeviceFormFactor
$ctoJSONKey :: ToJSONKeyFunction DeviceFormFactor
Data.ToJSONKey,
      [Node] -> Either String DeviceFormFactor
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DeviceFormFactor
$cparseXML :: [Node] -> Either String DeviceFormFactor
Data.FromXML,
      DeviceFormFactor -> XML
forall a. (a -> XML) -> ToXML a
toXML :: DeviceFormFactor -> XML
$ctoXML :: DeviceFormFactor -> XML
Data.ToXML
    )

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

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

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