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