{-# 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.SimSpaceWeaver.Types.LifecycleManagementStrategy
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SimSpaceWeaver.Types.LifecycleManagementStrategy
  ( LifecycleManagementStrategy
      ( ..,
        LifecycleManagementStrategy_ByRequest,
        LifecycleManagementStrategy_BySpatialSubdivision,
        LifecycleManagementStrategy_PerWorker,
        LifecycleManagementStrategy_Unknown
      ),
  )
where

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

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

pattern LifecycleManagementStrategy_ByRequest :: LifecycleManagementStrategy
pattern $bLifecycleManagementStrategy_ByRequest :: LifecycleManagementStrategy
$mLifecycleManagementStrategy_ByRequest :: forall {r}.
LifecycleManagementStrategy -> ((# #) -> r) -> ((# #) -> r) -> r
LifecycleManagementStrategy_ByRequest = LifecycleManagementStrategy' "ByRequest"

pattern LifecycleManagementStrategy_BySpatialSubdivision :: LifecycleManagementStrategy
pattern $bLifecycleManagementStrategy_BySpatialSubdivision :: LifecycleManagementStrategy
$mLifecycleManagementStrategy_BySpatialSubdivision :: forall {r}.
LifecycleManagementStrategy -> ((# #) -> r) -> ((# #) -> r) -> r
LifecycleManagementStrategy_BySpatialSubdivision = LifecycleManagementStrategy' "BySpatialSubdivision"

pattern LifecycleManagementStrategy_PerWorker :: LifecycleManagementStrategy
pattern $bLifecycleManagementStrategy_PerWorker :: LifecycleManagementStrategy
$mLifecycleManagementStrategy_PerWorker :: forall {r}.
LifecycleManagementStrategy -> ((# #) -> r) -> ((# #) -> r) -> r
LifecycleManagementStrategy_PerWorker = LifecycleManagementStrategy' "PerWorker"

pattern LifecycleManagementStrategy_Unknown :: LifecycleManagementStrategy
pattern $bLifecycleManagementStrategy_Unknown :: LifecycleManagementStrategy
$mLifecycleManagementStrategy_Unknown :: forall {r}.
LifecycleManagementStrategy -> ((# #) -> r) -> ((# #) -> r) -> r
LifecycleManagementStrategy_Unknown = LifecycleManagementStrategy' "Unknown"

{-# COMPLETE
  LifecycleManagementStrategy_ByRequest,
  LifecycleManagementStrategy_BySpatialSubdivision,
  LifecycleManagementStrategy_PerWorker,
  LifecycleManagementStrategy_Unknown,
  LifecycleManagementStrategy'
  #-}