{-# 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.EphemeralNvmeSupport
-- 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.EphemeralNvmeSupport
  ( EphemeralNvmeSupport
      ( ..,
        EphemeralNvmeSupport_Required,
        EphemeralNvmeSupport_Supported,
        EphemeralNvmeSupport_Unsupported
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import qualified Amazonka.Prelude as Prelude

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

pattern EphemeralNvmeSupport_Required :: EphemeralNvmeSupport
pattern $bEphemeralNvmeSupport_Required :: EphemeralNvmeSupport
$mEphemeralNvmeSupport_Required :: forall {r}.
EphemeralNvmeSupport -> ((# #) -> r) -> ((# #) -> r) -> r
EphemeralNvmeSupport_Required = EphemeralNvmeSupport' "required"

pattern EphemeralNvmeSupport_Supported :: EphemeralNvmeSupport
pattern $bEphemeralNvmeSupport_Supported :: EphemeralNvmeSupport
$mEphemeralNvmeSupport_Supported :: forall {r}.
EphemeralNvmeSupport -> ((# #) -> r) -> ((# #) -> r) -> r
EphemeralNvmeSupport_Supported = EphemeralNvmeSupport' "supported"

pattern EphemeralNvmeSupport_Unsupported :: EphemeralNvmeSupport
pattern $bEphemeralNvmeSupport_Unsupported :: EphemeralNvmeSupport
$mEphemeralNvmeSupport_Unsupported :: forall {r}.
EphemeralNvmeSupport -> ((# #) -> r) -> ((# #) -> r) -> r
EphemeralNvmeSupport_Unsupported = EphemeralNvmeSupport' "unsupported"

{-# COMPLETE
  EphemeralNvmeSupport_Required,
  EphemeralNvmeSupport_Supported,
  EphemeralNvmeSupport_Unsupported,
  EphemeralNvmeSupport'
  #-}