{-# 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.HoneyCode.Types.TableDataImportJobStatus
-- 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.HoneyCode.Types.TableDataImportJobStatus
  ( TableDataImportJobStatus
      ( ..,
        TableDataImportJobStatus_COMPLETED,
        TableDataImportJobStatus_FAILED,
        TableDataImportJobStatus_IN_PROGRESS,
        TableDataImportJobStatus_SUBMITTED
      ),
  )
where

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

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

pattern TableDataImportJobStatus_COMPLETED :: TableDataImportJobStatus
pattern $bTableDataImportJobStatus_COMPLETED :: TableDataImportJobStatus
$mTableDataImportJobStatus_COMPLETED :: forall r.
TableDataImportJobStatus -> (Void# -> r) -> (Void# -> r) -> r
TableDataImportJobStatus_COMPLETED = TableDataImportJobStatus' "COMPLETED"

pattern TableDataImportJobStatus_FAILED :: TableDataImportJobStatus
pattern $bTableDataImportJobStatus_FAILED :: TableDataImportJobStatus
$mTableDataImportJobStatus_FAILED :: forall r.
TableDataImportJobStatus -> (Void# -> r) -> (Void# -> r) -> r
TableDataImportJobStatus_FAILED = TableDataImportJobStatus' "FAILED"

pattern TableDataImportJobStatus_IN_PROGRESS :: TableDataImportJobStatus
pattern $bTableDataImportJobStatus_IN_PROGRESS :: TableDataImportJobStatus
$mTableDataImportJobStatus_IN_PROGRESS :: forall r.
TableDataImportJobStatus -> (Void# -> r) -> (Void# -> r) -> r
TableDataImportJobStatus_IN_PROGRESS = TableDataImportJobStatus' "IN_PROGRESS"

pattern TableDataImportJobStatus_SUBMITTED :: TableDataImportJobStatus
pattern $bTableDataImportJobStatus_SUBMITTED :: TableDataImportJobStatus
$mTableDataImportJobStatus_SUBMITTED :: forall r.
TableDataImportJobStatus -> (Void# -> r) -> (Void# -> r) -> r
TableDataImportJobStatus_SUBMITTED = TableDataImportJobStatus' "SUBMITTED"

{-# COMPLETE
  TableDataImportJobStatus_COMPLETED,
  TableDataImportJobStatus_FAILED,
  TableDataImportJobStatus_IN_PROGRESS,
  TableDataImportJobStatus_SUBMITTED,
  TableDataImportJobStatus'
  #-}