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

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

newtype LastCrawlStatus = LastCrawlStatus'
  { LastCrawlStatus -> Text
fromLastCrawlStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> LastCrawlStatus -> ShowS
[LastCrawlStatus] -> ShowS
LastCrawlStatus -> String
(Int -> LastCrawlStatus -> ShowS)
-> (LastCrawlStatus -> String)
-> ([LastCrawlStatus] -> ShowS)
-> Show LastCrawlStatus
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]
(Int -> ReadS LastCrawlStatus)
-> ReadS [LastCrawlStatus]
-> ReadPrec LastCrawlStatus
-> ReadPrec [LastCrawlStatus]
-> Read 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
(LastCrawlStatus -> LastCrawlStatus -> Bool)
-> (LastCrawlStatus -> LastCrawlStatus -> Bool)
-> Eq LastCrawlStatus
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
Eq LastCrawlStatus
-> (LastCrawlStatus -> LastCrawlStatus -> Ordering)
-> (LastCrawlStatus -> LastCrawlStatus -> Bool)
-> (LastCrawlStatus -> LastCrawlStatus -> Bool)
-> (LastCrawlStatus -> LastCrawlStatus -> Bool)
-> (LastCrawlStatus -> LastCrawlStatus -> Bool)
-> (LastCrawlStatus -> LastCrawlStatus -> LastCrawlStatus)
-> (LastCrawlStatus -> LastCrawlStatus -> LastCrawlStatus)
-> Ord 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
$cp1Ord :: Eq LastCrawlStatus
Prelude.Ord,
      (forall x. LastCrawlStatus -> Rep LastCrawlStatus x)
-> (forall x. Rep LastCrawlStatus x -> LastCrawlStatus)
-> Generic LastCrawlStatus
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
    ( Int -> LastCrawlStatus -> Int
LastCrawlStatus -> Int
(Int -> LastCrawlStatus -> Int)
-> (LastCrawlStatus -> Int) -> Hashable LastCrawlStatus
forall 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 -> ()
(LastCrawlStatus -> ()) -> NFData LastCrawlStatus
forall a. (a -> ()) -> NFData a
rnf :: LastCrawlStatus -> ()
$crnf :: LastCrawlStatus -> ()
Prelude.NFData,
      Text -> Either String LastCrawlStatus
(Text -> Either String LastCrawlStatus) -> FromText LastCrawlStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String LastCrawlStatus
$cfromText :: Text -> Either String LastCrawlStatus
Core.FromText,
      LastCrawlStatus -> Text
(LastCrawlStatus -> Text) -> ToText LastCrawlStatus
forall a. (a -> Text) -> ToText a
toText :: LastCrawlStatus -> Text
$ctoText :: LastCrawlStatus -> Text
Core.ToText,
      LastCrawlStatus -> ByteString
(LastCrawlStatus -> ByteString) -> ToByteString LastCrawlStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: LastCrawlStatus -> ByteString
$ctoBS :: LastCrawlStatus -> ByteString
Core.ToByteString,
      LastCrawlStatus -> ByteStringBuilder
(LastCrawlStatus -> ByteStringBuilder) -> ToLog LastCrawlStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: LastCrawlStatus -> ByteStringBuilder
$cbuild :: LastCrawlStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> LastCrawlStatus -> [Header]
(HeaderName -> LastCrawlStatus -> [Header])
-> ToHeader LastCrawlStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> LastCrawlStatus -> [Header]
$ctoHeader :: HeaderName -> LastCrawlStatus -> [Header]
Core.ToHeader,
      LastCrawlStatus -> QueryString
(LastCrawlStatus -> QueryString) -> ToQuery LastCrawlStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: LastCrawlStatus -> QueryString
$ctoQuery :: LastCrawlStatus -> QueryString
Core.ToQuery,
      Value -> Parser [LastCrawlStatus]
Value -> Parser LastCrawlStatus
(Value -> Parser LastCrawlStatus)
-> (Value -> Parser [LastCrawlStatus]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [LastCrawlStatus]
FromJSONKeyFunction LastCrawlStatus
FromJSONKeyFunction LastCrawlStatus
-> FromJSONKeyFunction [LastCrawlStatus]
-> FromJSONKey LastCrawlStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [LastCrawlStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [LastCrawlStatus]
fromJSONKey :: FromJSONKeyFunction LastCrawlStatus
$cfromJSONKey :: FromJSONKeyFunction LastCrawlStatus
Core.FromJSONKey,
      [LastCrawlStatus] -> Encoding
[LastCrawlStatus] -> Value
LastCrawlStatus -> Encoding
LastCrawlStatus -> Value
(LastCrawlStatus -> Value)
-> (LastCrawlStatus -> Encoding)
-> ([LastCrawlStatus] -> Value)
-> ([LastCrawlStatus] -> Encoding)
-> ToJSON LastCrawlStatus
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
Core.ToJSON,
      ToJSONKeyFunction [LastCrawlStatus]
ToJSONKeyFunction LastCrawlStatus
ToJSONKeyFunction LastCrawlStatus
-> ToJSONKeyFunction [LastCrawlStatus] -> ToJSONKey LastCrawlStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [LastCrawlStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [LastCrawlStatus]
toJSONKey :: ToJSONKeyFunction LastCrawlStatus
$ctoJSONKey :: ToJSONKeyFunction LastCrawlStatus
Core.ToJSONKey,
      [Node] -> Either String LastCrawlStatus
([Node] -> Either String LastCrawlStatus)
-> FromXML LastCrawlStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String LastCrawlStatus
$cparseXML :: [Node] -> Either String LastCrawlStatus
Core.FromXML,
      LastCrawlStatus -> XML
(LastCrawlStatus -> XML) -> ToXML LastCrawlStatus
forall a. (a -> XML) -> ToXML a
toXML :: LastCrawlStatus -> XML
$ctoXML :: LastCrawlStatus -> XML
Core.ToXML
    )

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

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

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

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