{-# 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.Transfer.Types.TlsSessionResumptionMode
-- 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.Transfer.Types.TlsSessionResumptionMode
  ( TlsSessionResumptionMode
      ( ..,
        TlsSessionResumptionMode_DISABLED,
        TlsSessionResumptionMode_ENABLED,
        TlsSessionResumptionMode_ENFORCED
      ),
  )
where

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

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

pattern TlsSessionResumptionMode_DISABLED :: TlsSessionResumptionMode
pattern $bTlsSessionResumptionMode_DISABLED :: TlsSessionResumptionMode
$mTlsSessionResumptionMode_DISABLED :: forall {r}.
TlsSessionResumptionMode -> ((# #) -> r) -> ((# #) -> r) -> r
TlsSessionResumptionMode_DISABLED = TlsSessionResumptionMode' "DISABLED"

pattern TlsSessionResumptionMode_ENABLED :: TlsSessionResumptionMode
pattern $bTlsSessionResumptionMode_ENABLED :: TlsSessionResumptionMode
$mTlsSessionResumptionMode_ENABLED :: forall {r}.
TlsSessionResumptionMode -> ((# #) -> r) -> ((# #) -> r) -> r
TlsSessionResumptionMode_ENABLED = TlsSessionResumptionMode' "ENABLED"

pattern TlsSessionResumptionMode_ENFORCED :: TlsSessionResumptionMode
pattern $bTlsSessionResumptionMode_ENFORCED :: TlsSessionResumptionMode
$mTlsSessionResumptionMode_ENFORCED :: forall {r}.
TlsSessionResumptionMode -> ((# #) -> r) -> ((# #) -> r) -> r
TlsSessionResumptionMode_ENFORCED = TlsSessionResumptionMode' "ENFORCED"

{-# COMPLETE
  TlsSessionResumptionMode_DISABLED,
  TlsSessionResumptionMode_ENABLED,
  TlsSessionResumptionMode_ENFORCED,
  TlsSessionResumptionMode'
  #-}