{-# 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.ModelApprovalStatus
-- 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.SageMaker.Types.ModelApprovalStatus
  ( ModelApprovalStatus
      ( ..,
        ModelApprovalStatus_Approved,
        ModelApprovalStatus_PendingManualApproval,
        ModelApprovalStatus_Rejected
      ),
  )
where

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

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

pattern ModelApprovalStatus_Approved :: ModelApprovalStatus
pattern $bModelApprovalStatus_Approved :: ModelApprovalStatus
$mModelApprovalStatus_Approved :: forall {r}.
ModelApprovalStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ModelApprovalStatus_Approved = ModelApprovalStatus' "Approved"

pattern ModelApprovalStatus_PendingManualApproval :: ModelApprovalStatus
pattern $bModelApprovalStatus_PendingManualApproval :: ModelApprovalStatus
$mModelApprovalStatus_PendingManualApproval :: forall {r}.
ModelApprovalStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ModelApprovalStatus_PendingManualApproval = ModelApprovalStatus' "PendingManualApproval"

pattern ModelApprovalStatus_Rejected :: ModelApprovalStatus
pattern $bModelApprovalStatus_Rejected :: ModelApprovalStatus
$mModelApprovalStatus_Rejected :: forall {r}.
ModelApprovalStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ModelApprovalStatus_Rejected = ModelApprovalStatus' "Rejected"

{-# COMPLETE
  ModelApprovalStatus_Approved,
  ModelApprovalStatus_PendingManualApproval,
  ModelApprovalStatus_Rejected,
  ModelApprovalStatus'
  #-}