{-# 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.HlsTsFileMode
-- 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.HlsTsFileMode
  ( HlsTsFileMode
      ( ..,
        HlsTsFileMode_SEGMENTED_FILES,
        HlsTsFileMode_SINGLE_FILE
      ),
  )
where

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

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

pattern HlsTsFileMode_SEGMENTED_FILES :: HlsTsFileMode
pattern $bHlsTsFileMode_SEGMENTED_FILES :: HlsTsFileMode
$mHlsTsFileMode_SEGMENTED_FILES :: forall {r}. HlsTsFileMode -> ((# #) -> r) -> ((# #) -> r) -> r
HlsTsFileMode_SEGMENTED_FILES = HlsTsFileMode' "SEGMENTED_FILES"

pattern HlsTsFileMode_SINGLE_FILE :: HlsTsFileMode
pattern $bHlsTsFileMode_SINGLE_FILE :: HlsTsFileMode
$mHlsTsFileMode_SINGLE_FILE :: forall {r}. HlsTsFileMode -> ((# #) -> r) -> ((# #) -> r) -> r
HlsTsFileMode_SINGLE_FILE = HlsTsFileMode' "SINGLE_FILE"

{-# COMPLETE
  HlsTsFileMode_SEGMENTED_FILES,
  HlsTsFileMode_SINGLE_FILE,
  HlsTsFileMode'
  #-}