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

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

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

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

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

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