{-# 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.HlsOfflineEncrypted
-- 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.HlsOfflineEncrypted
  ( HlsOfflineEncrypted
      ( ..,
        HlsOfflineEncrypted_DISABLED,
        HlsOfflineEncrypted_ENABLED
      ),
  )
where

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

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

pattern HlsOfflineEncrypted_DISABLED :: HlsOfflineEncrypted
pattern $bHlsOfflineEncrypted_DISABLED :: HlsOfflineEncrypted
$mHlsOfflineEncrypted_DISABLED :: forall r. HlsOfflineEncrypted -> (Void# -> r) -> (Void# -> r) -> r
HlsOfflineEncrypted_DISABLED = HlsOfflineEncrypted' "DISABLED"

pattern HlsOfflineEncrypted_ENABLED :: HlsOfflineEncrypted
pattern $bHlsOfflineEncrypted_ENABLED :: HlsOfflineEncrypted
$mHlsOfflineEncrypted_ENABLED :: forall r. HlsOfflineEncrypted -> (Void# -> r) -> (Void# -> r) -> r
HlsOfflineEncrypted_ENABLED = HlsOfflineEncrypted' "ENABLED"

{-# COMPLETE
  HlsOfflineEncrypted_DISABLED,
  HlsOfflineEncrypted_ENABLED,
  HlsOfflineEncrypted'
  #-}