{-# 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.LookoutVision.Types.ModelHostingStatus
-- 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.LookoutVision.Types.ModelHostingStatus
  ( ModelHostingStatus
      ( ..,
        ModelHostingStatus_HOSTED,
        ModelHostingStatus_HOSTING_FAILED,
        ModelHostingStatus_STARTING_HOSTING,
        ModelHostingStatus_STOPPING_HOSTING,
        ModelHostingStatus_SYSTEM_UPDATING
      ),
  )
where

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

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

pattern ModelHostingStatus_HOSTED :: ModelHostingStatus
pattern $bModelHostingStatus_HOSTED :: ModelHostingStatus
$mModelHostingStatus_HOSTED :: forall {r}. ModelHostingStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ModelHostingStatus_HOSTED = ModelHostingStatus' "HOSTED"

pattern ModelHostingStatus_HOSTING_FAILED :: ModelHostingStatus
pattern $bModelHostingStatus_HOSTING_FAILED :: ModelHostingStatus
$mModelHostingStatus_HOSTING_FAILED :: forall {r}. ModelHostingStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ModelHostingStatus_HOSTING_FAILED = ModelHostingStatus' "HOSTING_FAILED"

pattern ModelHostingStatus_STARTING_HOSTING :: ModelHostingStatus
pattern $bModelHostingStatus_STARTING_HOSTING :: ModelHostingStatus
$mModelHostingStatus_STARTING_HOSTING :: forall {r}. ModelHostingStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ModelHostingStatus_STARTING_HOSTING = ModelHostingStatus' "STARTING_HOSTING"

pattern ModelHostingStatus_STOPPING_HOSTING :: ModelHostingStatus
pattern $bModelHostingStatus_STOPPING_HOSTING :: ModelHostingStatus
$mModelHostingStatus_STOPPING_HOSTING :: forall {r}. ModelHostingStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ModelHostingStatus_STOPPING_HOSTING = ModelHostingStatus' "STOPPING_HOSTING"

pattern ModelHostingStatus_SYSTEM_UPDATING :: ModelHostingStatus
pattern $bModelHostingStatus_SYSTEM_UPDATING :: ModelHostingStatus
$mModelHostingStatus_SYSTEM_UPDATING :: forall {r}. ModelHostingStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ModelHostingStatus_SYSTEM_UPDATING = ModelHostingStatus' "SYSTEM_UPDATING"

{-# COMPLETE
  ModelHostingStatus_HOSTED,
  ModelHostingStatus_HOSTING_FAILED,
  ModelHostingStatus_STARTING_HOSTING,
  ModelHostingStatus_STOPPING_HOSTING,
  ModelHostingStatus_SYSTEM_UPDATING,
  ModelHostingStatus'
  #-}