{-# 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.WorldExportJobStatus
-- 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.WorldExportJobStatus
  ( WorldExportJobStatus
      ( ..,
        WorldExportJobStatus_Canceled,
        WorldExportJobStatus_Canceling,
        WorldExportJobStatus_Completed,
        WorldExportJobStatus_Failed,
        WorldExportJobStatus_Pending,
        WorldExportJobStatus_Running
      ),
  )
where

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

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

pattern WorldExportJobStatus_Canceled :: WorldExportJobStatus
pattern $bWorldExportJobStatus_Canceled :: WorldExportJobStatus
$mWorldExportJobStatus_Canceled :: forall {r}.
WorldExportJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorldExportJobStatus_Canceled = WorldExportJobStatus' "Canceled"

pattern WorldExportJobStatus_Canceling :: WorldExportJobStatus
pattern $bWorldExportJobStatus_Canceling :: WorldExportJobStatus
$mWorldExportJobStatus_Canceling :: forall {r}.
WorldExportJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorldExportJobStatus_Canceling = WorldExportJobStatus' "Canceling"

pattern WorldExportJobStatus_Completed :: WorldExportJobStatus
pattern $bWorldExportJobStatus_Completed :: WorldExportJobStatus
$mWorldExportJobStatus_Completed :: forall {r}.
WorldExportJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorldExportJobStatus_Completed = WorldExportJobStatus' "Completed"

pattern WorldExportJobStatus_Failed :: WorldExportJobStatus
pattern $bWorldExportJobStatus_Failed :: WorldExportJobStatus
$mWorldExportJobStatus_Failed :: forall {r}.
WorldExportJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorldExportJobStatus_Failed = WorldExportJobStatus' "Failed"

pattern WorldExportJobStatus_Pending :: WorldExportJobStatus
pattern $bWorldExportJobStatus_Pending :: WorldExportJobStatus
$mWorldExportJobStatus_Pending :: forall {r}.
WorldExportJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorldExportJobStatus_Pending = WorldExportJobStatus' "Pending"

pattern WorldExportJobStatus_Running :: WorldExportJobStatus
pattern $bWorldExportJobStatus_Running :: WorldExportJobStatus
$mWorldExportJobStatus_Running :: forall {r}.
WorldExportJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
WorldExportJobStatus_Running = WorldExportJobStatus' "Running"

{-# COMPLETE
  WorldExportJobStatus_Canceled,
  WorldExportJobStatus_Canceling,
  WorldExportJobStatus_Completed,
  WorldExportJobStatus_Failed,
  WorldExportJobStatus_Pending,
  WorldExportJobStatus_Running,
  WorldExportJobStatus'
  #-}