{-# 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.M2tsSegmentationStyle
-- 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.MediaLive.Types.M2tsSegmentationStyle
  ( M2tsSegmentationStyle
      ( ..,
        M2tsSegmentationStyle_MAINTAIN_CADENCE,
        M2tsSegmentationStyle_RESET_CADENCE
      ),
  )
where

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

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

pattern M2tsSegmentationStyle_MAINTAIN_CADENCE :: M2tsSegmentationStyle
pattern $bM2tsSegmentationStyle_MAINTAIN_CADENCE :: M2tsSegmentationStyle
$mM2tsSegmentationStyle_MAINTAIN_CADENCE :: forall {r}.
M2tsSegmentationStyle -> ((# #) -> r) -> ((# #) -> r) -> r
M2tsSegmentationStyle_MAINTAIN_CADENCE = M2tsSegmentationStyle' "MAINTAIN_CADENCE"

pattern M2tsSegmentationStyle_RESET_CADENCE :: M2tsSegmentationStyle
pattern $bM2tsSegmentationStyle_RESET_CADENCE :: M2tsSegmentationStyle
$mM2tsSegmentationStyle_RESET_CADENCE :: forall {r}.
M2tsSegmentationStyle -> ((# #) -> r) -> ((# #) -> r) -> r
M2tsSegmentationStyle_RESET_CADENCE = M2tsSegmentationStyle' "RESET_CADENCE"

{-# COMPLETE
  M2tsSegmentationStyle_MAINTAIN_CADENCE,
  M2tsSegmentationStyle_RESET_CADENCE,
  M2tsSegmentationStyle'
  #-}