{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

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

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

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

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