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