{-# 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.ExistingEnrollmentAction
-- 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.ExistingEnrollmentAction
  ( ExistingEnrollmentAction
      ( ..,
        ExistingEnrollmentAction_OVERWRITE,
        ExistingEnrollmentAction_SKIP
      ),
  )
where

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

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

pattern ExistingEnrollmentAction_OVERWRITE :: ExistingEnrollmentAction
pattern $bExistingEnrollmentAction_OVERWRITE :: ExistingEnrollmentAction
$mExistingEnrollmentAction_OVERWRITE :: forall r.
ExistingEnrollmentAction -> (Void# -> r) -> (Void# -> r) -> r
ExistingEnrollmentAction_OVERWRITE = ExistingEnrollmentAction' "OVERWRITE"

pattern ExistingEnrollmentAction_SKIP :: ExistingEnrollmentAction
pattern $bExistingEnrollmentAction_SKIP :: ExistingEnrollmentAction
$mExistingEnrollmentAction_SKIP :: forall r.
ExistingEnrollmentAction -> (Void# -> r) -> (Void# -> r) -> r
ExistingEnrollmentAction_SKIP = ExistingEnrollmentAction' "SKIP"

{-# COMPLETE
  ExistingEnrollmentAction_OVERWRITE,
  ExistingEnrollmentAction_SKIP,
  ExistingEnrollmentAction'
  #-}