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

pattern F4vMoovPlacement_NORMAL :: F4vMoovPlacement
pattern $bF4vMoovPlacement_NORMAL :: F4vMoovPlacement
$mF4vMoovPlacement_NORMAL :: forall r. F4vMoovPlacement -> (Void# -> r) -> (Void# -> r) -> r
F4vMoovPlacement_NORMAL = F4vMoovPlacement' "NORMAL"

pattern F4vMoovPlacement_PROGRESSIVE_DOWNLOAD :: F4vMoovPlacement
pattern $bF4vMoovPlacement_PROGRESSIVE_DOWNLOAD :: F4vMoovPlacement
$mF4vMoovPlacement_PROGRESSIVE_DOWNLOAD :: forall r. F4vMoovPlacement -> (Void# -> r) -> (Void# -> r) -> r
F4vMoovPlacement_PROGRESSIVE_DOWNLOAD = F4vMoovPlacement' "PROGRESSIVE_DOWNLOAD"

{-# COMPLETE
  F4vMoovPlacement_NORMAL,
  F4vMoovPlacement_PROGRESSIVE_DOWNLOAD,
  F4vMoovPlacement'
  #-}