{-# 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.Type
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaConvert.Types.Type
  ( Type
      ( ..,
        Type_CUSTOM,
        Type_SYSTEM
      ),
  )
where

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

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

pattern Type_CUSTOM :: Type
pattern $bType_CUSTOM :: Type
$mType_CUSTOM :: forall {r}. Type -> ((# #) -> r) -> ((# #) -> r) -> r
Type_CUSTOM = Type' "CUSTOM"

pattern Type_SYSTEM :: Type
pattern $bType_SYSTEM :: Type
$mType_SYSTEM :: forall {r}. Type -> ((# #) -> r) -> ((# #) -> r) -> r
Type_SYSTEM = Type' "SYSTEM"

{-# COMPLETE
  Type_CUSTOM,
  Type_SYSTEM,
  Type'
  #-}