{-# 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.TpmSupportValues
-- 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.TpmSupportValues
  ( TpmSupportValues
      ( ..,
        TpmSupportValues_V2_0
      ),
  )
where

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

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

pattern TpmSupportValues_V2_0 :: TpmSupportValues
pattern $bTpmSupportValues_V2_0 :: TpmSupportValues
$mTpmSupportValues_V2_0 :: forall {r}. TpmSupportValues -> ((# #) -> r) -> ((# #) -> r) -> r
TpmSupportValues_V2_0 = TpmSupportValues' "v2.0"

{-# COMPLETE
  TpmSupportValues_V2_0,
  TpmSupportValues'
  #-}