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

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

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

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

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

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