{-# 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.M3u8PcrControl
-- 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.MediaLive.Types.M3u8PcrControl
  ( M3u8PcrControl
      ( ..,
        M3u8PcrControl_CONFIGURED_PCR_PERIOD,
        M3u8PcrControl_PCR_EVERY_PES_PACKET
      ),
  )
where

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

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

pattern M3u8PcrControl_CONFIGURED_PCR_PERIOD :: M3u8PcrControl
pattern $bM3u8PcrControl_CONFIGURED_PCR_PERIOD :: M3u8PcrControl
$mM3u8PcrControl_CONFIGURED_PCR_PERIOD :: forall r. M3u8PcrControl -> (Void# -> r) -> (Void# -> r) -> r
M3u8PcrControl_CONFIGURED_PCR_PERIOD = M3u8PcrControl' "CONFIGURED_PCR_PERIOD"

pattern M3u8PcrControl_PCR_EVERY_PES_PACKET :: M3u8PcrControl
pattern $bM3u8PcrControl_PCR_EVERY_PES_PACKET :: M3u8PcrControl
$mM3u8PcrControl_PCR_EVERY_PES_PACKET :: forall r. M3u8PcrControl -> (Void# -> r) -> (Void# -> r) -> r
M3u8PcrControl_PCR_EVERY_PES_PACKET = M3u8PcrControl' "PCR_EVERY_PES_PACKET"

{-# COMPLETE
  M3u8PcrControl_CONFIGURED_PCR_PERIOD,
  M3u8PcrControl_PCR_EVERY_PES_PACKET,
  M3u8PcrControl'
  #-}