{-# 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.RegistryStatus
-- 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.RegistryStatus
  ( RegistryStatus
      ( ..,
        RegistryStatus_AVAILABLE,
        RegistryStatus_DELETING
      ),
  )
where

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

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

pattern RegistryStatus_AVAILABLE :: RegistryStatus
pattern $bRegistryStatus_AVAILABLE :: RegistryStatus
$mRegistryStatus_AVAILABLE :: forall r. RegistryStatus -> (Void# -> r) -> (Void# -> r) -> r
RegistryStatus_AVAILABLE = RegistryStatus' "AVAILABLE"

pattern RegistryStatus_DELETING :: RegistryStatus
pattern $bRegistryStatus_DELETING :: RegistryStatus
$mRegistryStatus_DELETING :: forall r. RegistryStatus -> (Void# -> r) -> (Void# -> r) -> r
RegistryStatus_DELETING = RegistryStatus' "DELETING"

{-# COMPLETE
  RegistryStatus_AVAILABLE,
  RegistryStatus_DELETING,
  RegistryStatus'
  #-}