{-# 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.SageMaker.Types.HumanTaskUiStatus
-- 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.SageMaker.Types.HumanTaskUiStatus
  ( HumanTaskUiStatus
      ( ..,
        HumanTaskUiStatus_Active,
        HumanTaskUiStatus_Deleting
      ),
  )
where

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

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

pattern HumanTaskUiStatus_Active :: HumanTaskUiStatus
pattern $bHumanTaskUiStatus_Active :: HumanTaskUiStatus
$mHumanTaskUiStatus_Active :: forall r. HumanTaskUiStatus -> (Void# -> r) -> (Void# -> r) -> r
HumanTaskUiStatus_Active = HumanTaskUiStatus' "Active"

pattern HumanTaskUiStatus_Deleting :: HumanTaskUiStatus
pattern $bHumanTaskUiStatus_Deleting :: HumanTaskUiStatus
$mHumanTaskUiStatus_Deleting :: forall r. HumanTaskUiStatus -> (Void# -> r) -> (Void# -> r) -> r
HumanTaskUiStatus_Deleting = HumanTaskUiStatus' "Deleting"

{-# COMPLETE
  HumanTaskUiStatus_Active,
  HumanTaskUiStatus_Deleting,
  HumanTaskUiStatus'
  #-}