{-# 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.AutoScaling.Types.WarmPoolStatus
-- 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.AutoScaling.Types.WarmPoolStatus
  ( WarmPoolStatus
      ( ..,
        WarmPoolStatus_PendingDelete
      ),
  )
where

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

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

pattern WarmPoolStatus_PendingDelete :: WarmPoolStatus
pattern $bWarmPoolStatus_PendingDelete :: WarmPoolStatus
$mWarmPoolStatus_PendingDelete :: forall r. WarmPoolStatus -> (Void# -> r) -> (Void# -> r) -> r
WarmPoolStatus_PendingDelete = WarmPoolStatus' "PendingDelete"

{-# COMPLETE
  WarmPoolStatus_PendingDelete,
  WarmPoolStatus'
  #-}