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

pattern BootModeValues_Legacy_bios :: BootModeValues
pattern $bBootModeValues_Legacy_bios :: BootModeValues
$mBootModeValues_Legacy_bios :: forall {r}. BootModeValues -> ((# #) -> r) -> ((# #) -> r) -> r
BootModeValues_Legacy_bios = BootModeValues' "legacy-bios"

pattern BootModeValues_Uefi :: BootModeValues
pattern $bBootModeValues_Uefi :: BootModeValues
$mBootModeValues_Uefi :: forall {r}. BootModeValues -> ((# #) -> r) -> ((# #) -> r) -> r
BootModeValues_Uefi = BootModeValues' "uefi"

{-# COMPLETE
  BootModeValues_Legacy_bios,
  BootModeValues_Uefi,
  BootModeValues'
  #-}