{-# 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.SagemakerServicecatalogStatus
-- 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.SagemakerServicecatalogStatus
  ( SagemakerServicecatalogStatus
      ( ..,
        SagemakerServicecatalogStatus_Disabled,
        SagemakerServicecatalogStatus_Enabled
      ),
  )
where

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

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

pattern SagemakerServicecatalogStatus_Disabled :: SagemakerServicecatalogStatus
pattern $bSagemakerServicecatalogStatus_Disabled :: SagemakerServicecatalogStatus
$mSagemakerServicecatalogStatus_Disabled :: forall {r}.
SagemakerServicecatalogStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SagemakerServicecatalogStatus_Disabled = SagemakerServicecatalogStatus' "Disabled"

pattern SagemakerServicecatalogStatus_Enabled :: SagemakerServicecatalogStatus
pattern $bSagemakerServicecatalogStatus_Enabled :: SagemakerServicecatalogStatus
$mSagemakerServicecatalogStatus_Enabled :: forall {r}.
SagemakerServicecatalogStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SagemakerServicecatalogStatus_Enabled = SagemakerServicecatalogStatus' "Enabled"

{-# COMPLETE
  SagemakerServicecatalogStatus_Disabled,
  SagemakerServicecatalogStatus_Enabled,
  SagemakerServicecatalogStatus'
  #-}