{-# 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.PlatformDifference
( PlatformDifference
( ..,
PlatformDifference_Architecture,
PlatformDifference_Hypervisor,
PlatformDifference_InstanceStoreAvailability,
PlatformDifference_NetworkInterface,
PlatformDifference_StorageInterface,
PlatformDifference_VirtualizationType
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype PlatformDifference = PlatformDifference'
{ PlatformDifference -> Text
fromPlatformDifference ::
Data.Text
}
deriving stock
( Int -> PlatformDifference -> ShowS
[PlatformDifference] -> ShowS
PlatformDifference -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PlatformDifference] -> ShowS
$cshowList :: [PlatformDifference] -> ShowS
show :: PlatformDifference -> String
$cshow :: PlatformDifference -> String
showsPrec :: Int -> PlatformDifference -> ShowS
$cshowsPrec :: Int -> PlatformDifference -> ShowS
Prelude.Show,
ReadPrec [PlatformDifference]
ReadPrec PlatformDifference
Int -> ReadS PlatformDifference
ReadS [PlatformDifference]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PlatformDifference]
$creadListPrec :: ReadPrec [PlatformDifference]
readPrec :: ReadPrec PlatformDifference
$creadPrec :: ReadPrec PlatformDifference
readList :: ReadS [PlatformDifference]
$creadList :: ReadS [PlatformDifference]
readsPrec :: Int -> ReadS PlatformDifference
$creadsPrec :: Int -> ReadS PlatformDifference
Prelude.Read,
PlatformDifference -> PlatformDifference -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PlatformDifference -> PlatformDifference -> Bool
$c/= :: PlatformDifference -> PlatformDifference -> Bool
== :: PlatformDifference -> PlatformDifference -> Bool
$c== :: PlatformDifference -> PlatformDifference -> Bool
Prelude.Eq,
Eq PlatformDifference
PlatformDifference -> PlatformDifference -> Bool
PlatformDifference -> PlatformDifference -> Ordering
PlatformDifference -> PlatformDifference -> PlatformDifference
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 :: PlatformDifference -> PlatformDifference -> PlatformDifference
$cmin :: PlatformDifference -> PlatformDifference -> PlatformDifference
max :: PlatformDifference -> PlatformDifference -> PlatformDifference
$cmax :: PlatformDifference -> PlatformDifference -> PlatformDifference
>= :: PlatformDifference -> PlatformDifference -> Bool
$c>= :: PlatformDifference -> PlatformDifference -> Bool
> :: PlatformDifference -> PlatformDifference -> Bool
$c> :: PlatformDifference -> PlatformDifference -> Bool
<= :: PlatformDifference -> PlatformDifference -> Bool
$c<= :: PlatformDifference -> PlatformDifference -> Bool
< :: PlatformDifference -> PlatformDifference -> Bool
$c< :: PlatformDifference -> PlatformDifference -> Bool
compare :: PlatformDifference -> PlatformDifference -> Ordering
$ccompare :: PlatformDifference -> PlatformDifference -> Ordering
Prelude.Ord,
forall x. Rep PlatformDifference x -> PlatformDifference
forall x. PlatformDifference -> Rep PlatformDifference x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PlatformDifference x -> PlatformDifference
$cfrom :: forall x. PlatformDifference -> Rep PlatformDifference x
Prelude.Generic
)
deriving newtype
( Eq PlatformDifference
Int -> PlatformDifference -> Int
PlatformDifference -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: PlatformDifference -> Int
$chash :: PlatformDifference -> Int
hashWithSalt :: Int -> PlatformDifference -> Int
$chashWithSalt :: Int -> PlatformDifference -> Int
Prelude.Hashable,
PlatformDifference -> ()
forall a. (a -> ()) -> NFData a
rnf :: PlatformDifference -> ()
$crnf :: PlatformDifference -> ()
Prelude.NFData,
Text -> Either String PlatformDifference
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PlatformDifference
$cfromText :: Text -> Either String PlatformDifference
Data.FromText,
PlatformDifference -> Text
forall a. (a -> Text) -> ToText a
toText :: PlatformDifference -> Text
$ctoText :: PlatformDifference -> Text
Data.ToText,
PlatformDifference -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: PlatformDifference -> ByteString
$ctoBS :: PlatformDifference -> ByteString
Data.ToByteString,
PlatformDifference -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PlatformDifference -> ByteStringBuilder
$cbuild :: PlatformDifference -> ByteStringBuilder
Data.ToLog,
HeaderName -> PlatformDifference -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PlatformDifference -> [Header]
$ctoHeader :: HeaderName -> PlatformDifference -> [Header]
Data.ToHeader,
PlatformDifference -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PlatformDifference -> QueryString
$ctoQuery :: PlatformDifference -> QueryString
Data.ToQuery,
Value -> Parser [PlatformDifference]
Value -> Parser PlatformDifference
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [PlatformDifference]
$cparseJSONList :: Value -> Parser [PlatformDifference]
parseJSON :: Value -> Parser PlatformDifference
$cparseJSON :: Value -> Parser PlatformDifference
Data.FromJSON,
FromJSONKeyFunction [PlatformDifference]
FromJSONKeyFunction PlatformDifference
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PlatformDifference]
$cfromJSONKeyList :: FromJSONKeyFunction [PlatformDifference]
fromJSONKey :: FromJSONKeyFunction PlatformDifference
$cfromJSONKey :: FromJSONKeyFunction PlatformDifference
Data.FromJSONKey,
[PlatformDifference] -> Encoding
[PlatformDifference] -> Value
PlatformDifference -> Encoding
PlatformDifference -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [PlatformDifference] -> Encoding
$ctoEncodingList :: [PlatformDifference] -> Encoding
toJSONList :: [PlatformDifference] -> Value
$ctoJSONList :: [PlatformDifference] -> Value
toEncoding :: PlatformDifference -> Encoding
$ctoEncoding :: PlatformDifference -> Encoding
toJSON :: PlatformDifference -> Value
$ctoJSON :: PlatformDifference -> Value
Data.ToJSON,
ToJSONKeyFunction [PlatformDifference]
ToJSONKeyFunction PlatformDifference
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PlatformDifference]
$ctoJSONKeyList :: ToJSONKeyFunction [PlatformDifference]
toJSONKey :: ToJSONKeyFunction PlatformDifference
$ctoJSONKey :: ToJSONKeyFunction PlatformDifference
Data.ToJSONKey,
[Node] -> Either String PlatformDifference
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PlatformDifference
$cparseXML :: [Node] -> Either String PlatformDifference
Data.FromXML,
PlatformDifference -> XML
forall a. (a -> XML) -> ToXML a
toXML :: PlatformDifference -> XML
$ctoXML :: PlatformDifference -> XML
Data.ToXML
)
pattern PlatformDifference_Architecture :: PlatformDifference
pattern $bPlatformDifference_Architecture :: PlatformDifference
$mPlatformDifference_Architecture :: forall {r}. PlatformDifference -> ((# #) -> r) -> ((# #) -> r) -> r
PlatformDifference_Architecture = PlatformDifference' "Architecture"
pattern PlatformDifference_Hypervisor :: PlatformDifference
pattern $bPlatformDifference_Hypervisor :: PlatformDifference
$mPlatformDifference_Hypervisor :: forall {r}. PlatformDifference -> ((# #) -> r) -> ((# #) -> r) -> r
PlatformDifference_Hypervisor = PlatformDifference' "Hypervisor"
pattern PlatformDifference_InstanceStoreAvailability :: PlatformDifference
pattern $bPlatformDifference_InstanceStoreAvailability :: PlatformDifference
$mPlatformDifference_InstanceStoreAvailability :: forall {r}. PlatformDifference -> ((# #) -> r) -> ((# #) -> r) -> r
PlatformDifference_InstanceStoreAvailability = PlatformDifference' "InstanceStoreAvailability"
pattern PlatformDifference_NetworkInterface :: PlatformDifference
pattern $bPlatformDifference_NetworkInterface :: PlatformDifference
$mPlatformDifference_NetworkInterface :: forall {r}. PlatformDifference -> ((# #) -> r) -> ((# #) -> r) -> r
PlatformDifference_NetworkInterface = PlatformDifference' "NetworkInterface"
pattern PlatformDifference_StorageInterface :: PlatformDifference
pattern $bPlatformDifference_StorageInterface :: PlatformDifference
$mPlatformDifference_StorageInterface :: forall {r}. PlatformDifference -> ((# #) -> r) -> ((# #) -> r) -> r
PlatformDifference_StorageInterface = PlatformDifference' "StorageInterface"
pattern PlatformDifference_VirtualizationType :: PlatformDifference
pattern $bPlatformDifference_VirtualizationType :: PlatformDifference
$mPlatformDifference_VirtualizationType :: forall {r}. PlatformDifference -> ((# #) -> r) -> ((# #) -> r) -> r
PlatformDifference_VirtualizationType = PlatformDifference' "VirtualizationType"
{-# COMPLETE
PlatformDifference_Architecture,
PlatformDifference_Hypervisor,
PlatformDifference_InstanceStoreAvailability,
PlatformDifference_NetworkInterface,
PlatformDifference_StorageInterface,
PlatformDifference_VirtualizationType,
PlatformDifference'
#-}