{-# 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.DMS.Types.SslSecurityProtocolValue
-- 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.DMS.Types.SslSecurityProtocolValue
  ( SslSecurityProtocolValue
      ( ..,
        SslSecurityProtocolValue_Plaintext,
        SslSecurityProtocolValue_Ssl_encryption
      ),
  )
where

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

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

pattern SslSecurityProtocolValue_Plaintext :: SslSecurityProtocolValue
pattern $bSslSecurityProtocolValue_Plaintext :: SslSecurityProtocolValue
$mSslSecurityProtocolValue_Plaintext :: forall r.
SslSecurityProtocolValue -> (Void# -> r) -> (Void# -> r) -> r
SslSecurityProtocolValue_Plaintext = SslSecurityProtocolValue' "plaintext"

pattern SslSecurityProtocolValue_Ssl_encryption :: SslSecurityProtocolValue
pattern $bSslSecurityProtocolValue_Ssl_encryption :: SslSecurityProtocolValue
$mSslSecurityProtocolValue_Ssl_encryption :: forall r.
SslSecurityProtocolValue -> (Void# -> r) -> (Void# -> r) -> r
SslSecurityProtocolValue_Ssl_encryption = SslSecurityProtocolValue' "ssl-encryption"

{-# COMPLETE
  SslSecurityProtocolValue_Plaintext,
  SslSecurityProtocolValue_Ssl_encryption,
  SslSecurityProtocolValue'
  #-}