{-# 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.EndpointStatus
-- 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.EndpointStatus
  ( EndpointStatus
      ( ..,
        EndpointStatus_Creating,
        EndpointStatus_Deleting,
        EndpointStatus_Failed,
        EndpointStatus_InService,
        EndpointStatus_OutOfService,
        EndpointStatus_RollingBack,
        EndpointStatus_SystemUpdating,
        EndpointStatus_Updating
      ),
  )
where

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

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

pattern EndpointStatus_Creating :: EndpointStatus
pattern $bEndpointStatus_Creating :: EndpointStatus
$mEndpointStatus_Creating :: forall {r}. EndpointStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EndpointStatus_Creating = EndpointStatus' "Creating"

pattern EndpointStatus_Deleting :: EndpointStatus
pattern $bEndpointStatus_Deleting :: EndpointStatus
$mEndpointStatus_Deleting :: forall {r}. EndpointStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EndpointStatus_Deleting = EndpointStatus' "Deleting"

pattern EndpointStatus_Failed :: EndpointStatus
pattern $bEndpointStatus_Failed :: EndpointStatus
$mEndpointStatus_Failed :: forall {r}. EndpointStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EndpointStatus_Failed = EndpointStatus' "Failed"

pattern EndpointStatus_InService :: EndpointStatus
pattern $bEndpointStatus_InService :: EndpointStatus
$mEndpointStatus_InService :: forall {r}. EndpointStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EndpointStatus_InService = EndpointStatus' "InService"

pattern EndpointStatus_OutOfService :: EndpointStatus
pattern $bEndpointStatus_OutOfService :: EndpointStatus
$mEndpointStatus_OutOfService :: forall {r}. EndpointStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EndpointStatus_OutOfService = EndpointStatus' "OutOfService"

pattern EndpointStatus_RollingBack :: EndpointStatus
pattern $bEndpointStatus_RollingBack :: EndpointStatus
$mEndpointStatus_RollingBack :: forall {r}. EndpointStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EndpointStatus_RollingBack = EndpointStatus' "RollingBack"

pattern EndpointStatus_SystemUpdating :: EndpointStatus
pattern $bEndpointStatus_SystemUpdating :: EndpointStatus
$mEndpointStatus_SystemUpdating :: forall {r}. EndpointStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EndpointStatus_SystemUpdating = EndpointStatus' "SystemUpdating"

pattern EndpointStatus_Updating :: EndpointStatus
pattern $bEndpointStatus_Updating :: EndpointStatus
$mEndpointStatus_Updating :: forall {r}. EndpointStatus -> ((# #) -> r) -> ((# #) -> r) -> r
EndpointStatus_Updating = EndpointStatus' "Updating"

{-# COMPLETE
  EndpointStatus_Creating,
  EndpointStatus_Deleting,
  EndpointStatus_Failed,
  EndpointStatus_InService,
  EndpointStatus_OutOfService,
  EndpointStatus_RollingBack,
  EndpointStatus_SystemUpdating,
  EndpointStatus_Updating,
  EndpointStatus'
  #-}