{-# 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.CloudHSM.Types.ClientVersion
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.CloudHSM.Types.ClientVersion
  ( ClientVersion
      ( ..,
        ClientVersion_
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype ClientVersion = ClientVersion'
  { ClientVersion -> Text
fromClientVersion ::
      Core.Text
  }
  deriving stock
    ( Int -> ClientVersion -> ShowS
[ClientVersion] -> ShowS
ClientVersion -> String
(Int -> ClientVersion -> ShowS)
-> (ClientVersion -> String)
-> ([ClientVersion] -> ShowS)
-> Show ClientVersion
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]
(Int -> ReadS ClientVersion)
-> ReadS [ClientVersion]
-> ReadPrec ClientVersion
-> ReadPrec [ClientVersion]
-> Read 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
(ClientVersion -> ClientVersion -> Bool)
-> (ClientVersion -> ClientVersion -> Bool) -> Eq ClientVersion
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
Eq ClientVersion
-> (ClientVersion -> ClientVersion -> Ordering)
-> (ClientVersion -> ClientVersion -> Bool)
-> (ClientVersion -> ClientVersion -> Bool)
-> (ClientVersion -> ClientVersion -> Bool)
-> (ClientVersion -> ClientVersion -> Bool)
-> (ClientVersion -> ClientVersion -> ClientVersion)
-> (ClientVersion -> ClientVersion -> ClientVersion)
-> Ord 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
$cp1Ord :: Eq ClientVersion
Prelude.Ord,
      (forall x. ClientVersion -> Rep ClientVersion x)
-> (forall x. Rep ClientVersion x -> ClientVersion)
-> Generic ClientVersion
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
    ( Int -> ClientVersion -> Int
ClientVersion -> Int
(Int -> ClientVersion -> Int)
-> (ClientVersion -> Int) -> Hashable ClientVersion
forall 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 -> ()
(ClientVersion -> ()) -> NFData ClientVersion
forall a. (a -> ()) -> NFData a
rnf :: ClientVersion -> ()
$crnf :: ClientVersion -> ()
Prelude.NFData,
      Text -> Either String ClientVersion
(Text -> Either String ClientVersion) -> FromText ClientVersion
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ClientVersion
$cfromText :: Text -> Either String ClientVersion
Core.FromText,
      ClientVersion -> Text
(ClientVersion -> Text) -> ToText ClientVersion
forall a. (a -> Text) -> ToText a
toText :: ClientVersion -> Text
$ctoText :: ClientVersion -> Text
Core.ToText,
      ClientVersion -> ByteString
(ClientVersion -> ByteString) -> ToByteString ClientVersion
forall a. (a -> ByteString) -> ToByteString a
toBS :: ClientVersion -> ByteString
$ctoBS :: ClientVersion -> ByteString
Core.ToByteString,
      ClientVersion -> ByteStringBuilder
(ClientVersion -> ByteStringBuilder) -> ToLog ClientVersion
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ClientVersion -> ByteStringBuilder
$cbuild :: ClientVersion -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ClientVersion -> [Header]
(HeaderName -> ClientVersion -> [Header]) -> ToHeader ClientVersion
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ClientVersion -> [Header]
$ctoHeader :: HeaderName -> ClientVersion -> [Header]
Core.ToHeader,
      ClientVersion -> QueryString
(ClientVersion -> QueryString) -> ToQuery ClientVersion
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ClientVersion -> QueryString
$ctoQuery :: ClientVersion -> QueryString
Core.ToQuery,
      Value -> Parser [ClientVersion]
Value -> Parser ClientVersion
(Value -> Parser ClientVersion)
-> (Value -> Parser [ClientVersion]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ClientVersion]
FromJSONKeyFunction ClientVersion
FromJSONKeyFunction ClientVersion
-> FromJSONKeyFunction [ClientVersion] -> FromJSONKey ClientVersion
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ClientVersion]
$cfromJSONKeyList :: FromJSONKeyFunction [ClientVersion]
fromJSONKey :: FromJSONKeyFunction ClientVersion
$cfromJSONKey :: FromJSONKeyFunction ClientVersion
Core.FromJSONKey,
      [ClientVersion] -> Encoding
[ClientVersion] -> Value
ClientVersion -> Encoding
ClientVersion -> Value
(ClientVersion -> Value)
-> (ClientVersion -> Encoding)
-> ([ClientVersion] -> Value)
-> ([ClientVersion] -> Encoding)
-> ToJSON ClientVersion
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
Core.ToJSON,
      ToJSONKeyFunction [ClientVersion]
ToJSONKeyFunction ClientVersion
ToJSONKeyFunction ClientVersion
-> ToJSONKeyFunction [ClientVersion] -> ToJSONKey ClientVersion
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ClientVersion]
$ctoJSONKeyList :: ToJSONKeyFunction [ClientVersion]
toJSONKey :: ToJSONKeyFunction ClientVersion
$ctoJSONKey :: ToJSONKeyFunction ClientVersion
Core.ToJSONKey,
      [Node] -> Either String ClientVersion
([Node] -> Either String ClientVersion) -> FromXML ClientVersion
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ClientVersion
$cparseXML :: [Node] -> Either String ClientVersion
Core.FromXML,
      ClientVersion -> XML
(ClientVersion -> XML) -> ToXML ClientVersion
forall a. (a -> XML) -> ToXML a
toXML :: ClientVersion -> XML
$ctoXML :: ClientVersion -> XML
Core.ToXML
    )

pattern ClientVersion_ :: ClientVersion
pattern $bClientVersion_ :: ClientVersion
$mClientVersion_ :: forall r. ClientVersion -> (Void# -> r) -> (Void# -> r) -> r
ClientVersion_ = ClientVersion' "5.1"

{-# COMPLETE
  ClientVersion_,
  ClientVersion'
  #-}