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

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

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

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

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

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

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

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

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