{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
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 ::
      Data.Text
  }
  deriving stock
    ( Int -> M2tsEbpAudioInterval -> ShowS
[M2tsEbpAudioInterval] -> ShowS
M2tsEbpAudioInterval -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq M2tsEbpAudioInterval
Int -> M2tsEbpAudioInterval -> Int
M2tsEbpAudioInterval -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: M2tsEbpAudioInterval -> ()
$crnf :: M2tsEbpAudioInterval -> ()
Prelude.NFData,
      Text -> Either String M2tsEbpAudioInterval
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String M2tsEbpAudioInterval
$cfromText :: Text -> Either String M2tsEbpAudioInterval
Data.FromText,
      M2tsEbpAudioInterval -> Text
forall a. (a -> Text) -> ToText a
toText :: M2tsEbpAudioInterval -> Text
$ctoText :: M2tsEbpAudioInterval -> Text
Data.ToText,
      M2tsEbpAudioInterval -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: M2tsEbpAudioInterval -> ByteString
$ctoBS :: M2tsEbpAudioInterval -> ByteString
Data.ToByteString,
      M2tsEbpAudioInterval -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: M2tsEbpAudioInterval -> ByteStringBuilder
$cbuild :: M2tsEbpAudioInterval -> ByteStringBuilder
Data.ToLog,
      HeaderName -> M2tsEbpAudioInterval -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> M2tsEbpAudioInterval -> [Header]
$ctoHeader :: HeaderName -> M2tsEbpAudioInterval -> [Header]
Data.ToHeader,
      M2tsEbpAudioInterval -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: M2tsEbpAudioInterval -> QueryString
$ctoQuery :: M2tsEbpAudioInterval -> QueryString
Data.ToQuery,
      Value -> Parser [M2tsEbpAudioInterval]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [M2tsEbpAudioInterval]
FromJSONKeyFunction M2tsEbpAudioInterval
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [M2tsEbpAudioInterval]
$cfromJSONKeyList :: FromJSONKeyFunction [M2tsEbpAudioInterval]
fromJSONKey :: FromJSONKeyFunction M2tsEbpAudioInterval
$cfromJSONKey :: FromJSONKeyFunction M2tsEbpAudioInterval
Data.FromJSONKey,
      [M2tsEbpAudioInterval] -> Encoding
[M2tsEbpAudioInterval] -> Value
M2tsEbpAudioInterval -> Encoding
M2tsEbpAudioInterval -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [M2tsEbpAudioInterval]
ToJSONKeyFunction M2tsEbpAudioInterval
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [M2tsEbpAudioInterval]
$ctoJSONKeyList :: ToJSONKeyFunction [M2tsEbpAudioInterval]
toJSONKey :: ToJSONKeyFunction M2tsEbpAudioInterval
$ctoJSONKey :: ToJSONKeyFunction M2tsEbpAudioInterval
Data.ToJSONKey,
      [Node] -> Either String M2tsEbpAudioInterval
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String M2tsEbpAudioInterval
$cparseXML :: [Node] -> Either String M2tsEbpAudioInterval
Data.FromXML,
      M2tsEbpAudioInterval -> XML
forall a. (a -> XML) -> ToXML a
toXML :: M2tsEbpAudioInterval -> XML
$ctoXML :: M2tsEbpAudioInterval -> XML
Data.ToXML
    )

pattern M2tsEbpAudioInterval_VIDEO_AND_FIXED_INTERVALS :: M2tsEbpAudioInterval
pattern $bM2tsEbpAudioInterval_VIDEO_AND_FIXED_INTERVALS :: M2tsEbpAudioInterval
$mM2tsEbpAudioInterval_VIDEO_AND_FIXED_INTERVALS :: forall {r}.
M2tsEbpAudioInterval -> ((# #) -> r) -> ((# #) -> 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 -> ((# #) -> r) -> ((# #) -> r) -> r
M2tsEbpAudioInterval_VIDEO_INTERVAL = M2tsEbpAudioInterval' "VIDEO_INTERVAL"

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