{-# 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.MigrationHubStrategy.Types.Strategy
-- 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.MigrationHubStrategy.Types.Strategy
  ( Strategy
      ( ..,
        Strategy_Refactor,
        Strategy_Rehost,
        Strategy_Relocate,
        Strategy_Replatform,
        Strategy_Repurchase,
        Strategy_Retain,
        Strategy_Retirement
      ),
  )
where

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

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

pattern Strategy_Refactor :: Strategy
pattern $bStrategy_Refactor :: Strategy
$mStrategy_Refactor :: forall {r}. Strategy -> ((# #) -> r) -> ((# #) -> r) -> r
Strategy_Refactor = Strategy' "Refactor"

pattern Strategy_Rehost :: Strategy
pattern $bStrategy_Rehost :: Strategy
$mStrategy_Rehost :: forall {r}. Strategy -> ((# #) -> r) -> ((# #) -> r) -> r
Strategy_Rehost = Strategy' "Rehost"

pattern Strategy_Relocate :: Strategy
pattern $bStrategy_Relocate :: Strategy
$mStrategy_Relocate :: forall {r}. Strategy -> ((# #) -> r) -> ((# #) -> r) -> r
Strategy_Relocate = Strategy' "Relocate"

pattern Strategy_Replatform :: Strategy
pattern $bStrategy_Replatform :: Strategy
$mStrategy_Replatform :: forall {r}. Strategy -> ((# #) -> r) -> ((# #) -> r) -> r
Strategy_Replatform = Strategy' "Replatform"

pattern Strategy_Repurchase :: Strategy
pattern $bStrategy_Repurchase :: Strategy
$mStrategy_Repurchase :: forall {r}. Strategy -> ((# #) -> r) -> ((# #) -> r) -> r
Strategy_Repurchase = Strategy' "Repurchase"

pattern Strategy_Retain :: Strategy
pattern $bStrategy_Retain :: Strategy
$mStrategy_Retain :: forall {r}. Strategy -> ((# #) -> r) -> ((# #) -> r) -> r
Strategy_Retain = Strategy' "Retain"

pattern Strategy_Retirement :: Strategy
pattern $bStrategy_Retirement :: Strategy
$mStrategy_Retirement :: forall {r}. Strategy -> ((# #) -> r) -> ((# #) -> r) -> r
Strategy_Retirement = Strategy' "Retirement"

{-# COMPLETE
  Strategy_Refactor,
  Strategy_Rehost,
  Strategy_Relocate,
  Strategy_Replatform,
  Strategy_Repurchase,
  Strategy_Retain,
  Strategy_Retirement,
  Strategy'
  #-}