{-# 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.VoiceId.Types.DuplicateRegistrationAction
-- 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.VoiceId.Types.DuplicateRegistrationAction
  ( DuplicateRegistrationAction
      ( ..,
        DuplicateRegistrationAction_REGISTER_AS_NEW,
        DuplicateRegistrationAction_SKIP
      ),
  )
where

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

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

pattern DuplicateRegistrationAction_REGISTER_AS_NEW :: DuplicateRegistrationAction
pattern $bDuplicateRegistrationAction_REGISTER_AS_NEW :: DuplicateRegistrationAction
$mDuplicateRegistrationAction_REGISTER_AS_NEW :: forall r.
DuplicateRegistrationAction -> (Void# -> r) -> (Void# -> r) -> r
DuplicateRegistrationAction_REGISTER_AS_NEW = DuplicateRegistrationAction' "REGISTER_AS_NEW"

pattern DuplicateRegistrationAction_SKIP :: DuplicateRegistrationAction
pattern $bDuplicateRegistrationAction_SKIP :: DuplicateRegistrationAction
$mDuplicateRegistrationAction_SKIP :: forall r.
DuplicateRegistrationAction -> (Void# -> r) -> (Void# -> r) -> r
DuplicateRegistrationAction_SKIP = DuplicateRegistrationAction' "SKIP"

{-# COMPLETE
  DuplicateRegistrationAction_REGISTER_AS_NEW,
  DuplicateRegistrationAction_SKIP,
  DuplicateRegistrationAction'
  #-}