{-# 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.Amplify.Types.JobType
-- 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.Amplify.Types.JobType
  ( JobType
      ( ..,
        JobType_MANUAL,
        JobType_RELEASE,
        JobType_RETRY,
        JobType_WEB_HOOK
      ),
  )
where

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

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

pattern JobType_MANUAL :: JobType
pattern $bJobType_MANUAL :: JobType
$mJobType_MANUAL :: forall r. JobType -> (Void# -> r) -> (Void# -> r) -> r
JobType_MANUAL = JobType' "MANUAL"

pattern JobType_RELEASE :: JobType
pattern $bJobType_RELEASE :: JobType
$mJobType_RELEASE :: forall r. JobType -> (Void# -> r) -> (Void# -> r) -> r
JobType_RELEASE = JobType' "RELEASE"

pattern JobType_RETRY :: JobType
pattern $bJobType_RETRY :: JobType
$mJobType_RETRY :: forall r. JobType -> (Void# -> r) -> (Void# -> r) -> r
JobType_RETRY = JobType' "RETRY"

pattern JobType_WEB_HOOK :: JobType
pattern $bJobType_WEB_HOOK :: JobType
$mJobType_WEB_HOOK :: forall r. JobType -> (Void# -> r) -> (Void# -> r) -> r
JobType_WEB_HOOK = JobType' "WEB_HOOK"

{-# COMPLETE
  JobType_MANUAL,
  JobType_RELEASE,
  JobType_RETRY,
  JobType_WEB_HOOK,
  JobType'
  #-}