{-# 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.MachineLearning.Types.RealtimeEndpointStatus
-- 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.MachineLearning.Types.RealtimeEndpointStatus
  ( RealtimeEndpointStatus
      ( ..,
        RealtimeEndpointStatus_FAILED,
        RealtimeEndpointStatus_NONE,
        RealtimeEndpointStatus_READY,
        RealtimeEndpointStatus_UPDATING
      ),
  )
where

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

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

pattern RealtimeEndpointStatus_FAILED :: RealtimeEndpointStatus
pattern $bRealtimeEndpointStatus_FAILED :: RealtimeEndpointStatus
$mRealtimeEndpointStatus_FAILED :: forall r.
RealtimeEndpointStatus -> (Void# -> r) -> (Void# -> r) -> r
RealtimeEndpointStatus_FAILED = RealtimeEndpointStatus' "FAILED"

pattern RealtimeEndpointStatus_NONE :: RealtimeEndpointStatus
pattern $bRealtimeEndpointStatus_NONE :: RealtimeEndpointStatus
$mRealtimeEndpointStatus_NONE :: forall r.
RealtimeEndpointStatus -> (Void# -> r) -> (Void# -> r) -> r
RealtimeEndpointStatus_NONE = RealtimeEndpointStatus' "NONE"

pattern RealtimeEndpointStatus_READY :: RealtimeEndpointStatus
pattern $bRealtimeEndpointStatus_READY :: RealtimeEndpointStatus
$mRealtimeEndpointStatus_READY :: forall r.
RealtimeEndpointStatus -> (Void# -> r) -> (Void# -> r) -> r
RealtimeEndpointStatus_READY = RealtimeEndpointStatus' "READY"

pattern RealtimeEndpointStatus_UPDATING :: RealtimeEndpointStatus
pattern $bRealtimeEndpointStatus_UPDATING :: RealtimeEndpointStatus
$mRealtimeEndpointStatus_UPDATING :: forall r.
RealtimeEndpointStatus -> (Void# -> r) -> (Void# -> r) -> r
RealtimeEndpointStatus_UPDATING = RealtimeEndpointStatus' "UPDATING"

{-# COMPLETE
  RealtimeEndpointStatus_FAILED,
  RealtimeEndpointStatus_NONE,
  RealtimeEndpointStatus_READY,
  RealtimeEndpointStatus_UPDATING,
  RealtimeEndpointStatus'
  #-}