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

pattern EbsNvmeSupport_Required :: EbsNvmeSupport
pattern $bEbsNvmeSupport_Required :: EbsNvmeSupport
$mEbsNvmeSupport_Required :: forall {r}. EbsNvmeSupport -> ((# #) -> r) -> ((# #) -> r) -> r
EbsNvmeSupport_Required = EbsNvmeSupport' "required"

pattern EbsNvmeSupport_Supported :: EbsNvmeSupport
pattern $bEbsNvmeSupport_Supported :: EbsNvmeSupport
$mEbsNvmeSupport_Supported :: forall {r}. EbsNvmeSupport -> ((# #) -> r) -> ((# #) -> r) -> r
EbsNvmeSupport_Supported = EbsNvmeSupport' "supported"

pattern EbsNvmeSupport_Unsupported :: EbsNvmeSupport
pattern $bEbsNvmeSupport_Unsupported :: EbsNvmeSupport
$mEbsNvmeSupport_Unsupported :: forall {r}. EbsNvmeSupport -> ((# #) -> r) -> ((# #) -> r) -> r
EbsNvmeSupport_Unsupported = EbsNvmeSupport' "unsupported"

{-# COMPLETE
  EbsNvmeSupport_Required,
  EbsNvmeSupport_Supported,
  EbsNvmeSupport_Unsupported,
  EbsNvmeSupport'
  #-}