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

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

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

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

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

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