{-# 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.GameLift.Types.ScalingStatusType
-- 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.GameLift.Types.ScalingStatusType
  ( ScalingStatusType
      ( ..,
        ScalingStatusType_ACTIVE,
        ScalingStatusType_DELETED,
        ScalingStatusType_DELETE_REQUESTED,
        ScalingStatusType_DELETING,
        ScalingStatusType_ERROR,
        ScalingStatusType_UPDATE_REQUESTED,
        ScalingStatusType_UPDATING
      ),
  )
where

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

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

pattern ScalingStatusType_ACTIVE :: ScalingStatusType
pattern $bScalingStatusType_ACTIVE :: ScalingStatusType
$mScalingStatusType_ACTIVE :: forall r. ScalingStatusType -> (Void# -> r) -> (Void# -> r) -> r
ScalingStatusType_ACTIVE = ScalingStatusType' "ACTIVE"

pattern ScalingStatusType_DELETED :: ScalingStatusType
pattern $bScalingStatusType_DELETED :: ScalingStatusType
$mScalingStatusType_DELETED :: forall r. ScalingStatusType -> (Void# -> r) -> (Void# -> r) -> r
ScalingStatusType_DELETED = ScalingStatusType' "DELETED"

pattern ScalingStatusType_DELETE_REQUESTED :: ScalingStatusType
pattern $bScalingStatusType_DELETE_REQUESTED :: ScalingStatusType
$mScalingStatusType_DELETE_REQUESTED :: forall r. ScalingStatusType -> (Void# -> r) -> (Void# -> r) -> r
ScalingStatusType_DELETE_REQUESTED = ScalingStatusType' "DELETE_REQUESTED"

pattern ScalingStatusType_DELETING :: ScalingStatusType
pattern $bScalingStatusType_DELETING :: ScalingStatusType
$mScalingStatusType_DELETING :: forall r. ScalingStatusType -> (Void# -> r) -> (Void# -> r) -> r
ScalingStatusType_DELETING = ScalingStatusType' "DELETING"

pattern ScalingStatusType_ERROR :: ScalingStatusType
pattern $bScalingStatusType_ERROR :: ScalingStatusType
$mScalingStatusType_ERROR :: forall r. ScalingStatusType -> (Void# -> r) -> (Void# -> r) -> r
ScalingStatusType_ERROR = ScalingStatusType' "ERROR"

pattern ScalingStatusType_UPDATE_REQUESTED :: ScalingStatusType
pattern $bScalingStatusType_UPDATE_REQUESTED :: ScalingStatusType
$mScalingStatusType_UPDATE_REQUESTED :: forall r. ScalingStatusType -> (Void# -> r) -> (Void# -> r) -> r
ScalingStatusType_UPDATE_REQUESTED = ScalingStatusType' "UPDATE_REQUESTED"

pattern ScalingStatusType_UPDATING :: ScalingStatusType
pattern $bScalingStatusType_UPDATING :: ScalingStatusType
$mScalingStatusType_UPDATING :: forall r. ScalingStatusType -> (Void# -> r) -> (Void# -> r) -> r
ScalingStatusType_UPDATING = ScalingStatusType' "UPDATING"

{-# COMPLETE
  ScalingStatusType_ACTIVE,
  ScalingStatusType_DELETED,
  ScalingStatusType_DELETE_REQUESTED,
  ScalingStatusType_DELETING,
  ScalingStatusType_ERROR,
  ScalingStatusType_UPDATE_REQUESTED,
  ScalingStatusType_UPDATING,
  ScalingStatusType'
  #-}