{-# 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.MediaConvert.Types.CmafClientCache
-- 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.MediaConvert.Types.CmafClientCache
  ( CmafClientCache
      ( ..,
        CmafClientCache_DISABLED,
        CmafClientCache_ENABLED
      ),
  )
where

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

-- | Disable this setting only when your workflow requires the
-- #EXT-X-ALLOW-CACHE:no tag. Otherwise, keep the default value Enabled
-- (ENABLED) and control caching in your video distribution set up. For
-- example, use the Cache-Control http header.
newtype CmafClientCache = CmafClientCache'
  { CmafClientCache -> Text
fromCmafClientCache ::
      Core.Text
  }
  deriving stock
    ( Int -> CmafClientCache -> ShowS
[CmafClientCache] -> ShowS
CmafClientCache -> String
(Int -> CmafClientCache -> ShowS)
-> (CmafClientCache -> String)
-> ([CmafClientCache] -> ShowS)
-> Show CmafClientCache
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CmafClientCache] -> ShowS
$cshowList :: [CmafClientCache] -> ShowS
show :: CmafClientCache -> String
$cshow :: CmafClientCache -> String
showsPrec :: Int -> CmafClientCache -> ShowS
$cshowsPrec :: Int -> CmafClientCache -> ShowS
Prelude.Show,
      ReadPrec [CmafClientCache]
ReadPrec CmafClientCache
Int -> ReadS CmafClientCache
ReadS [CmafClientCache]
(Int -> ReadS CmafClientCache)
-> ReadS [CmafClientCache]
-> ReadPrec CmafClientCache
-> ReadPrec [CmafClientCache]
-> Read CmafClientCache
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CmafClientCache]
$creadListPrec :: ReadPrec [CmafClientCache]
readPrec :: ReadPrec CmafClientCache
$creadPrec :: ReadPrec CmafClientCache
readList :: ReadS [CmafClientCache]
$creadList :: ReadS [CmafClientCache]
readsPrec :: Int -> ReadS CmafClientCache
$creadsPrec :: Int -> ReadS CmafClientCache
Prelude.Read,
      CmafClientCache -> CmafClientCache -> Bool
(CmafClientCache -> CmafClientCache -> Bool)
-> (CmafClientCache -> CmafClientCache -> Bool)
-> Eq CmafClientCache
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CmafClientCache -> CmafClientCache -> Bool
$c/= :: CmafClientCache -> CmafClientCache -> Bool
== :: CmafClientCache -> CmafClientCache -> Bool
$c== :: CmafClientCache -> CmafClientCache -> Bool
Prelude.Eq,
      Eq CmafClientCache
Eq CmafClientCache
-> (CmafClientCache -> CmafClientCache -> Ordering)
-> (CmafClientCache -> CmafClientCache -> Bool)
-> (CmafClientCache -> CmafClientCache -> Bool)
-> (CmafClientCache -> CmafClientCache -> Bool)
-> (CmafClientCache -> CmafClientCache -> Bool)
-> (CmafClientCache -> CmafClientCache -> CmafClientCache)
-> (CmafClientCache -> CmafClientCache -> CmafClientCache)
-> Ord CmafClientCache
CmafClientCache -> CmafClientCache -> Bool
CmafClientCache -> CmafClientCache -> Ordering
CmafClientCache -> CmafClientCache -> CmafClientCache
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 :: CmafClientCache -> CmafClientCache -> CmafClientCache
$cmin :: CmafClientCache -> CmafClientCache -> CmafClientCache
max :: CmafClientCache -> CmafClientCache -> CmafClientCache
$cmax :: CmafClientCache -> CmafClientCache -> CmafClientCache
>= :: CmafClientCache -> CmafClientCache -> Bool
$c>= :: CmafClientCache -> CmafClientCache -> Bool
> :: CmafClientCache -> CmafClientCache -> Bool
$c> :: CmafClientCache -> CmafClientCache -> Bool
<= :: CmafClientCache -> CmafClientCache -> Bool
$c<= :: CmafClientCache -> CmafClientCache -> Bool
< :: CmafClientCache -> CmafClientCache -> Bool
$c< :: CmafClientCache -> CmafClientCache -> Bool
compare :: CmafClientCache -> CmafClientCache -> Ordering
$ccompare :: CmafClientCache -> CmafClientCache -> Ordering
$cp1Ord :: Eq CmafClientCache
Prelude.Ord,
      (forall x. CmafClientCache -> Rep CmafClientCache x)
-> (forall x. Rep CmafClientCache x -> CmafClientCache)
-> Generic CmafClientCache
forall x. Rep CmafClientCache x -> CmafClientCache
forall x. CmafClientCache -> Rep CmafClientCache x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CmafClientCache x -> CmafClientCache
$cfrom :: forall x. CmafClientCache -> Rep CmafClientCache x
Prelude.Generic
    )
  deriving newtype
    ( Int -> CmafClientCache -> Int
CmafClientCache -> Int
(Int -> CmafClientCache -> Int)
-> (CmafClientCache -> Int) -> Hashable CmafClientCache
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: CmafClientCache -> Int
$chash :: CmafClientCache -> Int
hashWithSalt :: Int -> CmafClientCache -> Int
$chashWithSalt :: Int -> CmafClientCache -> Int
Prelude.Hashable,
      CmafClientCache -> ()
(CmafClientCache -> ()) -> NFData CmafClientCache
forall a. (a -> ()) -> NFData a
rnf :: CmafClientCache -> ()
$crnf :: CmafClientCache -> ()
Prelude.NFData,
      Text -> Either String CmafClientCache
(Text -> Either String CmafClientCache) -> FromText CmafClientCache
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CmafClientCache
$cfromText :: Text -> Either String CmafClientCache
Core.FromText,
      CmafClientCache -> Text
(CmafClientCache -> Text) -> ToText CmafClientCache
forall a. (a -> Text) -> ToText a
toText :: CmafClientCache -> Text
$ctoText :: CmafClientCache -> Text
Core.ToText,
      CmafClientCache -> ByteString
(CmafClientCache -> ByteString) -> ToByteString CmafClientCache
forall a. (a -> ByteString) -> ToByteString a
toBS :: CmafClientCache -> ByteString
$ctoBS :: CmafClientCache -> ByteString
Core.ToByteString,
      CmafClientCache -> ByteStringBuilder
(CmafClientCache -> ByteStringBuilder) -> ToLog CmafClientCache
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CmafClientCache -> ByteStringBuilder
$cbuild :: CmafClientCache -> ByteStringBuilder
Core.ToLog,
      HeaderName -> CmafClientCache -> [Header]
(HeaderName -> CmafClientCache -> [Header])
-> ToHeader CmafClientCache
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CmafClientCache -> [Header]
$ctoHeader :: HeaderName -> CmafClientCache -> [Header]
Core.ToHeader,
      CmafClientCache -> QueryString
(CmafClientCache -> QueryString) -> ToQuery CmafClientCache
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CmafClientCache -> QueryString
$ctoQuery :: CmafClientCache -> QueryString
Core.ToQuery,
      Value -> Parser [CmafClientCache]
Value -> Parser CmafClientCache
(Value -> Parser CmafClientCache)
-> (Value -> Parser [CmafClientCache]) -> FromJSON CmafClientCache
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CmafClientCache]
$cparseJSONList :: Value -> Parser [CmafClientCache]
parseJSON :: Value -> Parser CmafClientCache
$cparseJSON :: Value -> Parser CmafClientCache
Core.FromJSON,
      FromJSONKeyFunction [CmafClientCache]
FromJSONKeyFunction CmafClientCache
FromJSONKeyFunction CmafClientCache
-> FromJSONKeyFunction [CmafClientCache]
-> FromJSONKey CmafClientCache
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CmafClientCache]
$cfromJSONKeyList :: FromJSONKeyFunction [CmafClientCache]
fromJSONKey :: FromJSONKeyFunction CmafClientCache
$cfromJSONKey :: FromJSONKeyFunction CmafClientCache
Core.FromJSONKey,
      [CmafClientCache] -> Encoding
[CmafClientCache] -> Value
CmafClientCache -> Encoding
CmafClientCache -> Value
(CmafClientCache -> Value)
-> (CmafClientCache -> Encoding)
-> ([CmafClientCache] -> Value)
-> ([CmafClientCache] -> Encoding)
-> ToJSON CmafClientCache
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CmafClientCache] -> Encoding
$ctoEncodingList :: [CmafClientCache] -> Encoding
toJSONList :: [CmafClientCache] -> Value
$ctoJSONList :: [CmafClientCache] -> Value
toEncoding :: CmafClientCache -> Encoding
$ctoEncoding :: CmafClientCache -> Encoding
toJSON :: CmafClientCache -> Value
$ctoJSON :: CmafClientCache -> Value
Core.ToJSON,
      ToJSONKeyFunction [CmafClientCache]
ToJSONKeyFunction CmafClientCache
ToJSONKeyFunction CmafClientCache
-> ToJSONKeyFunction [CmafClientCache] -> ToJSONKey CmafClientCache
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CmafClientCache]
$ctoJSONKeyList :: ToJSONKeyFunction [CmafClientCache]
toJSONKey :: ToJSONKeyFunction CmafClientCache
$ctoJSONKey :: ToJSONKeyFunction CmafClientCache
Core.ToJSONKey,
      [Node] -> Either String CmafClientCache
([Node] -> Either String CmafClientCache)
-> FromXML CmafClientCache
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CmafClientCache
$cparseXML :: [Node] -> Either String CmafClientCache
Core.FromXML,
      CmafClientCache -> XML
(CmafClientCache -> XML) -> ToXML CmafClientCache
forall a. (a -> XML) -> ToXML a
toXML :: CmafClientCache -> XML
$ctoXML :: CmafClientCache -> XML
Core.ToXML
    )

pattern CmafClientCache_DISABLED :: CmafClientCache
pattern $bCmafClientCache_DISABLED :: CmafClientCache
$mCmafClientCache_DISABLED :: forall r. CmafClientCache -> (Void# -> r) -> (Void# -> r) -> r
CmafClientCache_DISABLED = CmafClientCache' "DISABLED"

pattern CmafClientCache_ENABLED :: CmafClientCache
pattern $bCmafClientCache_ENABLED :: CmafClientCache
$mCmafClientCache_ENABLED :: forall r. CmafClientCache -> (Void# -> r) -> (Void# -> r) -> r
CmafClientCache_ENABLED = CmafClientCache' "ENABLED"

{-# COMPLETE
  CmafClientCache_DISABLED,
  CmafClientCache_ENABLED,
  CmafClientCache'
  #-}