{-# 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.HlsMode
-- 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.HlsMode
  ( HlsMode
      ( ..,
        HlsMode_LIVE,
        HlsMode_VOD
      ),
  )
where

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

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

pattern HlsMode_LIVE :: HlsMode
pattern $bHlsMode_LIVE :: HlsMode
$mHlsMode_LIVE :: forall {r}. HlsMode -> ((# #) -> r) -> ((# #) -> r) -> r
HlsMode_LIVE = HlsMode' "LIVE"

pattern HlsMode_VOD :: HlsMode
pattern $bHlsMode_VOD :: HlsMode
$mHlsMode_VOD :: forall {r}. HlsMode -> ((# #) -> r) -> ((# #) -> r) -> r
HlsMode_VOD = HlsMode' "VOD"

{-# COMPLETE
  HlsMode_LIVE,
  HlsMode_VOD,
  HlsMode'
  #-}