{-# 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.HlsAkamaiHttpTransferMode
-- 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.HlsAkamaiHttpTransferMode
  ( HlsAkamaiHttpTransferMode
      ( ..,
        HlsAkamaiHttpTransferMode_CHUNKED,
        HlsAkamaiHttpTransferMode_NON_CHUNKED
      ),
  )
where

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

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

pattern HlsAkamaiHttpTransferMode_CHUNKED :: HlsAkamaiHttpTransferMode
pattern $bHlsAkamaiHttpTransferMode_CHUNKED :: HlsAkamaiHttpTransferMode
$mHlsAkamaiHttpTransferMode_CHUNKED :: forall r.
HlsAkamaiHttpTransferMode -> (Void# -> r) -> (Void# -> r) -> r
HlsAkamaiHttpTransferMode_CHUNKED = HlsAkamaiHttpTransferMode' "CHUNKED"

pattern HlsAkamaiHttpTransferMode_NON_CHUNKED :: HlsAkamaiHttpTransferMode
pattern $bHlsAkamaiHttpTransferMode_NON_CHUNKED :: HlsAkamaiHttpTransferMode
$mHlsAkamaiHttpTransferMode_NON_CHUNKED :: forall r.
HlsAkamaiHttpTransferMode -> (Void# -> r) -> (Void# -> r) -> r
HlsAkamaiHttpTransferMode_NON_CHUNKED = HlsAkamaiHttpTransferMode' "NON_CHUNKED"

{-# COMPLETE
  HlsAkamaiHttpTransferMode_CHUNKED,
  HlsAkamaiHttpTransferMode_NON_CHUNKED,
  HlsAkamaiHttpTransferMode'
  #-}