{-# 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.FSx.Types.DataRepositoryTaskLifecycle
-- 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.FSx.Types.DataRepositoryTaskLifecycle
  ( DataRepositoryTaskLifecycle
      ( ..,
        DataRepositoryTaskLifecycle_CANCELED,
        DataRepositoryTaskLifecycle_CANCELING,
        DataRepositoryTaskLifecycle_EXECUTING,
        DataRepositoryTaskLifecycle_FAILED,
        DataRepositoryTaskLifecycle_PENDING,
        DataRepositoryTaskLifecycle_SUCCEEDED
      ),
  )
where

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

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

pattern DataRepositoryTaskLifecycle_CANCELED :: DataRepositoryTaskLifecycle
pattern $bDataRepositoryTaskLifecycle_CANCELED :: DataRepositoryTaskLifecycle
$mDataRepositoryTaskLifecycle_CANCELED :: forall {r}.
DataRepositoryTaskLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
DataRepositoryTaskLifecycle_CANCELED = DataRepositoryTaskLifecycle' "CANCELED"

pattern DataRepositoryTaskLifecycle_CANCELING :: DataRepositoryTaskLifecycle
pattern $bDataRepositoryTaskLifecycle_CANCELING :: DataRepositoryTaskLifecycle
$mDataRepositoryTaskLifecycle_CANCELING :: forall {r}.
DataRepositoryTaskLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
DataRepositoryTaskLifecycle_CANCELING = DataRepositoryTaskLifecycle' "CANCELING"

pattern DataRepositoryTaskLifecycle_EXECUTING :: DataRepositoryTaskLifecycle
pattern $bDataRepositoryTaskLifecycle_EXECUTING :: DataRepositoryTaskLifecycle
$mDataRepositoryTaskLifecycle_EXECUTING :: forall {r}.
DataRepositoryTaskLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
DataRepositoryTaskLifecycle_EXECUTING = DataRepositoryTaskLifecycle' "EXECUTING"

pattern DataRepositoryTaskLifecycle_FAILED :: DataRepositoryTaskLifecycle
pattern $bDataRepositoryTaskLifecycle_FAILED :: DataRepositoryTaskLifecycle
$mDataRepositoryTaskLifecycle_FAILED :: forall {r}.
DataRepositoryTaskLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
DataRepositoryTaskLifecycle_FAILED = DataRepositoryTaskLifecycle' "FAILED"

pattern DataRepositoryTaskLifecycle_PENDING :: DataRepositoryTaskLifecycle
pattern $bDataRepositoryTaskLifecycle_PENDING :: DataRepositoryTaskLifecycle
$mDataRepositoryTaskLifecycle_PENDING :: forall {r}.
DataRepositoryTaskLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
DataRepositoryTaskLifecycle_PENDING = DataRepositoryTaskLifecycle' "PENDING"

pattern DataRepositoryTaskLifecycle_SUCCEEDED :: DataRepositoryTaskLifecycle
pattern $bDataRepositoryTaskLifecycle_SUCCEEDED :: DataRepositoryTaskLifecycle
$mDataRepositoryTaskLifecycle_SUCCEEDED :: forall {r}.
DataRepositoryTaskLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
DataRepositoryTaskLifecycle_SUCCEEDED = DataRepositoryTaskLifecycle' "SUCCEEDED"

{-# COMPLETE
  DataRepositoryTaskLifecycle_CANCELED,
  DataRepositoryTaskLifecycle_CANCELING,
  DataRepositoryTaskLifecycle_EXECUTING,
  DataRepositoryTaskLifecycle_FAILED,
  DataRepositoryTaskLifecycle_PENDING,
  DataRepositoryTaskLifecycle_SUCCEEDED,
  DataRepositoryTaskLifecycle'
  #-}