{-# 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.JobPhase
-- 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.JobPhase
  ( JobPhase
      ( ..,
        JobPhase_PROBING,
        JobPhase_TRANSCODING,
        JobPhase_UPLOADING
      ),
  )
where

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

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

pattern JobPhase_PROBING :: JobPhase
pattern $bJobPhase_PROBING :: JobPhase
$mJobPhase_PROBING :: forall r. JobPhase -> (Void# -> r) -> (Void# -> r) -> r
JobPhase_PROBING = JobPhase' "PROBING"

pattern JobPhase_TRANSCODING :: JobPhase
pattern $bJobPhase_TRANSCODING :: JobPhase
$mJobPhase_TRANSCODING :: forall r. JobPhase -> (Void# -> r) -> (Void# -> r) -> r
JobPhase_TRANSCODING = JobPhase' "TRANSCODING"

pattern JobPhase_UPLOADING :: JobPhase
pattern $bJobPhase_UPLOADING :: JobPhase
$mJobPhase_UPLOADING :: forall r. JobPhase -> (Void# -> r) -> (Void# -> r) -> r
JobPhase_UPLOADING = JobPhase' "UPLOADING"

{-# COMPLETE
  JobPhase_PROBING,
  JobPhase_TRANSCODING,
  JobPhase_UPLOADING,
  JobPhase'
  #-}