{-# 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.HlsClientCache
-- 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.HlsClientCache
  ( HlsClientCache
      ( ..,
        HlsClientCache_DISABLED,
        HlsClientCache_ENABLED
      ),
  )
where

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

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

pattern HlsClientCache_DISABLED :: HlsClientCache
pattern $bHlsClientCache_DISABLED :: HlsClientCache
$mHlsClientCache_DISABLED :: forall {r}. HlsClientCache -> ((# #) -> r) -> ((# #) -> r) -> r
HlsClientCache_DISABLED = HlsClientCache' "DISABLED"

pattern HlsClientCache_ENABLED :: HlsClientCache
pattern $bHlsClientCache_ENABLED :: HlsClientCache
$mHlsClientCache_ENABLED :: forall {r}. HlsClientCache -> ((# #) -> r) -> ((# #) -> r) -> r
HlsClientCache_ENABLED = HlsClientCache' "ENABLED"

{-# COMPLETE
  HlsClientCache_DISABLED,
  HlsClientCache_ENABLED,
  HlsClientCache'
  #-}