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

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

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

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

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

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