{-# 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.LastCrawlStatus
-- 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.LastCrawlStatus
  ( LastCrawlStatus
      ( ..,
        LastCrawlStatus_CANCELLED,
        LastCrawlStatus_FAILED,
        LastCrawlStatus_SUCCEEDED
      ),
  )
where

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

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

pattern LastCrawlStatus_CANCELLED :: LastCrawlStatus
pattern $bLastCrawlStatus_CANCELLED :: LastCrawlStatus
$mLastCrawlStatus_CANCELLED :: forall {r}. LastCrawlStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LastCrawlStatus_CANCELLED = LastCrawlStatus' "CANCELLED"

pattern LastCrawlStatus_FAILED :: LastCrawlStatus
pattern $bLastCrawlStatus_FAILED :: LastCrawlStatus
$mLastCrawlStatus_FAILED :: forall {r}. LastCrawlStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LastCrawlStatus_FAILED = LastCrawlStatus' "FAILED"

pattern LastCrawlStatus_SUCCEEDED :: LastCrawlStatus
pattern $bLastCrawlStatus_SUCCEEDED :: LastCrawlStatus
$mLastCrawlStatus_SUCCEEDED :: forall {r}. LastCrawlStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LastCrawlStatus_SUCCEEDED = LastCrawlStatus' "SUCCEEDED"

{-# COMPLETE
  LastCrawlStatus_CANCELLED,
  LastCrawlStatus_FAILED,
  LastCrawlStatus_SUCCEEDED,
  LastCrawlStatus'
  #-}