{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Redshift.Types.TableRestoreStatusType
( TableRestoreStatusType
( ..,
TableRestoreStatusType_CANCELED,
TableRestoreStatusType_FAILED,
TableRestoreStatusType_IN_PROGRESS,
TableRestoreStatusType_PENDING,
TableRestoreStatusType_SUCCEEDED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.Redshift.Internal
newtype TableRestoreStatusType = TableRestoreStatusType'
{ TableRestoreStatusType -> Text
fromTableRestoreStatusType ::
Data.Text
}
deriving stock
( Int -> TableRestoreStatusType -> ShowS
[TableRestoreStatusType] -> ShowS
TableRestoreStatusType -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TableRestoreStatusType] -> ShowS
$cshowList :: [TableRestoreStatusType] -> ShowS
show :: TableRestoreStatusType -> String
$cshow :: TableRestoreStatusType -> String
showsPrec :: Int -> TableRestoreStatusType -> ShowS
$cshowsPrec :: Int -> TableRestoreStatusType -> ShowS
Prelude.Show,
ReadPrec [TableRestoreStatusType]
ReadPrec TableRestoreStatusType
Int -> ReadS TableRestoreStatusType
ReadS [TableRestoreStatusType]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TableRestoreStatusType]
$creadListPrec :: ReadPrec [TableRestoreStatusType]
readPrec :: ReadPrec TableRestoreStatusType
$creadPrec :: ReadPrec TableRestoreStatusType
readList :: ReadS [TableRestoreStatusType]
$creadList :: ReadS [TableRestoreStatusType]
readsPrec :: Int -> ReadS TableRestoreStatusType
$creadsPrec :: Int -> ReadS TableRestoreStatusType
Prelude.Read,
TableRestoreStatusType -> TableRestoreStatusType -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TableRestoreStatusType -> TableRestoreStatusType -> Bool
$c/= :: TableRestoreStatusType -> TableRestoreStatusType -> Bool
== :: TableRestoreStatusType -> TableRestoreStatusType -> Bool
$c== :: TableRestoreStatusType -> TableRestoreStatusType -> Bool
Prelude.Eq,
Eq TableRestoreStatusType
TableRestoreStatusType -> TableRestoreStatusType -> Bool
TableRestoreStatusType -> TableRestoreStatusType -> Ordering
TableRestoreStatusType
-> TableRestoreStatusType -> TableRestoreStatusType
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 :: TableRestoreStatusType
-> TableRestoreStatusType -> TableRestoreStatusType
$cmin :: TableRestoreStatusType
-> TableRestoreStatusType -> TableRestoreStatusType
max :: TableRestoreStatusType
-> TableRestoreStatusType -> TableRestoreStatusType
$cmax :: TableRestoreStatusType
-> TableRestoreStatusType -> TableRestoreStatusType
>= :: TableRestoreStatusType -> TableRestoreStatusType -> Bool
$c>= :: TableRestoreStatusType -> TableRestoreStatusType -> Bool
> :: TableRestoreStatusType -> TableRestoreStatusType -> Bool
$c> :: TableRestoreStatusType -> TableRestoreStatusType -> Bool
<= :: TableRestoreStatusType -> TableRestoreStatusType -> Bool
$c<= :: TableRestoreStatusType -> TableRestoreStatusType -> Bool
< :: TableRestoreStatusType -> TableRestoreStatusType -> Bool
$c< :: TableRestoreStatusType -> TableRestoreStatusType -> Bool
compare :: TableRestoreStatusType -> TableRestoreStatusType -> Ordering
$ccompare :: TableRestoreStatusType -> TableRestoreStatusType -> Ordering
Prelude.Ord,
forall x. Rep TableRestoreStatusType x -> TableRestoreStatusType
forall x. TableRestoreStatusType -> Rep TableRestoreStatusType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TableRestoreStatusType x -> TableRestoreStatusType
$cfrom :: forall x. TableRestoreStatusType -> Rep TableRestoreStatusType x
Prelude.Generic
)
deriving newtype
( Eq TableRestoreStatusType
Int -> TableRestoreStatusType -> Int
TableRestoreStatusType -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: TableRestoreStatusType -> Int
$chash :: TableRestoreStatusType -> Int
hashWithSalt :: Int -> TableRestoreStatusType -> Int
$chashWithSalt :: Int -> TableRestoreStatusType -> Int
Prelude.Hashable,
TableRestoreStatusType -> ()
forall a. (a -> ()) -> NFData a
rnf :: TableRestoreStatusType -> ()
$crnf :: TableRestoreStatusType -> ()
Prelude.NFData,
Text -> Either String TableRestoreStatusType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String TableRestoreStatusType
$cfromText :: Text -> Either String TableRestoreStatusType
Data.FromText,
TableRestoreStatusType -> Text
forall a. (a -> Text) -> ToText a
toText :: TableRestoreStatusType -> Text
$ctoText :: TableRestoreStatusType -> Text
Data.ToText,
TableRestoreStatusType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: TableRestoreStatusType -> ByteString
$ctoBS :: TableRestoreStatusType -> ByteString
Data.ToByteString,
TableRestoreStatusType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: TableRestoreStatusType -> ByteStringBuilder
$cbuild :: TableRestoreStatusType -> ByteStringBuilder
Data.ToLog,
HeaderName -> TableRestoreStatusType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> TableRestoreStatusType -> [Header]
$ctoHeader :: HeaderName -> TableRestoreStatusType -> [Header]
Data.ToHeader,
TableRestoreStatusType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: TableRestoreStatusType -> QueryString
$ctoQuery :: TableRestoreStatusType -> QueryString
Data.ToQuery,
Value -> Parser [TableRestoreStatusType]
Value -> Parser TableRestoreStatusType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [TableRestoreStatusType]
$cparseJSONList :: Value -> Parser [TableRestoreStatusType]
parseJSON :: Value -> Parser TableRestoreStatusType
$cparseJSON :: Value -> Parser TableRestoreStatusType
Data.FromJSON,
FromJSONKeyFunction [TableRestoreStatusType]
FromJSONKeyFunction TableRestoreStatusType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [TableRestoreStatusType]
$cfromJSONKeyList :: FromJSONKeyFunction [TableRestoreStatusType]
fromJSONKey :: FromJSONKeyFunction TableRestoreStatusType
$cfromJSONKey :: FromJSONKeyFunction TableRestoreStatusType
Data.FromJSONKey,
[TableRestoreStatusType] -> Encoding
[TableRestoreStatusType] -> Value
TableRestoreStatusType -> Encoding
TableRestoreStatusType -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [TableRestoreStatusType] -> Encoding
$ctoEncodingList :: [TableRestoreStatusType] -> Encoding
toJSONList :: [TableRestoreStatusType] -> Value
$ctoJSONList :: [TableRestoreStatusType] -> Value
toEncoding :: TableRestoreStatusType -> Encoding
$ctoEncoding :: TableRestoreStatusType -> Encoding
toJSON :: TableRestoreStatusType -> Value
$ctoJSON :: TableRestoreStatusType -> Value
Data.ToJSON,
ToJSONKeyFunction [TableRestoreStatusType]
ToJSONKeyFunction TableRestoreStatusType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [TableRestoreStatusType]
$ctoJSONKeyList :: ToJSONKeyFunction [TableRestoreStatusType]
toJSONKey :: ToJSONKeyFunction TableRestoreStatusType
$ctoJSONKey :: ToJSONKeyFunction TableRestoreStatusType
Data.ToJSONKey,
[Node] -> Either String TableRestoreStatusType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String TableRestoreStatusType
$cparseXML :: [Node] -> Either String TableRestoreStatusType
Data.FromXML,
TableRestoreStatusType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: TableRestoreStatusType -> XML
$ctoXML :: TableRestoreStatusType -> XML
Data.ToXML
)
pattern TableRestoreStatusType_CANCELED :: TableRestoreStatusType
pattern $bTableRestoreStatusType_CANCELED :: TableRestoreStatusType
$mTableRestoreStatusType_CANCELED :: forall {r}.
TableRestoreStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
TableRestoreStatusType_CANCELED = TableRestoreStatusType' "CANCELED"
pattern TableRestoreStatusType_FAILED :: TableRestoreStatusType
pattern $bTableRestoreStatusType_FAILED :: TableRestoreStatusType
$mTableRestoreStatusType_FAILED :: forall {r}.
TableRestoreStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
TableRestoreStatusType_FAILED = TableRestoreStatusType' "FAILED"
pattern TableRestoreStatusType_IN_PROGRESS :: TableRestoreStatusType
pattern $bTableRestoreStatusType_IN_PROGRESS :: TableRestoreStatusType
$mTableRestoreStatusType_IN_PROGRESS :: forall {r}.
TableRestoreStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
TableRestoreStatusType_IN_PROGRESS = TableRestoreStatusType' "IN_PROGRESS"
pattern TableRestoreStatusType_PENDING :: TableRestoreStatusType
pattern $bTableRestoreStatusType_PENDING :: TableRestoreStatusType
$mTableRestoreStatusType_PENDING :: forall {r}.
TableRestoreStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
TableRestoreStatusType_PENDING = TableRestoreStatusType' "PENDING"
pattern TableRestoreStatusType_SUCCEEDED :: TableRestoreStatusType
pattern $bTableRestoreStatusType_SUCCEEDED :: TableRestoreStatusType
$mTableRestoreStatusType_SUCCEEDED :: forall {r}.
TableRestoreStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
TableRestoreStatusType_SUCCEEDED = TableRestoreStatusType' "SUCCEEDED"
{-# COMPLETE
TableRestoreStatusType_CANCELED,
TableRestoreStatusType_FAILED,
TableRestoreStatusType_IN_PROGRESS,
TableRestoreStatusType_PENDING,
TableRestoreStatusType_SUCCEEDED,
TableRestoreStatusType'
#-}