{-# 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.SpeakerEnrollmentJobStatus
-- 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.SpeakerEnrollmentJobStatus
  ( SpeakerEnrollmentJobStatus
      ( ..,
        SpeakerEnrollmentJobStatus_COMPLETED,
        SpeakerEnrollmentJobStatus_COMPLETED_WITH_ERRORS,
        SpeakerEnrollmentJobStatus_FAILED,
        SpeakerEnrollmentJobStatus_IN_PROGRESS,
        SpeakerEnrollmentJobStatus_SUBMITTED
      ),
  )
where

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

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

pattern SpeakerEnrollmentJobStatus_COMPLETED :: SpeakerEnrollmentJobStatus
pattern $bSpeakerEnrollmentJobStatus_COMPLETED :: SpeakerEnrollmentJobStatus
$mSpeakerEnrollmentJobStatus_COMPLETED :: forall r.
SpeakerEnrollmentJobStatus -> (Void# -> r) -> (Void# -> r) -> r
SpeakerEnrollmentJobStatus_COMPLETED = SpeakerEnrollmentJobStatus' "COMPLETED"

pattern SpeakerEnrollmentJobStatus_COMPLETED_WITH_ERRORS :: SpeakerEnrollmentJobStatus
pattern $bSpeakerEnrollmentJobStatus_COMPLETED_WITH_ERRORS :: SpeakerEnrollmentJobStatus
$mSpeakerEnrollmentJobStatus_COMPLETED_WITH_ERRORS :: forall r.
SpeakerEnrollmentJobStatus -> (Void# -> r) -> (Void# -> r) -> r
SpeakerEnrollmentJobStatus_COMPLETED_WITH_ERRORS = SpeakerEnrollmentJobStatus' "COMPLETED_WITH_ERRORS"

pattern SpeakerEnrollmentJobStatus_FAILED :: SpeakerEnrollmentJobStatus
pattern $bSpeakerEnrollmentJobStatus_FAILED :: SpeakerEnrollmentJobStatus
$mSpeakerEnrollmentJobStatus_FAILED :: forall r.
SpeakerEnrollmentJobStatus -> (Void# -> r) -> (Void# -> r) -> r
SpeakerEnrollmentJobStatus_FAILED = SpeakerEnrollmentJobStatus' "FAILED"

pattern SpeakerEnrollmentJobStatus_IN_PROGRESS :: SpeakerEnrollmentJobStatus
pattern $bSpeakerEnrollmentJobStatus_IN_PROGRESS :: SpeakerEnrollmentJobStatus
$mSpeakerEnrollmentJobStatus_IN_PROGRESS :: forall r.
SpeakerEnrollmentJobStatus -> (Void# -> r) -> (Void# -> r) -> r
SpeakerEnrollmentJobStatus_IN_PROGRESS = SpeakerEnrollmentJobStatus' "IN_PROGRESS"

pattern SpeakerEnrollmentJobStatus_SUBMITTED :: SpeakerEnrollmentJobStatus
pattern $bSpeakerEnrollmentJobStatus_SUBMITTED :: SpeakerEnrollmentJobStatus
$mSpeakerEnrollmentJobStatus_SUBMITTED :: forall r.
SpeakerEnrollmentJobStatus -> (Void# -> r) -> (Void# -> r) -> r
SpeakerEnrollmentJobStatus_SUBMITTED = SpeakerEnrollmentJobStatus' "SUBMITTED"

{-# COMPLETE
  SpeakerEnrollmentJobStatus_COMPLETED,
  SpeakerEnrollmentJobStatus_COMPLETED_WITH_ERRORS,
  SpeakerEnrollmentJobStatus_FAILED,
  SpeakerEnrollmentJobStatus_IN_PROGRESS,
  SpeakerEnrollmentJobStatus_SUBMITTED,
  SpeakerEnrollmentJobStatus'
  #-}