{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaLive.Types.FrameCaptureIntervalUnit
( FrameCaptureIntervalUnit
( ..,
FrameCaptureIntervalUnit_MILLISECONDS,
FrameCaptureIntervalUnit_SECONDS
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype FrameCaptureIntervalUnit = FrameCaptureIntervalUnit'
{ FrameCaptureIntervalUnit -> Text
fromFrameCaptureIntervalUnit ::
Core.Text
}
deriving stock
( Int -> FrameCaptureIntervalUnit -> ShowS
[FrameCaptureIntervalUnit] -> ShowS
FrameCaptureIntervalUnit -> String
(Int -> FrameCaptureIntervalUnit -> ShowS)
-> (FrameCaptureIntervalUnit -> String)
-> ([FrameCaptureIntervalUnit] -> ShowS)
-> Show FrameCaptureIntervalUnit
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FrameCaptureIntervalUnit] -> ShowS
$cshowList :: [FrameCaptureIntervalUnit] -> ShowS
show :: FrameCaptureIntervalUnit -> String
$cshow :: FrameCaptureIntervalUnit -> String
showsPrec :: Int -> FrameCaptureIntervalUnit -> ShowS
$cshowsPrec :: Int -> FrameCaptureIntervalUnit -> ShowS
Prelude.Show,
ReadPrec [FrameCaptureIntervalUnit]
ReadPrec FrameCaptureIntervalUnit
Int -> ReadS FrameCaptureIntervalUnit
ReadS [FrameCaptureIntervalUnit]
(Int -> ReadS FrameCaptureIntervalUnit)
-> ReadS [FrameCaptureIntervalUnit]
-> ReadPrec FrameCaptureIntervalUnit
-> ReadPrec [FrameCaptureIntervalUnit]
-> Read FrameCaptureIntervalUnit
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FrameCaptureIntervalUnit]
$creadListPrec :: ReadPrec [FrameCaptureIntervalUnit]
readPrec :: ReadPrec FrameCaptureIntervalUnit
$creadPrec :: ReadPrec FrameCaptureIntervalUnit
readList :: ReadS [FrameCaptureIntervalUnit]
$creadList :: ReadS [FrameCaptureIntervalUnit]
readsPrec :: Int -> ReadS FrameCaptureIntervalUnit
$creadsPrec :: Int -> ReadS FrameCaptureIntervalUnit
Prelude.Read,
FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Bool
(FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Bool)
-> (FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Bool)
-> Eq FrameCaptureIntervalUnit
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Bool
$c/= :: FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Bool
== :: FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Bool
$c== :: FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Bool
Prelude.Eq,
Eq FrameCaptureIntervalUnit
Eq FrameCaptureIntervalUnit
-> (FrameCaptureIntervalUnit
-> FrameCaptureIntervalUnit -> Ordering)
-> (FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Bool)
-> (FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Bool)
-> (FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Bool)
-> (FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Bool)
-> (FrameCaptureIntervalUnit
-> FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit)
-> (FrameCaptureIntervalUnit
-> FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit)
-> Ord FrameCaptureIntervalUnit
FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Bool
FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Ordering
FrameCaptureIntervalUnit
-> FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit
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 :: FrameCaptureIntervalUnit
-> FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit
$cmin :: FrameCaptureIntervalUnit
-> FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit
max :: FrameCaptureIntervalUnit
-> FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit
$cmax :: FrameCaptureIntervalUnit
-> FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit
>= :: FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Bool
$c>= :: FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Bool
> :: FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Bool
$c> :: FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Bool
<= :: FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Bool
$c<= :: FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Bool
< :: FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Bool
$c< :: FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Bool
compare :: FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Ordering
$ccompare :: FrameCaptureIntervalUnit -> FrameCaptureIntervalUnit -> Ordering
$cp1Ord :: Eq FrameCaptureIntervalUnit
Prelude.Ord,
(forall x.
FrameCaptureIntervalUnit -> Rep FrameCaptureIntervalUnit x)
-> (forall x.
Rep FrameCaptureIntervalUnit x -> FrameCaptureIntervalUnit)
-> Generic FrameCaptureIntervalUnit
forall x.
Rep FrameCaptureIntervalUnit x -> FrameCaptureIntervalUnit
forall x.
FrameCaptureIntervalUnit -> Rep FrameCaptureIntervalUnit x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep FrameCaptureIntervalUnit x -> FrameCaptureIntervalUnit
$cfrom :: forall x.
FrameCaptureIntervalUnit -> Rep FrameCaptureIntervalUnit x
Prelude.Generic
)
deriving newtype
( Int -> FrameCaptureIntervalUnit -> Int
FrameCaptureIntervalUnit -> Int
(Int -> FrameCaptureIntervalUnit -> Int)
-> (FrameCaptureIntervalUnit -> Int)
-> Hashable FrameCaptureIntervalUnit
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: FrameCaptureIntervalUnit -> Int
$chash :: FrameCaptureIntervalUnit -> Int
hashWithSalt :: Int -> FrameCaptureIntervalUnit -> Int
$chashWithSalt :: Int -> FrameCaptureIntervalUnit -> Int
Prelude.Hashable,
FrameCaptureIntervalUnit -> ()
(FrameCaptureIntervalUnit -> ()) -> NFData FrameCaptureIntervalUnit
forall a. (a -> ()) -> NFData a
rnf :: FrameCaptureIntervalUnit -> ()
$crnf :: FrameCaptureIntervalUnit -> ()
Prelude.NFData,
Text -> Either String FrameCaptureIntervalUnit
(Text -> Either String FrameCaptureIntervalUnit)
-> FromText FrameCaptureIntervalUnit
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FrameCaptureIntervalUnit
$cfromText :: Text -> Either String FrameCaptureIntervalUnit
Core.FromText,
FrameCaptureIntervalUnit -> Text
(FrameCaptureIntervalUnit -> Text)
-> ToText FrameCaptureIntervalUnit
forall a. (a -> Text) -> ToText a
toText :: FrameCaptureIntervalUnit -> Text
$ctoText :: FrameCaptureIntervalUnit -> Text
Core.ToText,
FrameCaptureIntervalUnit -> ByteString
(FrameCaptureIntervalUnit -> ByteString)
-> ToByteString FrameCaptureIntervalUnit
forall a. (a -> ByteString) -> ToByteString a
toBS :: FrameCaptureIntervalUnit -> ByteString
$ctoBS :: FrameCaptureIntervalUnit -> ByteString
Core.ToByteString,
FrameCaptureIntervalUnit -> ByteStringBuilder
(FrameCaptureIntervalUnit -> ByteStringBuilder)
-> ToLog FrameCaptureIntervalUnit
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FrameCaptureIntervalUnit -> ByteStringBuilder
$cbuild :: FrameCaptureIntervalUnit -> ByteStringBuilder
Core.ToLog,
HeaderName -> FrameCaptureIntervalUnit -> [Header]
(HeaderName -> FrameCaptureIntervalUnit -> [Header])
-> ToHeader FrameCaptureIntervalUnit
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FrameCaptureIntervalUnit -> [Header]
$ctoHeader :: HeaderName -> FrameCaptureIntervalUnit -> [Header]
Core.ToHeader,
FrameCaptureIntervalUnit -> QueryString
(FrameCaptureIntervalUnit -> QueryString)
-> ToQuery FrameCaptureIntervalUnit
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FrameCaptureIntervalUnit -> QueryString
$ctoQuery :: FrameCaptureIntervalUnit -> QueryString
Core.ToQuery,
Value -> Parser [FrameCaptureIntervalUnit]
Value -> Parser FrameCaptureIntervalUnit
(Value -> Parser FrameCaptureIntervalUnit)
-> (Value -> Parser [FrameCaptureIntervalUnit])
-> FromJSON FrameCaptureIntervalUnit
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [FrameCaptureIntervalUnit]
$cparseJSONList :: Value -> Parser [FrameCaptureIntervalUnit]
parseJSON :: Value -> Parser FrameCaptureIntervalUnit
$cparseJSON :: Value -> Parser FrameCaptureIntervalUnit
Core.FromJSON,
FromJSONKeyFunction [FrameCaptureIntervalUnit]
FromJSONKeyFunction FrameCaptureIntervalUnit
FromJSONKeyFunction FrameCaptureIntervalUnit
-> FromJSONKeyFunction [FrameCaptureIntervalUnit]
-> FromJSONKey FrameCaptureIntervalUnit
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FrameCaptureIntervalUnit]
$cfromJSONKeyList :: FromJSONKeyFunction [FrameCaptureIntervalUnit]
fromJSONKey :: FromJSONKeyFunction FrameCaptureIntervalUnit
$cfromJSONKey :: FromJSONKeyFunction FrameCaptureIntervalUnit
Core.FromJSONKey,
[FrameCaptureIntervalUnit] -> Encoding
[FrameCaptureIntervalUnit] -> Value
FrameCaptureIntervalUnit -> Encoding
FrameCaptureIntervalUnit -> Value
(FrameCaptureIntervalUnit -> Value)
-> (FrameCaptureIntervalUnit -> Encoding)
-> ([FrameCaptureIntervalUnit] -> Value)
-> ([FrameCaptureIntervalUnit] -> Encoding)
-> ToJSON FrameCaptureIntervalUnit
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [FrameCaptureIntervalUnit] -> Encoding
$ctoEncodingList :: [FrameCaptureIntervalUnit] -> Encoding
toJSONList :: [FrameCaptureIntervalUnit] -> Value
$ctoJSONList :: [FrameCaptureIntervalUnit] -> Value
toEncoding :: FrameCaptureIntervalUnit -> Encoding
$ctoEncoding :: FrameCaptureIntervalUnit -> Encoding
toJSON :: FrameCaptureIntervalUnit -> Value
$ctoJSON :: FrameCaptureIntervalUnit -> Value
Core.ToJSON,
ToJSONKeyFunction [FrameCaptureIntervalUnit]
ToJSONKeyFunction FrameCaptureIntervalUnit
ToJSONKeyFunction FrameCaptureIntervalUnit
-> ToJSONKeyFunction [FrameCaptureIntervalUnit]
-> ToJSONKey FrameCaptureIntervalUnit
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FrameCaptureIntervalUnit]
$ctoJSONKeyList :: ToJSONKeyFunction [FrameCaptureIntervalUnit]
toJSONKey :: ToJSONKeyFunction FrameCaptureIntervalUnit
$ctoJSONKey :: ToJSONKeyFunction FrameCaptureIntervalUnit
Core.ToJSONKey,
[Node] -> Either String FrameCaptureIntervalUnit
([Node] -> Either String FrameCaptureIntervalUnit)
-> FromXML FrameCaptureIntervalUnit
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FrameCaptureIntervalUnit
$cparseXML :: [Node] -> Either String FrameCaptureIntervalUnit
Core.FromXML,
FrameCaptureIntervalUnit -> XML
(FrameCaptureIntervalUnit -> XML) -> ToXML FrameCaptureIntervalUnit
forall a. (a -> XML) -> ToXML a
toXML :: FrameCaptureIntervalUnit -> XML
$ctoXML :: FrameCaptureIntervalUnit -> XML
Core.ToXML
)
pattern FrameCaptureIntervalUnit_MILLISECONDS :: FrameCaptureIntervalUnit
pattern $bFrameCaptureIntervalUnit_MILLISECONDS :: FrameCaptureIntervalUnit
$mFrameCaptureIntervalUnit_MILLISECONDS :: forall r.
FrameCaptureIntervalUnit -> (Void# -> r) -> (Void# -> r) -> r
FrameCaptureIntervalUnit_MILLISECONDS = FrameCaptureIntervalUnit' "MILLISECONDS"
pattern FrameCaptureIntervalUnit_SECONDS :: FrameCaptureIntervalUnit
pattern $bFrameCaptureIntervalUnit_SECONDS :: FrameCaptureIntervalUnit
$mFrameCaptureIntervalUnit_SECONDS :: forall r.
FrameCaptureIntervalUnit -> (Void# -> r) -> (Void# -> r) -> r
FrameCaptureIntervalUnit_SECONDS = FrameCaptureIntervalUnit' "SECONDS"
{-# COMPLETE
FrameCaptureIntervalUnit_MILLISECONDS,
FrameCaptureIntervalUnit_SECONDS,
FrameCaptureIntervalUnit'
#-}