{-# 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.Mp4MoovPlacement
-- 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.Mp4MoovPlacement
  ( Mp4MoovPlacement
      ( ..,
        Mp4MoovPlacement_NORMAL,
        Mp4MoovPlacement_PROGRESSIVE_DOWNLOAD
      ),
  )
where

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

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

pattern Mp4MoovPlacement_NORMAL :: Mp4MoovPlacement
pattern $bMp4MoovPlacement_NORMAL :: Mp4MoovPlacement
$mMp4MoovPlacement_NORMAL :: forall r. Mp4MoovPlacement -> (Void# -> r) -> (Void# -> r) -> r
Mp4MoovPlacement_NORMAL = Mp4MoovPlacement' "NORMAL"

pattern Mp4MoovPlacement_PROGRESSIVE_DOWNLOAD :: Mp4MoovPlacement
pattern $bMp4MoovPlacement_PROGRESSIVE_DOWNLOAD :: Mp4MoovPlacement
$mMp4MoovPlacement_PROGRESSIVE_DOWNLOAD :: forall r. Mp4MoovPlacement -> (Void# -> r) -> (Void# -> r) -> r
Mp4MoovPlacement_PROGRESSIVE_DOWNLOAD = Mp4MoovPlacement' "PROGRESSIVE_DOWNLOAD"

{-# COMPLETE
  Mp4MoovPlacement_NORMAL,
  Mp4MoovPlacement_PROGRESSIVE_DOWNLOAD,
  Mp4MoovPlacement'
  #-}