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

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

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

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

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

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