{-# 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.SchemaStatus
-- 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.SchemaStatus
  ( SchemaStatus
      ( ..,
        SchemaStatus_AVAILABLE,
        SchemaStatus_DELETING,
        SchemaStatus_PENDING
      ),
  )
where

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

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

pattern SchemaStatus_AVAILABLE :: SchemaStatus
pattern $bSchemaStatus_AVAILABLE :: SchemaStatus
$mSchemaStatus_AVAILABLE :: forall r. SchemaStatus -> (Void# -> r) -> (Void# -> r) -> r
SchemaStatus_AVAILABLE = SchemaStatus' "AVAILABLE"

pattern SchemaStatus_DELETING :: SchemaStatus
pattern $bSchemaStatus_DELETING :: SchemaStatus
$mSchemaStatus_DELETING :: forall r. SchemaStatus -> (Void# -> r) -> (Void# -> r) -> r
SchemaStatus_DELETING = SchemaStatus' "DELETING"

pattern SchemaStatus_PENDING :: SchemaStatus
pattern $bSchemaStatus_PENDING :: SchemaStatus
$mSchemaStatus_PENDING :: forall r. SchemaStatus -> (Void# -> r) -> (Void# -> r) -> r
SchemaStatus_PENDING = SchemaStatus' "PENDING"

{-# COMPLETE
  SchemaStatus_AVAILABLE,
  SchemaStatus_DELETING,
  SchemaStatus_PENDING,
  SchemaStatus'
  #-}