{-# 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.ReplicationEndpointTypeValue
-- 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.ReplicationEndpointTypeValue
  ( ReplicationEndpointTypeValue
      ( ..,
        ReplicationEndpointTypeValue_Source,
        ReplicationEndpointTypeValue_Target
      ),
  )
where

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

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

pattern ReplicationEndpointTypeValue_Source :: ReplicationEndpointTypeValue
pattern $bReplicationEndpointTypeValue_Source :: ReplicationEndpointTypeValue
$mReplicationEndpointTypeValue_Source :: forall r.
ReplicationEndpointTypeValue -> (Void# -> r) -> (Void# -> r) -> r
ReplicationEndpointTypeValue_Source = ReplicationEndpointTypeValue' "source"

pattern ReplicationEndpointTypeValue_Target :: ReplicationEndpointTypeValue
pattern $bReplicationEndpointTypeValue_Target :: ReplicationEndpointTypeValue
$mReplicationEndpointTypeValue_Target :: forall r.
ReplicationEndpointTypeValue -> (Void# -> r) -> (Void# -> r) -> r
ReplicationEndpointTypeValue_Target = ReplicationEndpointTypeValue' "target"

{-# COMPLETE
  ReplicationEndpointTypeValue_Source,
  ReplicationEndpointTypeValue_Target,
  ReplicationEndpointTypeValue'
  #-}