{-# 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.MovReference
-- 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.MovReference
  ( MovReference
      ( ..,
        MovReference_EXTERNAL,
        MovReference_SELF_CONTAINED
      ),
  )
where

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

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

pattern MovReference_EXTERNAL :: MovReference
pattern $bMovReference_EXTERNAL :: MovReference
$mMovReference_EXTERNAL :: forall r. MovReference -> (Void# -> r) -> (Void# -> r) -> r
MovReference_EXTERNAL = MovReference' "EXTERNAL"

pattern MovReference_SELF_CONTAINED :: MovReference
pattern $bMovReference_SELF_CONTAINED :: MovReference
$mMovReference_SELF_CONTAINED :: forall r. MovReference -> (Void# -> r) -> (Void# -> r) -> r
MovReference_SELF_CONTAINED = MovReference' "SELF_CONTAINED"

{-# COMPLETE
  MovReference_EXTERNAL,
  MovReference_SELF_CONTAINED,
  MovReference'
  #-}