{-# 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.FleetAction
-- 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.FleetAction
  ( FleetAction
      ( ..,
        FleetAction_AUTO_SCALING
      ),
  )
where

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

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

pattern FleetAction_AUTO_SCALING :: FleetAction
pattern $bFleetAction_AUTO_SCALING :: FleetAction
$mFleetAction_AUTO_SCALING :: forall r. FleetAction -> (Void# -> r) -> (Void# -> r) -> r
FleetAction_AUTO_SCALING = FleetAction' "AUTO_SCALING"

{-# COMPLETE
  FleetAction_AUTO_SCALING,
  FleetAction'
  #-}