{-# 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.MediaLive.Types.FrameCaptureIntervalUnit
-- 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.MediaLive.Types.FrameCaptureIntervalUnit
  ( FrameCaptureIntervalUnit
      ( ..,
        FrameCaptureIntervalUnit_MILLISECONDS,
        FrameCaptureIntervalUnit_SECONDS
      ),
  )
where

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

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

pattern FrameCaptureIntervalUnit_MILLISECONDS :: FrameCaptureIntervalUnit
pattern $bFrameCaptureIntervalUnit_MILLISECONDS :: FrameCaptureIntervalUnit
$mFrameCaptureIntervalUnit_MILLISECONDS :: forall {r}.
FrameCaptureIntervalUnit -> ((# #) -> r) -> ((# #) -> r) -> r
FrameCaptureIntervalUnit_MILLISECONDS = FrameCaptureIntervalUnit' "MILLISECONDS"

pattern FrameCaptureIntervalUnit_SECONDS :: FrameCaptureIntervalUnit
pattern $bFrameCaptureIntervalUnit_SECONDS :: FrameCaptureIntervalUnit
$mFrameCaptureIntervalUnit_SECONDS :: forall {r}.
FrameCaptureIntervalUnit -> ((# #) -> r) -> ((# #) -> r) -> r
FrameCaptureIntervalUnit_SECONDS = FrameCaptureIntervalUnit' "SECONDS"

{-# COMPLETE
  FrameCaptureIntervalUnit_MILLISECONDS,
  FrameCaptureIntervalUnit_SECONDS,
  FrameCaptureIntervalUnit'
  #-}