{-# 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.AutoScalingPlans.Types.ScalingStatusCode
-- 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.AutoScalingPlans.Types.ScalingStatusCode
  ( ScalingStatusCode
      ( ..,
        ScalingStatusCode_Active,
        ScalingStatusCode_Inactive,
        ScalingStatusCode_PartiallyActive
      ),
  )
where

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

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

pattern ScalingStatusCode_Active :: ScalingStatusCode
pattern $bScalingStatusCode_Active :: ScalingStatusCode
$mScalingStatusCode_Active :: forall r. ScalingStatusCode -> (Void# -> r) -> (Void# -> r) -> r
ScalingStatusCode_Active = ScalingStatusCode' "Active"

pattern ScalingStatusCode_Inactive :: ScalingStatusCode
pattern $bScalingStatusCode_Inactive :: ScalingStatusCode
$mScalingStatusCode_Inactive :: forall r. ScalingStatusCode -> (Void# -> r) -> (Void# -> r) -> r
ScalingStatusCode_Inactive = ScalingStatusCode' "Inactive"

pattern ScalingStatusCode_PartiallyActive :: ScalingStatusCode
pattern $bScalingStatusCode_PartiallyActive :: ScalingStatusCode
$mScalingStatusCode_PartiallyActive :: forall r. ScalingStatusCode -> (Void# -> r) -> (Void# -> r) -> r
ScalingStatusCode_PartiallyActive = ScalingStatusCode' "PartiallyActive"

{-# COMPLETE
  ScalingStatusCode_Active,
  ScalingStatusCode_Inactive,
  ScalingStatusCode_PartiallyActive,
  ScalingStatusCode'
  #-}