{-# 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.WarmPoolState
-- 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.WarmPoolState
  ( WarmPoolState
      ( ..,
        WarmPoolState_Running,
        WarmPoolState_Stopped
      ),
  )
where

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

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

pattern WarmPoolState_Running :: WarmPoolState
pattern $bWarmPoolState_Running :: WarmPoolState
$mWarmPoolState_Running :: forall r. WarmPoolState -> (Void# -> r) -> (Void# -> r) -> r
WarmPoolState_Running = WarmPoolState' "Running"

pattern WarmPoolState_Stopped :: WarmPoolState
pattern $bWarmPoolState_Stopped :: WarmPoolState
$mWarmPoolState_Stopped :: forall r. WarmPoolState -> (Void# -> r) -> (Void# -> r) -> r
WarmPoolState_Stopped = WarmPoolState' "Stopped"

{-# COMPLETE
  WarmPoolState_Running,
  WarmPoolState_Stopped,
  WarmPoolState'
  #-}