{-# 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.Panorama.Types.PackageImportJobStatus
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Panorama.Types.PackageImportJobStatus
  ( PackageImportJobStatus
      ( ..,
        PackageImportJobStatus_FAILED,
        PackageImportJobStatus_PENDING,
        PackageImportJobStatus_SUCCEEDED
      ),
  )
where

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

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

pattern PackageImportJobStatus_FAILED :: PackageImportJobStatus
pattern $bPackageImportJobStatus_FAILED :: PackageImportJobStatus
$mPackageImportJobStatus_FAILED :: forall {r}.
PackageImportJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
PackageImportJobStatus_FAILED = PackageImportJobStatus' "FAILED"

pattern PackageImportJobStatus_PENDING :: PackageImportJobStatus
pattern $bPackageImportJobStatus_PENDING :: PackageImportJobStatus
$mPackageImportJobStatus_PENDING :: forall {r}.
PackageImportJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
PackageImportJobStatus_PENDING = PackageImportJobStatus' "PENDING"

pattern PackageImportJobStatus_SUCCEEDED :: PackageImportJobStatus
pattern $bPackageImportJobStatus_SUCCEEDED :: PackageImportJobStatus
$mPackageImportJobStatus_SUCCEEDED :: forall {r}.
PackageImportJobStatus -> ((# #) -> r) -> ((# #) -> r) -> r
PackageImportJobStatus_SUCCEEDED = PackageImportJobStatus' "SUCCEEDED"

{-# COMPLETE
  PackageImportJobStatus_FAILED,
  PackageImportJobStatus_PENDING,
  PackageImportJobStatus_SUCCEEDED,
  PackageImportJobStatus'
  #-}