{-# 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.RobOMaker.Types.WorldGenerationJobStatus
-- 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.RobOMaker.Types.WorldGenerationJobStatus
  ( WorldGenerationJobStatus
      ( ..,
        WorldGenerationJobStatus_Canceled,
        WorldGenerationJobStatus_Canceling,
        WorldGenerationJobStatus_Completed,
        WorldGenerationJobStatus_Failed,
        WorldGenerationJobStatus_PartialFailed,
        WorldGenerationJobStatus_Pending,
        WorldGenerationJobStatus_Running
      ),
  )
where

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

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

pattern WorldGenerationJobStatus_Canceled :: WorldGenerationJobStatus
pattern $bWorldGenerationJobStatus_Canceled :: WorldGenerationJobStatus
$mWorldGenerationJobStatus_Canceled :: forall {r}.
WorldGenerationJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorldGenerationJobStatus_Canceled = WorldGenerationJobStatus' "Canceled"

pattern WorldGenerationJobStatus_Canceling :: WorldGenerationJobStatus
pattern $bWorldGenerationJobStatus_Canceling :: WorldGenerationJobStatus
$mWorldGenerationJobStatus_Canceling :: forall {r}.
WorldGenerationJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorldGenerationJobStatus_Canceling = WorldGenerationJobStatus' "Canceling"

pattern WorldGenerationJobStatus_Completed :: WorldGenerationJobStatus
pattern $bWorldGenerationJobStatus_Completed :: WorldGenerationJobStatus
$mWorldGenerationJobStatus_Completed :: forall {r}.
WorldGenerationJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorldGenerationJobStatus_Completed = WorldGenerationJobStatus' "Completed"

pattern WorldGenerationJobStatus_Failed :: WorldGenerationJobStatus
pattern $bWorldGenerationJobStatus_Failed :: WorldGenerationJobStatus
$mWorldGenerationJobStatus_Failed :: forall {r}.
WorldGenerationJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorldGenerationJobStatus_Failed = WorldGenerationJobStatus' "Failed"

pattern WorldGenerationJobStatus_PartialFailed :: WorldGenerationJobStatus
pattern $bWorldGenerationJobStatus_PartialFailed :: WorldGenerationJobStatus
$mWorldGenerationJobStatus_PartialFailed :: forall {r}.
WorldGenerationJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorldGenerationJobStatus_PartialFailed = WorldGenerationJobStatus' "PartialFailed"

pattern WorldGenerationJobStatus_Pending :: WorldGenerationJobStatus
pattern $bWorldGenerationJobStatus_Pending :: WorldGenerationJobStatus
$mWorldGenerationJobStatus_Pending :: forall {r}.
WorldGenerationJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorldGenerationJobStatus_Pending = WorldGenerationJobStatus' "Pending"

pattern WorldGenerationJobStatus_Running :: WorldGenerationJobStatus
pattern $bWorldGenerationJobStatus_Running :: WorldGenerationJobStatus
$mWorldGenerationJobStatus_Running :: forall {r}.
WorldGenerationJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorldGenerationJobStatus_Running = WorldGenerationJobStatus' "Running"

{-# COMPLETE
  WorldGenerationJobStatus_Canceled,
  WorldGenerationJobStatus_Canceling,
  WorldGenerationJobStatus_Completed,
  WorldGenerationJobStatus_Failed,
  WorldGenerationJobStatus_PartialFailed,
  WorldGenerationJobStatus_Pending,
  WorldGenerationJobStatus_Running,
  WorldGenerationJobStatus'
  #-}