{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.SageMaker.Types.ModelApprovalStatus
( ModelApprovalStatus
( ..,
ModelApprovalStatus_Approved,
ModelApprovalStatus_PendingManualApproval,
ModelApprovalStatus_Rejected
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ModelApprovalStatus = ModelApprovalStatus'
{ ModelApprovalStatus -> Text
fromModelApprovalStatus ::
Core.Text
}
deriving stock
( Int -> ModelApprovalStatus -> ShowS
[ModelApprovalStatus] -> ShowS
ModelApprovalStatus -> String
(Int -> ModelApprovalStatus -> ShowS)
-> (ModelApprovalStatus -> String)
-> ([ModelApprovalStatus] -> ShowS)
-> Show ModelApprovalStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ModelApprovalStatus] -> ShowS
$cshowList :: [ModelApprovalStatus] -> ShowS
show :: ModelApprovalStatus -> String
$cshow :: ModelApprovalStatus -> String
showsPrec :: Int -> ModelApprovalStatus -> ShowS
$cshowsPrec :: Int -> ModelApprovalStatus -> ShowS
Prelude.Show,
ReadPrec [ModelApprovalStatus]
ReadPrec ModelApprovalStatus
Int -> ReadS ModelApprovalStatus
ReadS [ModelApprovalStatus]
(Int -> ReadS ModelApprovalStatus)
-> ReadS [ModelApprovalStatus]
-> ReadPrec ModelApprovalStatus
-> ReadPrec [ModelApprovalStatus]
-> Read ModelApprovalStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ModelApprovalStatus]
$creadListPrec :: ReadPrec [ModelApprovalStatus]
readPrec :: ReadPrec ModelApprovalStatus
$creadPrec :: ReadPrec ModelApprovalStatus
readList :: ReadS [ModelApprovalStatus]
$creadList :: ReadS [ModelApprovalStatus]
readsPrec :: Int -> ReadS ModelApprovalStatus
$creadsPrec :: Int -> ReadS ModelApprovalStatus
Prelude.Read,
ModelApprovalStatus -> ModelApprovalStatus -> Bool
(ModelApprovalStatus -> ModelApprovalStatus -> Bool)
-> (ModelApprovalStatus -> ModelApprovalStatus -> Bool)
-> Eq ModelApprovalStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ModelApprovalStatus -> ModelApprovalStatus -> Bool
$c/= :: ModelApprovalStatus -> ModelApprovalStatus -> Bool
== :: ModelApprovalStatus -> ModelApprovalStatus -> Bool
$c== :: ModelApprovalStatus -> ModelApprovalStatus -> Bool
Prelude.Eq,
Eq ModelApprovalStatus
Eq ModelApprovalStatus
-> (ModelApprovalStatus -> ModelApprovalStatus -> Ordering)
-> (ModelApprovalStatus -> ModelApprovalStatus -> Bool)
-> (ModelApprovalStatus -> ModelApprovalStatus -> Bool)
-> (ModelApprovalStatus -> ModelApprovalStatus -> Bool)
-> (ModelApprovalStatus -> ModelApprovalStatus -> Bool)
-> (ModelApprovalStatus
-> ModelApprovalStatus -> ModelApprovalStatus)
-> (ModelApprovalStatus
-> ModelApprovalStatus -> ModelApprovalStatus)
-> Ord ModelApprovalStatus
ModelApprovalStatus -> ModelApprovalStatus -> Bool
ModelApprovalStatus -> ModelApprovalStatus -> Ordering
ModelApprovalStatus -> ModelApprovalStatus -> ModelApprovalStatus
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 :: ModelApprovalStatus -> ModelApprovalStatus -> ModelApprovalStatus
$cmin :: ModelApprovalStatus -> ModelApprovalStatus -> ModelApprovalStatus
max :: ModelApprovalStatus -> ModelApprovalStatus -> ModelApprovalStatus
$cmax :: ModelApprovalStatus -> ModelApprovalStatus -> ModelApprovalStatus
>= :: ModelApprovalStatus -> ModelApprovalStatus -> Bool
$c>= :: ModelApprovalStatus -> ModelApprovalStatus -> Bool
> :: ModelApprovalStatus -> ModelApprovalStatus -> Bool
$c> :: ModelApprovalStatus -> ModelApprovalStatus -> Bool
<= :: ModelApprovalStatus -> ModelApprovalStatus -> Bool
$c<= :: ModelApprovalStatus -> ModelApprovalStatus -> Bool
< :: ModelApprovalStatus -> ModelApprovalStatus -> Bool
$c< :: ModelApprovalStatus -> ModelApprovalStatus -> Bool
compare :: ModelApprovalStatus -> ModelApprovalStatus -> Ordering
$ccompare :: ModelApprovalStatus -> ModelApprovalStatus -> Ordering
$cp1Ord :: Eq ModelApprovalStatus
Prelude.Ord,
(forall x. ModelApprovalStatus -> Rep ModelApprovalStatus x)
-> (forall x. Rep ModelApprovalStatus x -> ModelApprovalStatus)
-> Generic ModelApprovalStatus
forall x. Rep ModelApprovalStatus x -> ModelApprovalStatus
forall x. ModelApprovalStatus -> Rep ModelApprovalStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ModelApprovalStatus x -> ModelApprovalStatus
$cfrom :: forall x. ModelApprovalStatus -> Rep ModelApprovalStatus x
Prelude.Generic
)
deriving newtype
( Int -> ModelApprovalStatus -> Int
ModelApprovalStatus -> Int
(Int -> ModelApprovalStatus -> Int)
-> (ModelApprovalStatus -> Int) -> Hashable ModelApprovalStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ModelApprovalStatus -> Int
$chash :: ModelApprovalStatus -> Int
hashWithSalt :: Int -> ModelApprovalStatus -> Int
$chashWithSalt :: Int -> ModelApprovalStatus -> Int
Prelude.Hashable,
ModelApprovalStatus -> ()
(ModelApprovalStatus -> ()) -> NFData ModelApprovalStatus
forall a. (a -> ()) -> NFData a
rnf :: ModelApprovalStatus -> ()
$crnf :: ModelApprovalStatus -> ()
Prelude.NFData,
Text -> Either String ModelApprovalStatus
(Text -> Either String ModelApprovalStatus)
-> FromText ModelApprovalStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ModelApprovalStatus
$cfromText :: Text -> Either String ModelApprovalStatus
Core.FromText,
ModelApprovalStatus -> Text
(ModelApprovalStatus -> Text) -> ToText ModelApprovalStatus
forall a. (a -> Text) -> ToText a
toText :: ModelApprovalStatus -> Text
$ctoText :: ModelApprovalStatus -> Text
Core.ToText,
ModelApprovalStatus -> ByteString
(ModelApprovalStatus -> ByteString)
-> ToByteString ModelApprovalStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ModelApprovalStatus -> ByteString
$ctoBS :: ModelApprovalStatus -> ByteString
Core.ToByteString,
ModelApprovalStatus -> ByteStringBuilder
(ModelApprovalStatus -> ByteStringBuilder)
-> ToLog ModelApprovalStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ModelApprovalStatus -> ByteStringBuilder
$cbuild :: ModelApprovalStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> ModelApprovalStatus -> [Header]
(HeaderName -> ModelApprovalStatus -> [Header])
-> ToHeader ModelApprovalStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ModelApprovalStatus -> [Header]
$ctoHeader :: HeaderName -> ModelApprovalStatus -> [Header]
Core.ToHeader,
ModelApprovalStatus -> QueryString
(ModelApprovalStatus -> QueryString) -> ToQuery ModelApprovalStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ModelApprovalStatus -> QueryString
$ctoQuery :: ModelApprovalStatus -> QueryString
Core.ToQuery,
Value -> Parser [ModelApprovalStatus]
Value -> Parser ModelApprovalStatus
(Value -> Parser ModelApprovalStatus)
-> (Value -> Parser [ModelApprovalStatus])
-> FromJSON ModelApprovalStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ModelApprovalStatus]
$cparseJSONList :: Value -> Parser [ModelApprovalStatus]
parseJSON :: Value -> Parser ModelApprovalStatus
$cparseJSON :: Value -> Parser ModelApprovalStatus
Core.FromJSON,
FromJSONKeyFunction [ModelApprovalStatus]
FromJSONKeyFunction ModelApprovalStatus
FromJSONKeyFunction ModelApprovalStatus
-> FromJSONKeyFunction [ModelApprovalStatus]
-> FromJSONKey ModelApprovalStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ModelApprovalStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ModelApprovalStatus]
fromJSONKey :: FromJSONKeyFunction ModelApprovalStatus
$cfromJSONKey :: FromJSONKeyFunction ModelApprovalStatus
Core.FromJSONKey,
[ModelApprovalStatus] -> Encoding
[ModelApprovalStatus] -> Value
ModelApprovalStatus -> Encoding
ModelApprovalStatus -> Value
(ModelApprovalStatus -> Value)
-> (ModelApprovalStatus -> Encoding)
-> ([ModelApprovalStatus] -> Value)
-> ([ModelApprovalStatus] -> Encoding)
-> ToJSON ModelApprovalStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ModelApprovalStatus] -> Encoding
$ctoEncodingList :: [ModelApprovalStatus] -> Encoding
toJSONList :: [ModelApprovalStatus] -> Value
$ctoJSONList :: [ModelApprovalStatus] -> Value
toEncoding :: ModelApprovalStatus -> Encoding
$ctoEncoding :: ModelApprovalStatus -> Encoding
toJSON :: ModelApprovalStatus -> Value
$ctoJSON :: ModelApprovalStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [ModelApprovalStatus]
ToJSONKeyFunction ModelApprovalStatus
ToJSONKeyFunction ModelApprovalStatus
-> ToJSONKeyFunction [ModelApprovalStatus]
-> ToJSONKey ModelApprovalStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ModelApprovalStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ModelApprovalStatus]
toJSONKey :: ToJSONKeyFunction ModelApprovalStatus
$ctoJSONKey :: ToJSONKeyFunction ModelApprovalStatus
Core.ToJSONKey,
[Node] -> Either String ModelApprovalStatus
([Node] -> Either String ModelApprovalStatus)
-> FromXML ModelApprovalStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ModelApprovalStatus
$cparseXML :: [Node] -> Either String ModelApprovalStatus
Core.FromXML,
ModelApprovalStatus -> XML
(ModelApprovalStatus -> XML) -> ToXML ModelApprovalStatus
forall a. (a -> XML) -> ToXML a
toXML :: ModelApprovalStatus -> XML
$ctoXML :: ModelApprovalStatus -> XML
Core.ToXML
)
pattern ModelApprovalStatus_Approved :: ModelApprovalStatus
pattern $bModelApprovalStatus_Approved :: ModelApprovalStatus
$mModelApprovalStatus_Approved :: forall r. ModelApprovalStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelApprovalStatus_Approved = ModelApprovalStatus' "Approved"
pattern ModelApprovalStatus_PendingManualApproval :: ModelApprovalStatus
pattern $bModelApprovalStatus_PendingManualApproval :: ModelApprovalStatus
$mModelApprovalStatus_PendingManualApproval :: forall r. ModelApprovalStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelApprovalStatus_PendingManualApproval = ModelApprovalStatus' "PendingManualApproval"
pattern ModelApprovalStatus_Rejected :: ModelApprovalStatus
pattern $bModelApprovalStatus_Rejected :: ModelApprovalStatus
$mModelApprovalStatus_Rejected :: forall r. ModelApprovalStatus -> (Void# -> r) -> (Void# -> r) -> r
ModelApprovalStatus_Rejected = ModelApprovalStatus' "Rejected"
{-# COMPLETE
ModelApprovalStatus_Approved,
ModelApprovalStatus_PendingManualApproval,
ModelApprovalStatus_Rejected,
ModelApprovalStatus'
#-}