{-# 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.CmafWriteHLSManifest
-- 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.CmafWriteHLSManifest
  ( CmafWriteHLSManifest
      ( ..,
        CmafWriteHLSManifest_DISABLED,
        CmafWriteHLSManifest_ENABLED
      ),
  )
where

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

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

pattern CmafWriteHLSManifest_DISABLED :: CmafWriteHLSManifest
pattern $bCmafWriteHLSManifest_DISABLED :: CmafWriteHLSManifest
$mCmafWriteHLSManifest_DISABLED :: forall r. CmafWriteHLSManifest -> (Void# -> r) -> (Void# -> r) -> r
CmafWriteHLSManifest_DISABLED = CmafWriteHLSManifest' "DISABLED"

pattern CmafWriteHLSManifest_ENABLED :: CmafWriteHLSManifest
pattern $bCmafWriteHLSManifest_ENABLED :: CmafWriteHLSManifest
$mCmafWriteHLSManifest_ENABLED :: forall r. CmafWriteHLSManifest -> (Void# -> r) -> (Void# -> r) -> r
CmafWriteHLSManifest_ENABLED = CmafWriteHLSManifest' "ENABLED"

{-# COMPLETE
  CmafWriteHLSManifest_DISABLED,
  CmafWriteHLSManifest_ENABLED,
  CmafWriteHLSManifest'
  #-}