{-# 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.GameServerGroupStatus
-- 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.GameServerGroupStatus
  ( GameServerGroupStatus
      ( ..,
        GameServerGroupStatus_ACTIVATING,
        GameServerGroupStatus_ACTIVE,
        GameServerGroupStatus_DELETED,
        GameServerGroupStatus_DELETE_SCHEDULED,
        GameServerGroupStatus_DELETING,
        GameServerGroupStatus_ERROR,
        GameServerGroupStatus_NEW
      ),
  )
where

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

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

pattern GameServerGroupStatus_ACTIVATING :: GameServerGroupStatus
pattern $bGameServerGroupStatus_ACTIVATING :: GameServerGroupStatus
$mGameServerGroupStatus_ACTIVATING :: forall r.
GameServerGroupStatus -> (Void# -> r) -> (Void# -> r) -> r
GameServerGroupStatus_ACTIVATING = GameServerGroupStatus' "ACTIVATING"

pattern GameServerGroupStatus_ACTIVE :: GameServerGroupStatus
pattern $bGameServerGroupStatus_ACTIVE :: GameServerGroupStatus
$mGameServerGroupStatus_ACTIVE :: forall r.
GameServerGroupStatus -> (Void# -> r) -> (Void# -> r) -> r
GameServerGroupStatus_ACTIVE = GameServerGroupStatus' "ACTIVE"

pattern GameServerGroupStatus_DELETED :: GameServerGroupStatus
pattern $bGameServerGroupStatus_DELETED :: GameServerGroupStatus
$mGameServerGroupStatus_DELETED :: forall r.
GameServerGroupStatus -> (Void# -> r) -> (Void# -> r) -> r
GameServerGroupStatus_DELETED = GameServerGroupStatus' "DELETED"

pattern GameServerGroupStatus_DELETE_SCHEDULED :: GameServerGroupStatus
pattern $bGameServerGroupStatus_DELETE_SCHEDULED :: GameServerGroupStatus
$mGameServerGroupStatus_DELETE_SCHEDULED :: forall r.
GameServerGroupStatus -> (Void# -> r) -> (Void# -> r) -> r
GameServerGroupStatus_DELETE_SCHEDULED = GameServerGroupStatus' "DELETE_SCHEDULED"

pattern GameServerGroupStatus_DELETING :: GameServerGroupStatus
pattern $bGameServerGroupStatus_DELETING :: GameServerGroupStatus
$mGameServerGroupStatus_DELETING :: forall r.
GameServerGroupStatus -> (Void# -> r) -> (Void# -> r) -> r
GameServerGroupStatus_DELETING = GameServerGroupStatus' "DELETING"

pattern GameServerGroupStatus_ERROR :: GameServerGroupStatus
pattern $bGameServerGroupStatus_ERROR :: GameServerGroupStatus
$mGameServerGroupStatus_ERROR :: forall r.
GameServerGroupStatus -> (Void# -> r) -> (Void# -> r) -> r
GameServerGroupStatus_ERROR = GameServerGroupStatus' "ERROR"

pattern GameServerGroupStatus_NEW :: GameServerGroupStatus
pattern $bGameServerGroupStatus_NEW :: GameServerGroupStatus
$mGameServerGroupStatus_NEW :: forall r.
GameServerGroupStatus -> (Void# -> r) -> (Void# -> r) -> r
GameServerGroupStatus_NEW = GameServerGroupStatus' "NEW"

{-# COMPLETE
  GameServerGroupStatus_ACTIVATING,
  GameServerGroupStatus_ACTIVE,
  GameServerGroupStatus_DELETED,
  GameServerGroupStatus_DELETE_SCHEDULED,
  GameServerGroupStatus_DELETING,
  GameServerGroupStatus_ERROR,
  GameServerGroupStatus_NEW,
  GameServerGroupStatus'
  #-}