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