{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.ComputeOptimizer.Types.MigrationEffort
( MigrationEffort
( ..,
MigrationEffort_High,
MigrationEffort_Low,
MigrationEffort_Medium,
MigrationEffort_VeryLow
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype MigrationEffort = MigrationEffort'
{ MigrationEffort -> Text
fromMigrationEffort ::
Data.Text
}
deriving stock
( Int -> MigrationEffort -> ShowS
[MigrationEffort] -> ShowS
MigrationEffort -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MigrationEffort] -> ShowS
$cshowList :: [MigrationEffort] -> ShowS
show :: MigrationEffort -> String
$cshow :: MigrationEffort -> String
showsPrec :: Int -> MigrationEffort -> ShowS
$cshowsPrec :: Int -> MigrationEffort -> ShowS
Prelude.Show,
ReadPrec [MigrationEffort]
ReadPrec MigrationEffort
Int -> ReadS MigrationEffort
ReadS [MigrationEffort]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MigrationEffort]
$creadListPrec :: ReadPrec [MigrationEffort]
readPrec :: ReadPrec MigrationEffort
$creadPrec :: ReadPrec MigrationEffort
readList :: ReadS [MigrationEffort]
$creadList :: ReadS [MigrationEffort]
readsPrec :: Int -> ReadS MigrationEffort
$creadsPrec :: Int -> ReadS MigrationEffort
Prelude.Read,
MigrationEffort -> MigrationEffort -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MigrationEffort -> MigrationEffort -> Bool
$c/= :: MigrationEffort -> MigrationEffort -> Bool
== :: MigrationEffort -> MigrationEffort -> Bool
$c== :: MigrationEffort -> MigrationEffort -> Bool
Prelude.Eq,
Eq MigrationEffort
MigrationEffort -> MigrationEffort -> Bool
MigrationEffort -> MigrationEffort -> Ordering
MigrationEffort -> MigrationEffort -> MigrationEffort
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 :: MigrationEffort -> MigrationEffort -> MigrationEffort
$cmin :: MigrationEffort -> MigrationEffort -> MigrationEffort
max :: MigrationEffort -> MigrationEffort -> MigrationEffort
$cmax :: MigrationEffort -> MigrationEffort -> MigrationEffort
>= :: MigrationEffort -> MigrationEffort -> Bool
$c>= :: MigrationEffort -> MigrationEffort -> Bool
> :: MigrationEffort -> MigrationEffort -> Bool
$c> :: MigrationEffort -> MigrationEffort -> Bool
<= :: MigrationEffort -> MigrationEffort -> Bool
$c<= :: MigrationEffort -> MigrationEffort -> Bool
< :: MigrationEffort -> MigrationEffort -> Bool
$c< :: MigrationEffort -> MigrationEffort -> Bool
compare :: MigrationEffort -> MigrationEffort -> Ordering
$ccompare :: MigrationEffort -> MigrationEffort -> Ordering
Prelude.Ord,
forall x. Rep MigrationEffort x -> MigrationEffort
forall x. MigrationEffort -> Rep MigrationEffort x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MigrationEffort x -> MigrationEffort
$cfrom :: forall x. MigrationEffort -> Rep MigrationEffort x
Prelude.Generic
)
deriving newtype
( Eq MigrationEffort
Int -> MigrationEffort -> Int
MigrationEffort -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: MigrationEffort -> Int
$chash :: MigrationEffort -> Int
hashWithSalt :: Int -> MigrationEffort -> Int
$chashWithSalt :: Int -> MigrationEffort -> Int
Prelude.Hashable,
MigrationEffort -> ()
forall a. (a -> ()) -> NFData a
rnf :: MigrationEffort -> ()
$crnf :: MigrationEffort -> ()
Prelude.NFData,
Text -> Either String MigrationEffort
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String MigrationEffort
$cfromText :: Text -> Either String MigrationEffort
Data.FromText,
MigrationEffort -> Text
forall a. (a -> Text) -> ToText a
toText :: MigrationEffort -> Text
$ctoText :: MigrationEffort -> Text
Data.ToText,
MigrationEffort -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: MigrationEffort -> ByteString
$ctoBS :: MigrationEffort -> ByteString
Data.ToByteString,
MigrationEffort -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: MigrationEffort -> ByteStringBuilder
$cbuild :: MigrationEffort -> ByteStringBuilder
Data.ToLog,
HeaderName -> MigrationEffort -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> MigrationEffort -> [Header]
$ctoHeader :: HeaderName -> MigrationEffort -> [Header]
Data.ToHeader,
MigrationEffort -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: MigrationEffort -> QueryString
$ctoQuery :: MigrationEffort -> QueryString
Data.ToQuery,
Value -> Parser [MigrationEffort]
Value -> Parser MigrationEffort
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [MigrationEffort]
$cparseJSONList :: Value -> Parser [MigrationEffort]
parseJSON :: Value -> Parser MigrationEffort
$cparseJSON :: Value -> Parser MigrationEffort
Data.FromJSON,
FromJSONKeyFunction [MigrationEffort]
FromJSONKeyFunction MigrationEffort
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [MigrationEffort]
$cfromJSONKeyList :: FromJSONKeyFunction [MigrationEffort]
fromJSONKey :: FromJSONKeyFunction MigrationEffort
$cfromJSONKey :: FromJSONKeyFunction MigrationEffort
Data.FromJSONKey,
[MigrationEffort] -> Encoding
[MigrationEffort] -> Value
MigrationEffort -> Encoding
MigrationEffort -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [MigrationEffort] -> Encoding
$ctoEncodingList :: [MigrationEffort] -> Encoding
toJSONList :: [MigrationEffort] -> Value
$ctoJSONList :: [MigrationEffort] -> Value
toEncoding :: MigrationEffort -> Encoding
$ctoEncoding :: MigrationEffort -> Encoding
toJSON :: MigrationEffort -> Value
$ctoJSON :: MigrationEffort -> Value
Data.ToJSON,
ToJSONKeyFunction [MigrationEffort]
ToJSONKeyFunction MigrationEffort
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [MigrationEffort]
$ctoJSONKeyList :: ToJSONKeyFunction [MigrationEffort]
toJSONKey :: ToJSONKeyFunction MigrationEffort
$ctoJSONKey :: ToJSONKeyFunction MigrationEffort
Data.ToJSONKey,
[Node] -> Either String MigrationEffort
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String MigrationEffort
$cparseXML :: [Node] -> Either String MigrationEffort
Data.FromXML,
MigrationEffort -> XML
forall a. (a -> XML) -> ToXML a
toXML :: MigrationEffort -> XML
$ctoXML :: MigrationEffort -> XML
Data.ToXML
)
pattern MigrationEffort_High :: MigrationEffort
pattern $bMigrationEffort_High :: MigrationEffort
$mMigrationEffort_High :: forall {r}. MigrationEffort -> ((# #) -> r) -> ((# #) -> r) -> r
MigrationEffort_High = MigrationEffort' "High"
pattern MigrationEffort_Low :: MigrationEffort
pattern $bMigrationEffort_Low :: MigrationEffort
$mMigrationEffort_Low :: forall {r}. MigrationEffort -> ((# #) -> r) -> ((# #) -> r) -> r
MigrationEffort_Low = MigrationEffort' "Low"
pattern MigrationEffort_Medium :: MigrationEffort
pattern $bMigrationEffort_Medium :: MigrationEffort
$mMigrationEffort_Medium :: forall {r}. MigrationEffort -> ((# #) -> r) -> ((# #) -> r) -> r
MigrationEffort_Medium = MigrationEffort' "Medium"
pattern MigrationEffort_VeryLow :: MigrationEffort
pattern $bMigrationEffort_VeryLow :: MigrationEffort
$mMigrationEffort_VeryLow :: forall {r}. MigrationEffort -> ((# #) -> r) -> ((# #) -> r) -> r
MigrationEffort_VeryLow = MigrationEffort' "VeryLow"
{-# COMPLETE
MigrationEffort_High,
MigrationEffort_Low,
MigrationEffort_Medium,
MigrationEffort_VeryLow,
MigrationEffort'
#-}