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

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

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

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

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