{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.RedshiftData.Types.StatusString
( StatusString
( ..,
StatusString_ABORTED,
StatusString_ALL,
StatusString_FAILED,
StatusString_FINISHED,
StatusString_PICKED,
StatusString_STARTED,
StatusString_SUBMITTED
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype StatusString = StatusString'
{ StatusString -> Text
fromStatusString ::
Core.Text
}
deriving stock
( Int -> StatusString -> ShowS
[StatusString] -> ShowS
StatusString -> String
(Int -> StatusString -> ShowS)
-> (StatusString -> String)
-> ([StatusString] -> ShowS)
-> Show StatusString
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StatusString] -> ShowS
$cshowList :: [StatusString] -> ShowS
show :: StatusString -> String
$cshow :: StatusString -> String
showsPrec :: Int -> StatusString -> ShowS
$cshowsPrec :: Int -> StatusString -> ShowS
Prelude.Show,
ReadPrec [StatusString]
ReadPrec StatusString
Int -> ReadS StatusString
ReadS [StatusString]
(Int -> ReadS StatusString)
-> ReadS [StatusString]
-> ReadPrec StatusString
-> ReadPrec [StatusString]
-> Read StatusString
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StatusString]
$creadListPrec :: ReadPrec [StatusString]
readPrec :: ReadPrec StatusString
$creadPrec :: ReadPrec StatusString
readList :: ReadS [StatusString]
$creadList :: ReadS [StatusString]
readsPrec :: Int -> ReadS StatusString
$creadsPrec :: Int -> ReadS StatusString
Prelude.Read,
StatusString -> StatusString -> Bool
(StatusString -> StatusString -> Bool)
-> (StatusString -> StatusString -> Bool) -> Eq StatusString
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StatusString -> StatusString -> Bool
$c/= :: StatusString -> StatusString -> Bool
== :: StatusString -> StatusString -> Bool
$c== :: StatusString -> StatusString -> Bool
Prelude.Eq,
Eq StatusString
Eq StatusString
-> (StatusString -> StatusString -> Ordering)
-> (StatusString -> StatusString -> Bool)
-> (StatusString -> StatusString -> Bool)
-> (StatusString -> StatusString -> Bool)
-> (StatusString -> StatusString -> Bool)
-> (StatusString -> StatusString -> StatusString)
-> (StatusString -> StatusString -> StatusString)
-> Ord StatusString
StatusString -> StatusString -> Bool
StatusString -> StatusString -> Ordering
StatusString -> StatusString -> StatusString
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 :: StatusString -> StatusString -> StatusString
$cmin :: StatusString -> StatusString -> StatusString
max :: StatusString -> StatusString -> StatusString
$cmax :: StatusString -> StatusString -> StatusString
>= :: StatusString -> StatusString -> Bool
$c>= :: StatusString -> StatusString -> Bool
> :: StatusString -> StatusString -> Bool
$c> :: StatusString -> StatusString -> Bool
<= :: StatusString -> StatusString -> Bool
$c<= :: StatusString -> StatusString -> Bool
< :: StatusString -> StatusString -> Bool
$c< :: StatusString -> StatusString -> Bool
compare :: StatusString -> StatusString -> Ordering
$ccompare :: StatusString -> StatusString -> Ordering
$cp1Ord :: Eq StatusString
Prelude.Ord,
(forall x. StatusString -> Rep StatusString x)
-> (forall x. Rep StatusString x -> StatusString)
-> Generic StatusString
forall x. Rep StatusString x -> StatusString
forall x. StatusString -> Rep StatusString x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StatusString x -> StatusString
$cfrom :: forall x. StatusString -> Rep StatusString x
Prelude.Generic
)
deriving newtype
( Int -> StatusString -> Int
StatusString -> Int
(Int -> StatusString -> Int)
-> (StatusString -> Int) -> Hashable StatusString
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: StatusString -> Int
$chash :: StatusString -> Int
hashWithSalt :: Int -> StatusString -> Int
$chashWithSalt :: Int -> StatusString -> Int
Prelude.Hashable,
StatusString -> ()
(StatusString -> ()) -> NFData StatusString
forall a. (a -> ()) -> NFData a
rnf :: StatusString -> ()
$crnf :: StatusString -> ()
Prelude.NFData,
Text -> Either String StatusString
(Text -> Either String StatusString) -> FromText StatusString
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String StatusString
$cfromText :: Text -> Either String StatusString
Core.FromText,
StatusString -> Text
(StatusString -> Text) -> ToText StatusString
forall a. (a -> Text) -> ToText a
toText :: StatusString -> Text
$ctoText :: StatusString -> Text
Core.ToText,
StatusString -> ByteString
(StatusString -> ByteString) -> ToByteString StatusString
forall a. (a -> ByteString) -> ToByteString a
toBS :: StatusString -> ByteString
$ctoBS :: StatusString -> ByteString
Core.ToByteString,
StatusString -> ByteStringBuilder
(StatusString -> ByteStringBuilder) -> ToLog StatusString
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: StatusString -> ByteStringBuilder
$cbuild :: StatusString -> ByteStringBuilder
Core.ToLog,
HeaderName -> StatusString -> [Header]
(HeaderName -> StatusString -> [Header]) -> ToHeader StatusString
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> StatusString -> [Header]
$ctoHeader :: HeaderName -> StatusString -> [Header]
Core.ToHeader,
StatusString -> QueryString
(StatusString -> QueryString) -> ToQuery StatusString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: StatusString -> QueryString
$ctoQuery :: StatusString -> QueryString
Core.ToQuery,
Value -> Parser [StatusString]
Value -> Parser StatusString
(Value -> Parser StatusString)
-> (Value -> Parser [StatusString]) -> FromJSON StatusString
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [StatusString]
$cparseJSONList :: Value -> Parser [StatusString]
parseJSON :: Value -> Parser StatusString
$cparseJSON :: Value -> Parser StatusString
Core.FromJSON,
FromJSONKeyFunction [StatusString]
FromJSONKeyFunction StatusString
FromJSONKeyFunction StatusString
-> FromJSONKeyFunction [StatusString] -> FromJSONKey StatusString
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [StatusString]
$cfromJSONKeyList :: FromJSONKeyFunction [StatusString]
fromJSONKey :: FromJSONKeyFunction StatusString
$cfromJSONKey :: FromJSONKeyFunction StatusString
Core.FromJSONKey,
[StatusString] -> Encoding
[StatusString] -> Value
StatusString -> Encoding
StatusString -> Value
(StatusString -> Value)
-> (StatusString -> Encoding)
-> ([StatusString] -> Value)
-> ([StatusString] -> Encoding)
-> ToJSON StatusString
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [StatusString] -> Encoding
$ctoEncodingList :: [StatusString] -> Encoding
toJSONList :: [StatusString] -> Value
$ctoJSONList :: [StatusString] -> Value
toEncoding :: StatusString -> Encoding
$ctoEncoding :: StatusString -> Encoding
toJSON :: StatusString -> Value
$ctoJSON :: StatusString -> Value
Core.ToJSON,
ToJSONKeyFunction [StatusString]
ToJSONKeyFunction StatusString
ToJSONKeyFunction StatusString
-> ToJSONKeyFunction [StatusString] -> ToJSONKey StatusString
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [StatusString]
$ctoJSONKeyList :: ToJSONKeyFunction [StatusString]
toJSONKey :: ToJSONKeyFunction StatusString
$ctoJSONKey :: ToJSONKeyFunction StatusString
Core.ToJSONKey,
[Node] -> Either String StatusString
([Node] -> Either String StatusString) -> FromXML StatusString
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String StatusString
$cparseXML :: [Node] -> Either String StatusString
Core.FromXML,
StatusString -> XML
(StatusString -> XML) -> ToXML StatusString
forall a. (a -> XML) -> ToXML a
toXML :: StatusString -> XML
$ctoXML :: StatusString -> XML
Core.ToXML
)
pattern StatusString_ABORTED :: StatusString
pattern $bStatusString_ABORTED :: StatusString
$mStatusString_ABORTED :: forall r. StatusString -> (Void# -> r) -> (Void# -> r) -> r
StatusString_ABORTED = StatusString' "ABORTED"
pattern StatusString_ALL :: StatusString
pattern $bStatusString_ALL :: StatusString
$mStatusString_ALL :: forall r. StatusString -> (Void# -> r) -> (Void# -> r) -> r
StatusString_ALL = StatusString' "ALL"
pattern StatusString_FAILED :: StatusString
pattern $bStatusString_FAILED :: StatusString
$mStatusString_FAILED :: forall r. StatusString -> (Void# -> r) -> (Void# -> r) -> r
StatusString_FAILED = StatusString' "FAILED"
pattern StatusString_FINISHED :: StatusString
pattern $bStatusString_FINISHED :: StatusString
$mStatusString_FINISHED :: forall r. StatusString -> (Void# -> r) -> (Void# -> r) -> r
StatusString_FINISHED = StatusString' "FINISHED"
pattern StatusString_PICKED :: StatusString
pattern $bStatusString_PICKED :: StatusString
$mStatusString_PICKED :: forall r. StatusString -> (Void# -> r) -> (Void# -> r) -> r
StatusString_PICKED = StatusString' "PICKED"
pattern StatusString_STARTED :: StatusString
pattern $bStatusString_STARTED :: StatusString
$mStatusString_STARTED :: forall r. StatusString -> (Void# -> r) -> (Void# -> r) -> r
StatusString_STARTED = StatusString' "STARTED"
pattern StatusString_SUBMITTED :: StatusString
pattern $bStatusString_SUBMITTED :: StatusString
$mStatusString_SUBMITTED :: forall r. StatusString -> (Void# -> r) -> (Void# -> r) -> r
StatusString_SUBMITTED = StatusString' "SUBMITTED"
{-# COMPLETE
StatusString_ABORTED,
StatusString_ALL,
StatusString_FAILED,
StatusString_FINISHED,
StatusString_PICKED,
StatusString_STARTED,
StatusString_SUBMITTED,
StatusString'
#-}