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

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

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

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

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

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