{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.DeviceFarm.Types.SampleType
( SampleType
( ..,
SampleType_CPU,
SampleType_MEMORY,
SampleType_NATIVE_AVG_DRAWTIME,
SampleType_NATIVE_FPS,
SampleType_NATIVE_FRAMES,
SampleType_NATIVE_MAX_DRAWTIME,
SampleType_NATIVE_MIN_DRAWTIME,
SampleType_OPENGL_AVG_DRAWTIME,
SampleType_OPENGL_FPS,
SampleType_OPENGL_FRAMES,
SampleType_OPENGL_MAX_DRAWTIME,
SampleType_OPENGL_MIN_DRAWTIME,
SampleType_RX,
SampleType_RX_RATE,
SampleType_THREADS,
SampleType_TX,
SampleType_TX_RATE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype SampleType = SampleType'
{ SampleType -> Text
fromSampleType ::
Core.Text
}
deriving stock
( Int -> SampleType -> ShowS
[SampleType] -> ShowS
SampleType -> String
(Int -> SampleType -> ShowS)
-> (SampleType -> String)
-> ([SampleType] -> ShowS)
-> Show SampleType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SampleType] -> ShowS
$cshowList :: [SampleType] -> ShowS
show :: SampleType -> String
$cshow :: SampleType -> String
showsPrec :: Int -> SampleType -> ShowS
$cshowsPrec :: Int -> SampleType -> ShowS
Prelude.Show,
ReadPrec [SampleType]
ReadPrec SampleType
Int -> ReadS SampleType
ReadS [SampleType]
(Int -> ReadS SampleType)
-> ReadS [SampleType]
-> ReadPrec SampleType
-> ReadPrec [SampleType]
-> Read SampleType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SampleType]
$creadListPrec :: ReadPrec [SampleType]
readPrec :: ReadPrec SampleType
$creadPrec :: ReadPrec SampleType
readList :: ReadS [SampleType]
$creadList :: ReadS [SampleType]
readsPrec :: Int -> ReadS SampleType
$creadsPrec :: Int -> ReadS SampleType
Prelude.Read,
SampleType -> SampleType -> Bool
(SampleType -> SampleType -> Bool)
-> (SampleType -> SampleType -> Bool) -> Eq SampleType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SampleType -> SampleType -> Bool
$c/= :: SampleType -> SampleType -> Bool
== :: SampleType -> SampleType -> Bool
$c== :: SampleType -> SampleType -> Bool
Prelude.Eq,
Eq SampleType
Eq SampleType
-> (SampleType -> SampleType -> Ordering)
-> (SampleType -> SampleType -> Bool)
-> (SampleType -> SampleType -> Bool)
-> (SampleType -> SampleType -> Bool)
-> (SampleType -> SampleType -> Bool)
-> (SampleType -> SampleType -> SampleType)
-> (SampleType -> SampleType -> SampleType)
-> Ord SampleType
SampleType -> SampleType -> Bool
SampleType -> SampleType -> Ordering
SampleType -> SampleType -> SampleType
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 :: SampleType -> SampleType -> SampleType
$cmin :: SampleType -> SampleType -> SampleType
max :: SampleType -> SampleType -> SampleType
$cmax :: SampleType -> SampleType -> SampleType
>= :: SampleType -> SampleType -> Bool
$c>= :: SampleType -> SampleType -> Bool
> :: SampleType -> SampleType -> Bool
$c> :: SampleType -> SampleType -> Bool
<= :: SampleType -> SampleType -> Bool
$c<= :: SampleType -> SampleType -> Bool
< :: SampleType -> SampleType -> Bool
$c< :: SampleType -> SampleType -> Bool
compare :: SampleType -> SampleType -> Ordering
$ccompare :: SampleType -> SampleType -> Ordering
$cp1Ord :: Eq SampleType
Prelude.Ord,
(forall x. SampleType -> Rep SampleType x)
-> (forall x. Rep SampleType x -> SampleType) -> Generic SampleType
forall x. Rep SampleType x -> SampleType
forall x. SampleType -> Rep SampleType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SampleType x -> SampleType
$cfrom :: forall x. SampleType -> Rep SampleType x
Prelude.Generic
)
deriving newtype
( Int -> SampleType -> Int
SampleType -> Int
(Int -> SampleType -> Int)
-> (SampleType -> Int) -> Hashable SampleType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: SampleType -> Int
$chash :: SampleType -> Int
hashWithSalt :: Int -> SampleType -> Int
$chashWithSalt :: Int -> SampleType -> Int
Prelude.Hashable,
SampleType -> ()
(SampleType -> ()) -> NFData SampleType
forall a. (a -> ()) -> NFData a
rnf :: SampleType -> ()
$crnf :: SampleType -> ()
Prelude.NFData,
Text -> Either String SampleType
(Text -> Either String SampleType) -> FromText SampleType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SampleType
$cfromText :: Text -> Either String SampleType
Core.FromText,
SampleType -> Text
(SampleType -> Text) -> ToText SampleType
forall a. (a -> Text) -> ToText a
toText :: SampleType -> Text
$ctoText :: SampleType -> Text
Core.ToText,
SampleType -> ByteString
(SampleType -> ByteString) -> ToByteString SampleType
forall a. (a -> ByteString) -> ToByteString a
toBS :: SampleType -> ByteString
$ctoBS :: SampleType -> ByteString
Core.ToByteString,
SampleType -> ByteStringBuilder
(SampleType -> ByteStringBuilder) -> ToLog SampleType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SampleType -> ByteStringBuilder
$cbuild :: SampleType -> ByteStringBuilder
Core.ToLog,
HeaderName -> SampleType -> [Header]
(HeaderName -> SampleType -> [Header]) -> ToHeader SampleType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SampleType -> [Header]
$ctoHeader :: HeaderName -> SampleType -> [Header]
Core.ToHeader,
SampleType -> QueryString
(SampleType -> QueryString) -> ToQuery SampleType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SampleType -> QueryString
$ctoQuery :: SampleType -> QueryString
Core.ToQuery,
Value -> Parser [SampleType]
Value -> Parser SampleType
(Value -> Parser SampleType)
-> (Value -> Parser [SampleType]) -> FromJSON SampleType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [SampleType]
$cparseJSONList :: Value -> Parser [SampleType]
parseJSON :: Value -> Parser SampleType
$cparseJSON :: Value -> Parser SampleType
Core.FromJSON,
FromJSONKeyFunction [SampleType]
FromJSONKeyFunction SampleType
FromJSONKeyFunction SampleType
-> FromJSONKeyFunction [SampleType] -> FromJSONKey SampleType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SampleType]
$cfromJSONKeyList :: FromJSONKeyFunction [SampleType]
fromJSONKey :: FromJSONKeyFunction SampleType
$cfromJSONKey :: FromJSONKeyFunction SampleType
Core.FromJSONKey,
[SampleType] -> Encoding
[SampleType] -> Value
SampleType -> Encoding
SampleType -> Value
(SampleType -> Value)
-> (SampleType -> Encoding)
-> ([SampleType] -> Value)
-> ([SampleType] -> Encoding)
-> ToJSON SampleType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [SampleType] -> Encoding
$ctoEncodingList :: [SampleType] -> Encoding
toJSONList :: [SampleType] -> Value
$ctoJSONList :: [SampleType] -> Value
toEncoding :: SampleType -> Encoding
$ctoEncoding :: SampleType -> Encoding
toJSON :: SampleType -> Value
$ctoJSON :: SampleType -> Value
Core.ToJSON,
ToJSONKeyFunction [SampleType]
ToJSONKeyFunction SampleType
ToJSONKeyFunction SampleType
-> ToJSONKeyFunction [SampleType] -> ToJSONKey SampleType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SampleType]
$ctoJSONKeyList :: ToJSONKeyFunction [SampleType]
toJSONKey :: ToJSONKeyFunction SampleType
$ctoJSONKey :: ToJSONKeyFunction SampleType
Core.ToJSONKey,
[Node] -> Either String SampleType
([Node] -> Either String SampleType) -> FromXML SampleType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SampleType
$cparseXML :: [Node] -> Either String SampleType
Core.FromXML,
SampleType -> XML
(SampleType -> XML) -> ToXML SampleType
forall a. (a -> XML) -> ToXML a
toXML :: SampleType -> XML
$ctoXML :: SampleType -> XML
Core.ToXML
)
pattern SampleType_CPU :: SampleType
pattern $bSampleType_CPU :: SampleType
$mSampleType_CPU :: forall r. SampleType -> (Void# -> r) -> (Void# -> r) -> r
SampleType_CPU = SampleType' "CPU"
pattern SampleType_MEMORY :: SampleType
pattern $bSampleType_MEMORY :: SampleType
$mSampleType_MEMORY :: forall r. SampleType -> (Void# -> r) -> (Void# -> r) -> r
SampleType_MEMORY = SampleType' "MEMORY"
pattern SampleType_NATIVE_AVG_DRAWTIME :: SampleType
pattern $bSampleType_NATIVE_AVG_DRAWTIME :: SampleType
$mSampleType_NATIVE_AVG_DRAWTIME :: forall r. SampleType -> (Void# -> r) -> (Void# -> r) -> r
SampleType_NATIVE_AVG_DRAWTIME = SampleType' "NATIVE_AVG_DRAWTIME"
pattern SampleType_NATIVE_FPS :: SampleType
pattern $bSampleType_NATIVE_FPS :: SampleType
$mSampleType_NATIVE_FPS :: forall r. SampleType -> (Void# -> r) -> (Void# -> r) -> r
SampleType_NATIVE_FPS = SampleType' "NATIVE_FPS"
pattern SampleType_NATIVE_FRAMES :: SampleType
pattern $bSampleType_NATIVE_FRAMES :: SampleType
$mSampleType_NATIVE_FRAMES :: forall r. SampleType -> (Void# -> r) -> (Void# -> r) -> r
SampleType_NATIVE_FRAMES = SampleType' "NATIVE_FRAMES"
pattern SampleType_NATIVE_MAX_DRAWTIME :: SampleType
pattern $bSampleType_NATIVE_MAX_DRAWTIME :: SampleType
$mSampleType_NATIVE_MAX_DRAWTIME :: forall r. SampleType -> (Void# -> r) -> (Void# -> r) -> r
SampleType_NATIVE_MAX_DRAWTIME = SampleType' "NATIVE_MAX_DRAWTIME"
pattern SampleType_NATIVE_MIN_DRAWTIME :: SampleType
pattern $bSampleType_NATIVE_MIN_DRAWTIME :: SampleType
$mSampleType_NATIVE_MIN_DRAWTIME :: forall r. SampleType -> (Void# -> r) -> (Void# -> r) -> r
SampleType_NATIVE_MIN_DRAWTIME = SampleType' "NATIVE_MIN_DRAWTIME"
pattern SampleType_OPENGL_AVG_DRAWTIME :: SampleType
pattern $bSampleType_OPENGL_AVG_DRAWTIME :: SampleType
$mSampleType_OPENGL_AVG_DRAWTIME :: forall r. SampleType -> (Void# -> r) -> (Void# -> r) -> r
SampleType_OPENGL_AVG_DRAWTIME = SampleType' "OPENGL_AVG_DRAWTIME"
pattern SampleType_OPENGL_FPS :: SampleType
pattern $bSampleType_OPENGL_FPS :: SampleType
$mSampleType_OPENGL_FPS :: forall r. SampleType -> (Void# -> r) -> (Void# -> r) -> r
SampleType_OPENGL_FPS = SampleType' "OPENGL_FPS"
pattern SampleType_OPENGL_FRAMES :: SampleType
pattern $bSampleType_OPENGL_FRAMES :: SampleType
$mSampleType_OPENGL_FRAMES :: forall r. SampleType -> (Void# -> r) -> (Void# -> r) -> r
SampleType_OPENGL_FRAMES = SampleType' "OPENGL_FRAMES"
pattern SampleType_OPENGL_MAX_DRAWTIME :: SampleType
pattern $bSampleType_OPENGL_MAX_DRAWTIME :: SampleType
$mSampleType_OPENGL_MAX_DRAWTIME :: forall r. SampleType -> (Void# -> r) -> (Void# -> r) -> r
SampleType_OPENGL_MAX_DRAWTIME = SampleType' "OPENGL_MAX_DRAWTIME"
pattern SampleType_OPENGL_MIN_DRAWTIME :: SampleType
pattern $bSampleType_OPENGL_MIN_DRAWTIME :: SampleType
$mSampleType_OPENGL_MIN_DRAWTIME :: forall r. SampleType -> (Void# -> r) -> (Void# -> r) -> r
SampleType_OPENGL_MIN_DRAWTIME = SampleType' "OPENGL_MIN_DRAWTIME"
pattern SampleType_RX :: SampleType
pattern $bSampleType_RX :: SampleType
$mSampleType_RX :: forall r. SampleType -> (Void# -> r) -> (Void# -> r) -> r
SampleType_RX = SampleType' "RX"
pattern SampleType_RX_RATE :: SampleType
pattern $bSampleType_RX_RATE :: SampleType
$mSampleType_RX_RATE :: forall r. SampleType -> (Void# -> r) -> (Void# -> r) -> r
SampleType_RX_RATE = SampleType' "RX_RATE"
pattern SampleType_THREADS :: SampleType
pattern $bSampleType_THREADS :: SampleType
$mSampleType_THREADS :: forall r. SampleType -> (Void# -> r) -> (Void# -> r) -> r
SampleType_THREADS = SampleType' "THREADS"
pattern SampleType_TX :: SampleType
pattern $bSampleType_TX :: SampleType
$mSampleType_TX :: forall r. SampleType -> (Void# -> r) -> (Void# -> r) -> r
SampleType_TX = SampleType' "TX"
pattern SampleType_TX_RATE :: SampleType
pattern $bSampleType_TX_RATE :: SampleType
$mSampleType_TX_RATE :: forall r. SampleType -> (Void# -> r) -> (Void# -> r) -> r
SampleType_TX_RATE = SampleType' "TX_RATE"
{-# COMPLETE
SampleType_CPU,
SampleType_MEMORY,
SampleType_NATIVE_AVG_DRAWTIME,
SampleType_NATIVE_FPS,
SampleType_NATIVE_FRAMES,
SampleType_NATIVE_MAX_DRAWTIME,
SampleType_NATIVE_MIN_DRAWTIME,
SampleType_OPENGL_AVG_DRAWTIME,
SampleType_OPENGL_FPS,
SampleType_OPENGL_FRAMES,
SampleType_OPENGL_MAX_DRAWTIME,
SampleType_OPENGL_MIN_DRAWTIME,
SampleType_RX,
SampleType_RX_RATE,
SampleType_THREADS,
SampleType_TX,
SampleType_TX_RATE,
SampleType'
#-}