{-# 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.HlsWebdavHttpTransferMode
-- 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.HlsWebdavHttpTransferMode
  ( HlsWebdavHttpTransferMode
      ( ..,
        HlsWebdavHttpTransferMode_CHUNKED,
        HlsWebdavHttpTransferMode_NON_CHUNKED
      ),
  )
where

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

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

pattern HlsWebdavHttpTransferMode_CHUNKED :: HlsWebdavHttpTransferMode
pattern $bHlsWebdavHttpTransferMode_CHUNKED :: HlsWebdavHttpTransferMode
$mHlsWebdavHttpTransferMode_CHUNKED :: forall {r}.
HlsWebdavHttpTransferMode -> ((# #) -> r) -> ((# #) -> r) -> r
HlsWebdavHttpTransferMode_CHUNKED = HlsWebdavHttpTransferMode' "CHUNKED"

pattern HlsWebdavHttpTransferMode_NON_CHUNKED :: HlsWebdavHttpTransferMode
pattern $bHlsWebdavHttpTransferMode_NON_CHUNKED :: HlsWebdavHttpTransferMode
$mHlsWebdavHttpTransferMode_NON_CHUNKED :: forall {r}.
HlsWebdavHttpTransferMode -> ((# #) -> r) -> ((# #) -> r) -> r
HlsWebdavHttpTransferMode_NON_CHUNKED = HlsWebdavHttpTransferMode' "NON_CHUNKED"

{-# COMPLETE
  HlsWebdavHttpTransferMode_CHUNKED,
  HlsWebdavHttpTransferMode_NON_CHUNKED,
  HlsWebdavHttpTransferMode'
  #-}