{-# 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.ElasticSearch.Types.PackageStatus
-- 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.ElasticSearch.Types.PackageStatus
  ( PackageStatus
      ( ..,
        PackageStatus_AVAILABLE,
        PackageStatus_COPYING,
        PackageStatus_COPY_FAILED,
        PackageStatus_DELETED,
        PackageStatus_DELETE_FAILED,
        PackageStatus_DELETING,
        PackageStatus_VALIDATING,
        PackageStatus_VALIDATION_FAILED
      ),
  )
where

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

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

pattern PackageStatus_AVAILABLE :: PackageStatus
pattern $bPackageStatus_AVAILABLE :: PackageStatus
$mPackageStatus_AVAILABLE :: forall r. PackageStatus -> (Void# -> r) -> (Void# -> r) -> r
PackageStatus_AVAILABLE = PackageStatus' "AVAILABLE"

pattern PackageStatus_COPYING :: PackageStatus
pattern $bPackageStatus_COPYING :: PackageStatus
$mPackageStatus_COPYING :: forall r. PackageStatus -> (Void# -> r) -> (Void# -> r) -> r
PackageStatus_COPYING = PackageStatus' "COPYING"

pattern PackageStatus_COPY_FAILED :: PackageStatus
pattern $bPackageStatus_COPY_FAILED :: PackageStatus
$mPackageStatus_COPY_FAILED :: forall r. PackageStatus -> (Void# -> r) -> (Void# -> r) -> r
PackageStatus_COPY_FAILED = PackageStatus' "COPY_FAILED"

pattern PackageStatus_DELETED :: PackageStatus
pattern $bPackageStatus_DELETED :: PackageStatus
$mPackageStatus_DELETED :: forall r. PackageStatus -> (Void# -> r) -> (Void# -> r) -> r
PackageStatus_DELETED = PackageStatus' "DELETED"

pattern PackageStatus_DELETE_FAILED :: PackageStatus
pattern $bPackageStatus_DELETE_FAILED :: PackageStatus
$mPackageStatus_DELETE_FAILED :: forall r. PackageStatus -> (Void# -> r) -> (Void# -> r) -> r
PackageStatus_DELETE_FAILED = PackageStatus' "DELETE_FAILED"

pattern PackageStatus_DELETING :: PackageStatus
pattern $bPackageStatus_DELETING :: PackageStatus
$mPackageStatus_DELETING :: forall r. PackageStatus -> (Void# -> r) -> (Void# -> r) -> r
PackageStatus_DELETING = PackageStatus' "DELETING"

pattern PackageStatus_VALIDATING :: PackageStatus
pattern $bPackageStatus_VALIDATING :: PackageStatus
$mPackageStatus_VALIDATING :: forall r. PackageStatus -> (Void# -> r) -> (Void# -> r) -> r
PackageStatus_VALIDATING = PackageStatus' "VALIDATING"

pattern PackageStatus_VALIDATION_FAILED :: PackageStatus
pattern $bPackageStatus_VALIDATION_FAILED :: PackageStatus
$mPackageStatus_VALIDATION_FAILED :: forall r. PackageStatus -> (Void# -> r) -> (Void# -> r) -> r
PackageStatus_VALIDATION_FAILED = PackageStatus' "VALIDATION_FAILED"

{-# COMPLETE
  PackageStatus_AVAILABLE,
  PackageStatus_COPYING,
  PackageStatus_COPY_FAILED,
  PackageStatus_DELETED,
  PackageStatus_DELETE_FAILED,
  PackageStatus_DELETING,
  PackageStatus_VALIDATING,
  PackageStatus_VALIDATION_FAILED,
  PackageStatus'
  #-}