{-# 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.StorageGateway.Types.PoolStatus
-- 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.StorageGateway.Types.PoolStatus
  ( PoolStatus
      ( ..,
        PoolStatus_ACTIVE,
        PoolStatus_DELETED
      ),
  )
where

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

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

pattern PoolStatus_ACTIVE :: PoolStatus
pattern $bPoolStatus_ACTIVE :: PoolStatus
$mPoolStatus_ACTIVE :: forall r. PoolStatus -> (Void# -> r) -> (Void# -> r) -> r
PoolStatus_ACTIVE = PoolStatus' "ACTIVE"

pattern PoolStatus_DELETED :: PoolStatus
pattern $bPoolStatus_DELETED :: PoolStatus
$mPoolStatus_DELETED :: forall r. PoolStatus -> (Void# -> r) -> (Void# -> r) -> r
PoolStatus_DELETED = PoolStatus' "DELETED"

{-# COMPLETE
  PoolStatus_ACTIVE,
  PoolStatus_DELETED,
  PoolStatus'
  #-}