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