{-# 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.PluginNameValue
-- 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.PluginNameValue
  ( PluginNameValue
      ( ..,
        PluginNameValue_No_preference,
        PluginNameValue_Pglogical,
        PluginNameValue_Test_decoding
      ),
  )
where

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

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

pattern PluginNameValue_No_preference :: PluginNameValue
pattern $bPluginNameValue_No_preference :: PluginNameValue
$mPluginNameValue_No_preference :: forall r. PluginNameValue -> (Void# -> r) -> (Void# -> r) -> r
PluginNameValue_No_preference = PluginNameValue' "no-preference"

pattern PluginNameValue_Pglogical :: PluginNameValue
pattern $bPluginNameValue_Pglogical :: PluginNameValue
$mPluginNameValue_Pglogical :: forall r. PluginNameValue -> (Void# -> r) -> (Void# -> r) -> r
PluginNameValue_Pglogical = PluginNameValue' "pglogical"

pattern PluginNameValue_Test_decoding :: PluginNameValue
pattern $bPluginNameValue_Test_decoding :: PluginNameValue
$mPluginNameValue_Test_decoding :: forall r. PluginNameValue -> (Void# -> r) -> (Void# -> r) -> r
PluginNameValue_Test_decoding = PluginNameValue' "test-decoding"

{-# COMPLETE
  PluginNameValue_No_preference,
  PluginNameValue_Pglogical,
  PluginNameValue_Test_decoding,
  PluginNameValue'
  #-}