{-# 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.GameServerGroupAction
-- 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.GameServerGroupAction
  ( GameServerGroupAction
      ( ..,
        GameServerGroupAction_REPLACE_INSTANCE_TYPES
      ),
  )
where

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

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

pattern GameServerGroupAction_REPLACE_INSTANCE_TYPES :: GameServerGroupAction
pattern $bGameServerGroupAction_REPLACE_INSTANCE_TYPES :: GameServerGroupAction
$mGameServerGroupAction_REPLACE_INSTANCE_TYPES :: forall r.
GameServerGroupAction -> (Void# -> r) -> (Void# -> r) -> r
GameServerGroupAction_REPLACE_INSTANCE_TYPES = GameServerGroupAction' "REPLACE_INSTANCE_TYPES"

{-# COMPLETE
  GameServerGroupAction_REPLACE_INSTANCE_TYPES,
  GameServerGroupAction'
  #-}