{-# 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.Glue.Types.TriggerType
-- 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.Glue.Types.TriggerType
  ( TriggerType
      ( ..,
        TriggerType_CONDITIONAL,
        TriggerType_EVENT,
        TriggerType_ON_DEMAND,
        TriggerType_SCHEDULED
      ),
  )
where

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

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

pattern TriggerType_CONDITIONAL :: TriggerType
pattern $bTriggerType_CONDITIONAL :: TriggerType
$mTriggerType_CONDITIONAL :: forall {r}. TriggerType -> ((# #) -> r) -> ((# #) -> r) -> r
TriggerType_CONDITIONAL = TriggerType' "CONDITIONAL"

pattern TriggerType_EVENT :: TriggerType
pattern $bTriggerType_EVENT :: TriggerType
$mTriggerType_EVENT :: forall {r}. TriggerType -> ((# #) -> r) -> ((# #) -> r) -> r
TriggerType_EVENT = TriggerType' "EVENT"

pattern TriggerType_ON_DEMAND :: TriggerType
pattern $bTriggerType_ON_DEMAND :: TriggerType
$mTriggerType_ON_DEMAND :: forall {r}. TriggerType -> ((# #) -> r) -> ((# #) -> r) -> r
TriggerType_ON_DEMAND = TriggerType' "ON_DEMAND"

pattern TriggerType_SCHEDULED :: TriggerType
pattern $bTriggerType_SCHEDULED :: TriggerType
$mTriggerType_SCHEDULED :: forall {r}. TriggerType -> ((# #) -> r) -> ((# #) -> r) -> r
TriggerType_SCHEDULED = TriggerType' "SCHEDULED"

{-# COMPLETE
  TriggerType_CONDITIONAL,
  TriggerType_EVENT,
  TriggerType_ON_DEMAND,
  TriggerType_SCHEDULED,
  TriggerType'
  #-}