{-# 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.SchemaVersionStatus
-- 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.SchemaVersionStatus
  ( SchemaVersionStatus
      ( ..,
        SchemaVersionStatus_AVAILABLE,
        SchemaVersionStatus_DELETING,
        SchemaVersionStatus_FAILURE,
        SchemaVersionStatus_PENDING
      ),
  )
where

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

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

pattern SchemaVersionStatus_AVAILABLE :: SchemaVersionStatus
pattern $bSchemaVersionStatus_AVAILABLE :: SchemaVersionStatus
$mSchemaVersionStatus_AVAILABLE :: forall r. SchemaVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
SchemaVersionStatus_AVAILABLE = SchemaVersionStatus' "AVAILABLE"

pattern SchemaVersionStatus_DELETING :: SchemaVersionStatus
pattern $bSchemaVersionStatus_DELETING :: SchemaVersionStatus
$mSchemaVersionStatus_DELETING :: forall r. SchemaVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
SchemaVersionStatus_DELETING = SchemaVersionStatus' "DELETING"

pattern SchemaVersionStatus_FAILURE :: SchemaVersionStatus
pattern $bSchemaVersionStatus_FAILURE :: SchemaVersionStatus
$mSchemaVersionStatus_FAILURE :: forall r. SchemaVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
SchemaVersionStatus_FAILURE = SchemaVersionStatus' "FAILURE"

pattern SchemaVersionStatus_PENDING :: SchemaVersionStatus
pattern $bSchemaVersionStatus_PENDING :: SchemaVersionStatus
$mSchemaVersionStatus_PENDING :: forall r. SchemaVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
SchemaVersionStatus_PENDING = SchemaVersionStatus' "PENDING"

{-# COMPLETE
  SchemaVersionStatus_AVAILABLE,
  SchemaVersionStatus_DELETING,
  SchemaVersionStatus_FAILURE,
  SchemaVersionStatus_PENDING,
  SchemaVersionStatus'
  #-}