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

import qualified Amazonka.Core as Core
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 ::
      Core.Text
  }
  deriving stock
    ( Int -> M2tsDataPtsControl -> ShowS
[M2tsDataPtsControl] -> ShowS
M2tsDataPtsControl -> String
(Int -> M2tsDataPtsControl -> ShowS)
-> (M2tsDataPtsControl -> String)
-> ([M2tsDataPtsControl] -> ShowS)
-> Show M2tsDataPtsControl
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]
(Int -> ReadS M2tsDataPtsControl)
-> ReadS [M2tsDataPtsControl]
-> ReadPrec M2tsDataPtsControl
-> ReadPrec [M2tsDataPtsControl]
-> Read 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
(M2tsDataPtsControl -> M2tsDataPtsControl -> Bool)
-> (M2tsDataPtsControl -> M2tsDataPtsControl -> Bool)
-> Eq M2tsDataPtsControl
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
Eq M2tsDataPtsControl
-> (M2tsDataPtsControl -> M2tsDataPtsControl -> Ordering)
-> (M2tsDataPtsControl -> M2tsDataPtsControl -> Bool)
-> (M2tsDataPtsControl -> M2tsDataPtsControl -> Bool)
-> (M2tsDataPtsControl -> M2tsDataPtsControl -> Bool)
-> (M2tsDataPtsControl -> M2tsDataPtsControl -> Bool)
-> (M2tsDataPtsControl -> M2tsDataPtsControl -> M2tsDataPtsControl)
-> (M2tsDataPtsControl -> M2tsDataPtsControl -> M2tsDataPtsControl)
-> Ord 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
$cp1Ord :: Eq M2tsDataPtsControl
Prelude.Ord,
      (forall x. M2tsDataPtsControl -> Rep M2tsDataPtsControl x)
-> (forall x. Rep M2tsDataPtsControl x -> M2tsDataPtsControl)
-> Generic M2tsDataPtsControl
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
    ( Int -> M2tsDataPtsControl -> Int
M2tsDataPtsControl -> Int
(Int -> M2tsDataPtsControl -> Int)
-> (M2tsDataPtsControl -> Int) -> Hashable M2tsDataPtsControl
forall 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 -> ()
(M2tsDataPtsControl -> ()) -> NFData M2tsDataPtsControl
forall a. (a -> ()) -> NFData a
rnf :: M2tsDataPtsControl -> ()
$crnf :: M2tsDataPtsControl -> ()
Prelude.NFData,
      Text -> Either String M2tsDataPtsControl
(Text -> Either String M2tsDataPtsControl)
-> FromText M2tsDataPtsControl
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String M2tsDataPtsControl
$cfromText :: Text -> Either String M2tsDataPtsControl
Core.FromText,
      M2tsDataPtsControl -> Text
(M2tsDataPtsControl -> Text) -> ToText M2tsDataPtsControl
forall a. (a -> Text) -> ToText a
toText :: M2tsDataPtsControl -> Text
$ctoText :: M2tsDataPtsControl -> Text
Core.ToText,
      M2tsDataPtsControl -> ByteString
(M2tsDataPtsControl -> ByteString)
-> ToByteString M2tsDataPtsControl
forall a. (a -> ByteString) -> ToByteString a
toBS :: M2tsDataPtsControl -> ByteString
$ctoBS :: M2tsDataPtsControl -> ByteString
Core.ToByteString,
      M2tsDataPtsControl -> ByteStringBuilder
(M2tsDataPtsControl -> ByteStringBuilder)
-> ToLog M2tsDataPtsControl
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: M2tsDataPtsControl -> ByteStringBuilder
$cbuild :: M2tsDataPtsControl -> ByteStringBuilder
Core.ToLog,
      HeaderName -> M2tsDataPtsControl -> [Header]
(HeaderName -> M2tsDataPtsControl -> [Header])
-> ToHeader M2tsDataPtsControl
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> M2tsDataPtsControl -> [Header]
$ctoHeader :: HeaderName -> M2tsDataPtsControl -> [Header]
Core.ToHeader,
      M2tsDataPtsControl -> QueryString
(M2tsDataPtsControl -> QueryString) -> ToQuery M2tsDataPtsControl
forall a. (a -> QueryString) -> ToQuery a
toQuery :: M2tsDataPtsControl -> QueryString
$ctoQuery :: M2tsDataPtsControl -> QueryString
Core.ToQuery,
      Value -> Parser [M2tsDataPtsControl]
Value -> Parser M2tsDataPtsControl
(Value -> Parser M2tsDataPtsControl)
-> (Value -> Parser [M2tsDataPtsControl])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [M2tsDataPtsControl]
FromJSONKeyFunction M2tsDataPtsControl
FromJSONKeyFunction M2tsDataPtsControl
-> FromJSONKeyFunction [M2tsDataPtsControl]
-> FromJSONKey M2tsDataPtsControl
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [M2tsDataPtsControl]
$cfromJSONKeyList :: FromJSONKeyFunction [M2tsDataPtsControl]
fromJSONKey :: FromJSONKeyFunction M2tsDataPtsControl
$cfromJSONKey :: FromJSONKeyFunction M2tsDataPtsControl
Core.FromJSONKey,
      [M2tsDataPtsControl] -> Encoding
[M2tsDataPtsControl] -> Value
M2tsDataPtsControl -> Encoding
M2tsDataPtsControl -> Value
(M2tsDataPtsControl -> Value)
-> (M2tsDataPtsControl -> Encoding)
-> ([M2tsDataPtsControl] -> Value)
-> ([M2tsDataPtsControl] -> Encoding)
-> ToJSON M2tsDataPtsControl
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
Core.ToJSON,
      ToJSONKeyFunction [M2tsDataPtsControl]
ToJSONKeyFunction M2tsDataPtsControl
ToJSONKeyFunction M2tsDataPtsControl
-> ToJSONKeyFunction [M2tsDataPtsControl]
-> ToJSONKey M2tsDataPtsControl
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [M2tsDataPtsControl]
$ctoJSONKeyList :: ToJSONKeyFunction [M2tsDataPtsControl]
toJSONKey :: ToJSONKeyFunction M2tsDataPtsControl
$ctoJSONKey :: ToJSONKeyFunction M2tsDataPtsControl
Core.ToJSONKey,
      [Node] -> Either String M2tsDataPtsControl
([Node] -> Either String M2tsDataPtsControl)
-> FromXML M2tsDataPtsControl
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String M2tsDataPtsControl
$cparseXML :: [Node] -> Either String M2tsDataPtsControl
Core.FromXML,
      M2tsDataPtsControl -> XML
(M2tsDataPtsControl -> XML) -> ToXML M2tsDataPtsControl
forall a. (a -> XML) -> ToXML a
toXML :: M2tsDataPtsControl -> XML
$ctoXML :: M2tsDataPtsControl -> XML
Core.ToXML
    )

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

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

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