{-# 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.ResilienceHub.Types.ResourceImportStatusType
-- 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.ResilienceHub.Types.ResourceImportStatusType
  ( ResourceImportStatusType
      ( ..,
        ResourceImportStatusType_Failed,
        ResourceImportStatusType_InProgress,
        ResourceImportStatusType_Pending,
        ResourceImportStatusType_Success
      ),
  )
where

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

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

pattern ResourceImportStatusType_Failed :: ResourceImportStatusType
pattern $bResourceImportStatusType_Failed :: ResourceImportStatusType
$mResourceImportStatusType_Failed :: forall {r}.
ResourceImportStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceImportStatusType_Failed = ResourceImportStatusType' "Failed"

pattern ResourceImportStatusType_InProgress :: ResourceImportStatusType
pattern $bResourceImportStatusType_InProgress :: ResourceImportStatusType
$mResourceImportStatusType_InProgress :: forall {r}.
ResourceImportStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceImportStatusType_InProgress = ResourceImportStatusType' "InProgress"

pattern ResourceImportStatusType_Pending :: ResourceImportStatusType
pattern $bResourceImportStatusType_Pending :: ResourceImportStatusType
$mResourceImportStatusType_Pending :: forall {r}.
ResourceImportStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceImportStatusType_Pending = ResourceImportStatusType' "Pending"

pattern ResourceImportStatusType_Success :: ResourceImportStatusType
pattern $bResourceImportStatusType_Success :: ResourceImportStatusType
$mResourceImportStatusType_Success :: forall {r}.
ResourceImportStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
ResourceImportStatusType_Success = ResourceImportStatusType' "Success"

{-# COMPLETE
  ResourceImportStatusType_Failed,
  ResourceImportStatusType_InProgress,
  ResourceImportStatusType_Pending,
  ResourceImportStatusType_Success,
  ResourceImportStatusType'
  #-}