{-# 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.PartitionIndexStatus
-- 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.PartitionIndexStatus
  ( PartitionIndexStatus
      ( ..,
        PartitionIndexStatus_ACTIVE,
        PartitionIndexStatus_CREATING,
        PartitionIndexStatus_DELETING,
        PartitionIndexStatus_FAILED
      ),
  )
where

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

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

pattern PartitionIndexStatus_ACTIVE :: PartitionIndexStatus
pattern $bPartitionIndexStatus_ACTIVE :: PartitionIndexStatus
$mPartitionIndexStatus_ACTIVE :: forall r. PartitionIndexStatus -> (Void# -> r) -> (Void# -> r) -> r
PartitionIndexStatus_ACTIVE = PartitionIndexStatus' "ACTIVE"

pattern PartitionIndexStatus_CREATING :: PartitionIndexStatus
pattern $bPartitionIndexStatus_CREATING :: PartitionIndexStatus
$mPartitionIndexStatus_CREATING :: forall r. PartitionIndexStatus -> (Void# -> r) -> (Void# -> r) -> r
PartitionIndexStatus_CREATING = PartitionIndexStatus' "CREATING"

pattern PartitionIndexStatus_DELETING :: PartitionIndexStatus
pattern $bPartitionIndexStatus_DELETING :: PartitionIndexStatus
$mPartitionIndexStatus_DELETING :: forall r. PartitionIndexStatus -> (Void# -> r) -> (Void# -> r) -> r
PartitionIndexStatus_DELETING = PartitionIndexStatus' "DELETING"

pattern PartitionIndexStatus_FAILED :: PartitionIndexStatus
pattern $bPartitionIndexStatus_FAILED :: PartitionIndexStatus
$mPartitionIndexStatus_FAILED :: forall r. PartitionIndexStatus -> (Void# -> r) -> (Void# -> r) -> r
PartitionIndexStatus_FAILED = PartitionIndexStatus' "FAILED"

{-# COMPLETE
  PartitionIndexStatus_ACTIVE,
  PartitionIndexStatus_CREATING,
  PartitionIndexStatus_DELETING,
  PartitionIndexStatus_FAILED,
  PartitionIndexStatus'
  #-}