{-# 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-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.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.Prelude as Prelude

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

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

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

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

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

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

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