{-# 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.M2tsDataPtsControl
-- 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.M2tsDataPtsControl
  ( M2tsDataPtsControl
      ( ..,
        M2tsDataPtsControl_ALIGN_TO_VIDEO,
        M2tsDataPtsControl_AUTO
      ),
  )
where

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

-- | If you select ALIGN_TO_VIDEO, MediaConvert writes captions and data
-- packets with Presentation Timestamp (PTS) values greater than or equal
-- to the first video packet PTS (MediaConvert drops captions and data
-- packets with lesser PTS values). Keep the default value (AUTO) to allow
-- all PTS values.
newtype M2tsDataPtsControl = M2tsDataPtsControl'
  { M2tsDataPtsControl -> Text
fromM2tsDataPtsControl ::
      Data.Text
  }
  deriving stock
    ( Int -> M2tsDataPtsControl -> ShowS
[M2tsDataPtsControl] -> ShowS
M2tsDataPtsControl -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [M2tsDataPtsControl] -> ShowS
$cshowList :: [M2tsDataPtsControl] -> ShowS
show :: M2tsDataPtsControl -> String
$cshow :: M2tsDataPtsControl -> String
showsPrec :: Int -> M2tsDataPtsControl -> ShowS
$cshowsPrec :: Int -> M2tsDataPtsControl -> ShowS
Prelude.Show,
      ReadPrec [M2tsDataPtsControl]
ReadPrec M2tsDataPtsControl
Int -> ReadS M2tsDataPtsControl
ReadS [M2tsDataPtsControl]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [M2tsDataPtsControl]
$creadListPrec :: ReadPrec [M2tsDataPtsControl]
readPrec :: ReadPrec M2tsDataPtsControl
$creadPrec :: ReadPrec M2tsDataPtsControl
readList :: ReadS [M2tsDataPtsControl]
$creadList :: ReadS [M2tsDataPtsControl]
readsPrec :: Int -> ReadS M2tsDataPtsControl
$creadsPrec :: Int -> ReadS M2tsDataPtsControl
Prelude.Read,
      M2tsDataPtsControl -> M2tsDataPtsControl -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: M2tsDataPtsControl -> M2tsDataPtsControl -> Bool
$c/= :: M2tsDataPtsControl -> M2tsDataPtsControl -> Bool
== :: M2tsDataPtsControl -> M2tsDataPtsControl -> Bool
$c== :: M2tsDataPtsControl -> M2tsDataPtsControl -> Bool
Prelude.Eq,
      Eq M2tsDataPtsControl
M2tsDataPtsControl -> M2tsDataPtsControl -> Bool
M2tsDataPtsControl -> M2tsDataPtsControl -> Ordering
M2tsDataPtsControl -> M2tsDataPtsControl -> M2tsDataPtsControl
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 :: M2tsDataPtsControl -> M2tsDataPtsControl -> M2tsDataPtsControl
$cmin :: M2tsDataPtsControl -> M2tsDataPtsControl -> M2tsDataPtsControl
max :: M2tsDataPtsControl -> M2tsDataPtsControl -> M2tsDataPtsControl
$cmax :: M2tsDataPtsControl -> M2tsDataPtsControl -> M2tsDataPtsControl
>= :: M2tsDataPtsControl -> M2tsDataPtsControl -> Bool
$c>= :: M2tsDataPtsControl -> M2tsDataPtsControl -> Bool
> :: M2tsDataPtsControl -> M2tsDataPtsControl -> Bool
$c> :: M2tsDataPtsControl -> M2tsDataPtsControl -> Bool
<= :: M2tsDataPtsControl -> M2tsDataPtsControl -> Bool
$c<= :: M2tsDataPtsControl -> M2tsDataPtsControl -> Bool
< :: M2tsDataPtsControl -> M2tsDataPtsControl -> Bool
$c< :: M2tsDataPtsControl -> M2tsDataPtsControl -> Bool
compare :: M2tsDataPtsControl -> M2tsDataPtsControl -> Ordering
$ccompare :: M2tsDataPtsControl -> M2tsDataPtsControl -> Ordering
Prelude.Ord,
      forall x. Rep M2tsDataPtsControl x -> M2tsDataPtsControl
forall x. M2tsDataPtsControl -> Rep M2tsDataPtsControl x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep M2tsDataPtsControl x -> M2tsDataPtsControl
$cfrom :: forall x. M2tsDataPtsControl -> Rep M2tsDataPtsControl x
Prelude.Generic
    )
  deriving newtype
    ( Eq M2tsDataPtsControl
Int -> M2tsDataPtsControl -> Int
M2tsDataPtsControl -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: M2tsDataPtsControl -> Int
$chash :: M2tsDataPtsControl -> Int
hashWithSalt :: Int -> M2tsDataPtsControl -> Int
$chashWithSalt :: Int -> M2tsDataPtsControl -> Int
Prelude.Hashable,
      M2tsDataPtsControl -> ()
forall a. (a -> ()) -> NFData a
rnf :: M2tsDataPtsControl -> ()
$crnf :: M2tsDataPtsControl -> ()
Prelude.NFData,
      Text -> Either String M2tsDataPtsControl
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String M2tsDataPtsControl
$cfromText :: Text -> Either String M2tsDataPtsControl
Data.FromText,
      M2tsDataPtsControl -> Text
forall a. (a -> Text) -> ToText a
toText :: M2tsDataPtsControl -> Text
$ctoText :: M2tsDataPtsControl -> Text
Data.ToText,
      M2tsDataPtsControl -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: M2tsDataPtsControl -> ByteString
$ctoBS :: M2tsDataPtsControl -> ByteString
Data.ToByteString,
      M2tsDataPtsControl -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: M2tsDataPtsControl -> ByteStringBuilder
$cbuild :: M2tsDataPtsControl -> ByteStringBuilder
Data.ToLog,
      HeaderName -> M2tsDataPtsControl -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> M2tsDataPtsControl -> [Header]
$ctoHeader :: HeaderName -> M2tsDataPtsControl -> [Header]
Data.ToHeader,
      M2tsDataPtsControl -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: M2tsDataPtsControl -> QueryString
$ctoQuery :: M2tsDataPtsControl -> QueryString
Data.ToQuery,
      Value -> Parser [M2tsDataPtsControl]
Value -> Parser M2tsDataPtsControl
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [M2tsDataPtsControl]
$cparseJSONList :: Value -> Parser [M2tsDataPtsControl]
parseJSON :: Value -> Parser M2tsDataPtsControl
$cparseJSON :: Value -> Parser M2tsDataPtsControl
Data.FromJSON,
      FromJSONKeyFunction [M2tsDataPtsControl]
FromJSONKeyFunction M2tsDataPtsControl
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [M2tsDataPtsControl]
$cfromJSONKeyList :: FromJSONKeyFunction [M2tsDataPtsControl]
fromJSONKey :: FromJSONKeyFunction M2tsDataPtsControl
$cfromJSONKey :: FromJSONKeyFunction M2tsDataPtsControl
Data.FromJSONKey,
      [M2tsDataPtsControl] -> Encoding
[M2tsDataPtsControl] -> Value
M2tsDataPtsControl -> Encoding
M2tsDataPtsControl -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [M2tsDataPtsControl] -> Encoding
$ctoEncodingList :: [M2tsDataPtsControl] -> Encoding
toJSONList :: [M2tsDataPtsControl] -> Value
$ctoJSONList :: [M2tsDataPtsControl] -> Value
toEncoding :: M2tsDataPtsControl -> Encoding
$ctoEncoding :: M2tsDataPtsControl -> Encoding
toJSON :: M2tsDataPtsControl -> Value
$ctoJSON :: M2tsDataPtsControl -> Value
Data.ToJSON,
      ToJSONKeyFunction [M2tsDataPtsControl]
ToJSONKeyFunction M2tsDataPtsControl
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [M2tsDataPtsControl]
$ctoJSONKeyList :: ToJSONKeyFunction [M2tsDataPtsControl]
toJSONKey :: ToJSONKeyFunction M2tsDataPtsControl
$ctoJSONKey :: ToJSONKeyFunction M2tsDataPtsControl
Data.ToJSONKey,
      [Node] -> Either String M2tsDataPtsControl
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String M2tsDataPtsControl
$cparseXML :: [Node] -> Either String M2tsDataPtsControl
Data.FromXML,
      M2tsDataPtsControl -> XML
forall a. (a -> XML) -> ToXML a
toXML :: M2tsDataPtsControl -> XML
$ctoXML :: M2tsDataPtsControl -> XML
Data.ToXML
    )

pattern M2tsDataPtsControl_ALIGN_TO_VIDEO :: M2tsDataPtsControl
pattern $bM2tsDataPtsControl_ALIGN_TO_VIDEO :: M2tsDataPtsControl
$mM2tsDataPtsControl_ALIGN_TO_VIDEO :: forall {r}. M2tsDataPtsControl -> ((# #) -> r) -> ((# #) -> r) -> r
M2tsDataPtsControl_ALIGN_TO_VIDEO = M2tsDataPtsControl' "ALIGN_TO_VIDEO"

pattern M2tsDataPtsControl_AUTO :: M2tsDataPtsControl
pattern $bM2tsDataPtsControl_AUTO :: M2tsDataPtsControl
$mM2tsDataPtsControl_AUTO :: forall {r}. M2tsDataPtsControl -> ((# #) -> r) -> ((# #) -> r) -> r
M2tsDataPtsControl_AUTO = M2tsDataPtsControl' "AUTO"

{-# COMPLETE
  M2tsDataPtsControl_ALIGN_TO_VIDEO,
  M2tsDataPtsControl_AUTO,
  M2tsDataPtsControl'
  #-}