{-# 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.MediaConvert.Types.M2tsEbpAudioInterval
-- 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.MediaConvert.Types.M2tsEbpAudioInterval
  ( M2tsEbpAudioInterval
      ( ..,
        M2tsEbpAudioInterval_VIDEO_AND_FIXED_INTERVALS,
        M2tsEbpAudioInterval_VIDEO_INTERVAL
      ),
  )
where

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

-- | When set to VIDEO_AND_FIXED_INTERVALS, audio EBP markers will be added
-- to partitions 3 and 4. The interval between these additional markers
-- will be fixed, and will be slightly shorter than the video EBP marker
-- interval. When set to VIDEO_INTERVAL, these additional markers will not
-- be inserted. Only applicable when EBP segmentation markers are is
-- selected (segmentationMarkers is EBP or EBP_LEGACY).
newtype M2tsEbpAudioInterval = M2tsEbpAudioInterval'
  { M2tsEbpAudioInterval -> Text
fromM2tsEbpAudioInterval ::
      Core.Text
  }
  deriving stock
    ( Int -> M2tsEbpAudioInterval -> ShowS
[M2tsEbpAudioInterval] -> ShowS
M2tsEbpAudioInterval -> String
(Int -> M2tsEbpAudioInterval -> ShowS)
-> (M2tsEbpAudioInterval -> String)
-> ([M2tsEbpAudioInterval] -> ShowS)
-> Show M2tsEbpAudioInterval
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [M2tsEbpAudioInterval] -> ShowS
$cshowList :: [M2tsEbpAudioInterval] -> ShowS
show :: M2tsEbpAudioInterval -> String
$cshow :: M2tsEbpAudioInterval -> String
showsPrec :: Int -> M2tsEbpAudioInterval -> ShowS
$cshowsPrec :: Int -> M2tsEbpAudioInterval -> ShowS
Prelude.Show,
      ReadPrec [M2tsEbpAudioInterval]
ReadPrec M2tsEbpAudioInterval
Int -> ReadS M2tsEbpAudioInterval
ReadS [M2tsEbpAudioInterval]
(Int -> ReadS M2tsEbpAudioInterval)
-> ReadS [M2tsEbpAudioInterval]
-> ReadPrec M2tsEbpAudioInterval
-> ReadPrec [M2tsEbpAudioInterval]
-> Read M2tsEbpAudioInterval
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [M2tsEbpAudioInterval]
$creadListPrec :: ReadPrec [M2tsEbpAudioInterval]
readPrec :: ReadPrec M2tsEbpAudioInterval
$creadPrec :: ReadPrec M2tsEbpAudioInterval
readList :: ReadS [M2tsEbpAudioInterval]
$creadList :: ReadS [M2tsEbpAudioInterval]
readsPrec :: Int -> ReadS M2tsEbpAudioInterval
$creadsPrec :: Int -> ReadS M2tsEbpAudioInterval
Prelude.Read,
      M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Bool
(M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Bool)
-> (M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Bool)
-> Eq M2tsEbpAudioInterval
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Bool
$c/= :: M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Bool
== :: M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Bool
$c== :: M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Bool
Prelude.Eq,
      Eq M2tsEbpAudioInterval
Eq M2tsEbpAudioInterval
-> (M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Ordering)
-> (M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Bool)
-> (M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Bool)
-> (M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Bool)
-> (M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Bool)
-> (M2tsEbpAudioInterval
    -> M2tsEbpAudioInterval -> M2tsEbpAudioInterval)
-> (M2tsEbpAudioInterval
    -> M2tsEbpAudioInterval -> M2tsEbpAudioInterval)
-> Ord M2tsEbpAudioInterval
M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Bool
M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Ordering
M2tsEbpAudioInterval
-> M2tsEbpAudioInterval -> M2tsEbpAudioInterval
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 :: M2tsEbpAudioInterval
-> M2tsEbpAudioInterval -> M2tsEbpAudioInterval
$cmin :: M2tsEbpAudioInterval
-> M2tsEbpAudioInterval -> M2tsEbpAudioInterval
max :: M2tsEbpAudioInterval
-> M2tsEbpAudioInterval -> M2tsEbpAudioInterval
$cmax :: M2tsEbpAudioInterval
-> M2tsEbpAudioInterval -> M2tsEbpAudioInterval
>= :: M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Bool
$c>= :: M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Bool
> :: M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Bool
$c> :: M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Bool
<= :: M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Bool
$c<= :: M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Bool
< :: M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Bool
$c< :: M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Bool
compare :: M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Ordering
$ccompare :: M2tsEbpAudioInterval -> M2tsEbpAudioInterval -> Ordering
$cp1Ord :: Eq M2tsEbpAudioInterval
Prelude.Ord,
      (forall x. M2tsEbpAudioInterval -> Rep M2tsEbpAudioInterval x)
-> (forall x. Rep M2tsEbpAudioInterval x -> M2tsEbpAudioInterval)
-> Generic M2tsEbpAudioInterval
forall x. Rep M2tsEbpAudioInterval x -> M2tsEbpAudioInterval
forall x. M2tsEbpAudioInterval -> Rep M2tsEbpAudioInterval x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep M2tsEbpAudioInterval x -> M2tsEbpAudioInterval
$cfrom :: forall x. M2tsEbpAudioInterval -> Rep M2tsEbpAudioInterval x
Prelude.Generic
    )
  deriving newtype
    ( Int -> M2tsEbpAudioInterval -> Int
M2tsEbpAudioInterval -> Int
(Int -> M2tsEbpAudioInterval -> Int)
-> (M2tsEbpAudioInterval -> Int) -> Hashable M2tsEbpAudioInterval
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: M2tsEbpAudioInterval -> Int
$chash :: M2tsEbpAudioInterval -> Int
hashWithSalt :: Int -> M2tsEbpAudioInterval -> Int
$chashWithSalt :: Int -> M2tsEbpAudioInterval -> Int
Prelude.Hashable,
      M2tsEbpAudioInterval -> ()
(M2tsEbpAudioInterval -> ()) -> NFData M2tsEbpAudioInterval
forall a. (a -> ()) -> NFData a
rnf :: M2tsEbpAudioInterval -> ()
$crnf :: M2tsEbpAudioInterval -> ()
Prelude.NFData,
      Text -> Either String M2tsEbpAudioInterval
(Text -> Either String M2tsEbpAudioInterval)
-> FromText M2tsEbpAudioInterval
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String M2tsEbpAudioInterval
$cfromText :: Text -> Either String M2tsEbpAudioInterval
Core.FromText,
      M2tsEbpAudioInterval -> Text
(M2tsEbpAudioInterval -> Text) -> ToText M2tsEbpAudioInterval
forall a. (a -> Text) -> ToText a
toText :: M2tsEbpAudioInterval -> Text
$ctoText :: M2tsEbpAudioInterval -> Text
Core.ToText,
      M2tsEbpAudioInterval -> ByteString
(M2tsEbpAudioInterval -> ByteString)
-> ToByteString M2tsEbpAudioInterval
forall a. (a -> ByteString) -> ToByteString a
toBS :: M2tsEbpAudioInterval -> ByteString
$ctoBS :: M2tsEbpAudioInterval -> ByteString
Core.ToByteString,
      M2tsEbpAudioInterval -> ByteStringBuilder
(M2tsEbpAudioInterval -> ByteStringBuilder)
-> ToLog M2tsEbpAudioInterval
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: M2tsEbpAudioInterval -> ByteStringBuilder
$cbuild :: M2tsEbpAudioInterval -> ByteStringBuilder
Core.ToLog,
      HeaderName -> M2tsEbpAudioInterval -> [Header]
(HeaderName -> M2tsEbpAudioInterval -> [Header])
-> ToHeader M2tsEbpAudioInterval
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> M2tsEbpAudioInterval -> [Header]
$ctoHeader :: HeaderName -> M2tsEbpAudioInterval -> [Header]
Core.ToHeader,
      M2tsEbpAudioInterval -> QueryString
(M2tsEbpAudioInterval -> QueryString)
-> ToQuery M2tsEbpAudioInterval
forall a. (a -> QueryString) -> ToQuery a
toQuery :: M2tsEbpAudioInterval -> QueryString
$ctoQuery :: M2tsEbpAudioInterval -> QueryString
Core.ToQuery,
      Value -> Parser [M2tsEbpAudioInterval]
Value -> Parser M2tsEbpAudioInterval
(Value -> Parser M2tsEbpAudioInterval)
-> (Value -> Parser [M2tsEbpAudioInterval])
-> FromJSON M2tsEbpAudioInterval
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [M2tsEbpAudioInterval]
$cparseJSONList :: Value -> Parser [M2tsEbpAudioInterval]
parseJSON :: Value -> Parser M2tsEbpAudioInterval
$cparseJSON :: Value -> Parser M2tsEbpAudioInterval
Core.FromJSON,
      FromJSONKeyFunction [M2tsEbpAudioInterval]
FromJSONKeyFunction M2tsEbpAudioInterval
FromJSONKeyFunction M2tsEbpAudioInterval
-> FromJSONKeyFunction [M2tsEbpAudioInterval]
-> FromJSONKey M2tsEbpAudioInterval
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [M2tsEbpAudioInterval]
$cfromJSONKeyList :: FromJSONKeyFunction [M2tsEbpAudioInterval]
fromJSONKey :: FromJSONKeyFunction M2tsEbpAudioInterval
$cfromJSONKey :: FromJSONKeyFunction M2tsEbpAudioInterval
Core.FromJSONKey,
      [M2tsEbpAudioInterval] -> Encoding
[M2tsEbpAudioInterval] -> Value
M2tsEbpAudioInterval -> Encoding
M2tsEbpAudioInterval -> Value
(M2tsEbpAudioInterval -> Value)
-> (M2tsEbpAudioInterval -> Encoding)
-> ([M2tsEbpAudioInterval] -> Value)
-> ([M2tsEbpAudioInterval] -> Encoding)
-> ToJSON M2tsEbpAudioInterval
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [M2tsEbpAudioInterval] -> Encoding
$ctoEncodingList :: [M2tsEbpAudioInterval] -> Encoding
toJSONList :: [M2tsEbpAudioInterval] -> Value
$ctoJSONList :: [M2tsEbpAudioInterval] -> Value
toEncoding :: M2tsEbpAudioInterval -> Encoding
$ctoEncoding :: M2tsEbpAudioInterval -> Encoding
toJSON :: M2tsEbpAudioInterval -> Value
$ctoJSON :: M2tsEbpAudioInterval -> Value
Core.ToJSON,
      ToJSONKeyFunction [M2tsEbpAudioInterval]
ToJSONKeyFunction M2tsEbpAudioInterval
ToJSONKeyFunction M2tsEbpAudioInterval
-> ToJSONKeyFunction [M2tsEbpAudioInterval]
-> ToJSONKey M2tsEbpAudioInterval
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [M2tsEbpAudioInterval]
$ctoJSONKeyList :: ToJSONKeyFunction [M2tsEbpAudioInterval]
toJSONKey :: ToJSONKeyFunction M2tsEbpAudioInterval
$ctoJSONKey :: ToJSONKeyFunction M2tsEbpAudioInterval
Core.ToJSONKey,
      [Node] -> Either String M2tsEbpAudioInterval
([Node] -> Either String M2tsEbpAudioInterval)
-> FromXML M2tsEbpAudioInterval
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String M2tsEbpAudioInterval
$cparseXML :: [Node] -> Either String M2tsEbpAudioInterval
Core.FromXML,
      M2tsEbpAudioInterval -> XML
(M2tsEbpAudioInterval -> XML) -> ToXML M2tsEbpAudioInterval
forall a. (a -> XML) -> ToXML a
toXML :: M2tsEbpAudioInterval -> XML
$ctoXML :: M2tsEbpAudioInterval -> XML
Core.ToXML
    )

pattern M2tsEbpAudioInterval_VIDEO_AND_FIXED_INTERVALS :: M2tsEbpAudioInterval
pattern $bM2tsEbpAudioInterval_VIDEO_AND_FIXED_INTERVALS :: M2tsEbpAudioInterval
$mM2tsEbpAudioInterval_VIDEO_AND_FIXED_INTERVALS :: forall r. M2tsEbpAudioInterval -> (Void# -> r) -> (Void# -> r) -> r
M2tsEbpAudioInterval_VIDEO_AND_FIXED_INTERVALS = M2tsEbpAudioInterval' "VIDEO_AND_FIXED_INTERVALS"

pattern M2tsEbpAudioInterval_VIDEO_INTERVAL :: M2tsEbpAudioInterval
pattern $bM2tsEbpAudioInterval_VIDEO_INTERVAL :: M2tsEbpAudioInterval
$mM2tsEbpAudioInterval_VIDEO_INTERVAL :: forall r. M2tsEbpAudioInterval -> (Void# -> r) -> (Void# -> r) -> r
M2tsEbpAudioInterval_VIDEO_INTERVAL = M2tsEbpAudioInterval' "VIDEO_INTERVAL"

{-# COMPLETE
  M2tsEbpAudioInterval_VIDEO_AND_FIXED_INTERVALS,
  M2tsEbpAudioInterval_VIDEO_INTERVAL,
  M2tsEbpAudioInterval'
  #-}