{-# 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.M2.Types.DataSetTaskLifecycle
-- 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.M2.Types.DataSetTaskLifecycle
  ( DataSetTaskLifecycle
      ( ..,
        DataSetTaskLifecycle_Completed,
        DataSetTaskLifecycle_Creating,
        DataSetTaskLifecycle_Running
      ),
  )
where

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

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

pattern DataSetTaskLifecycle_Completed :: DataSetTaskLifecycle
pattern $bDataSetTaskLifecycle_Completed :: DataSetTaskLifecycle
$mDataSetTaskLifecycle_Completed :: forall {r}.
DataSetTaskLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
DataSetTaskLifecycle_Completed = DataSetTaskLifecycle' "Completed"

pattern DataSetTaskLifecycle_Creating :: DataSetTaskLifecycle
pattern $bDataSetTaskLifecycle_Creating :: DataSetTaskLifecycle
$mDataSetTaskLifecycle_Creating :: forall {r}.
DataSetTaskLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
DataSetTaskLifecycle_Creating = DataSetTaskLifecycle' "Creating"

pattern DataSetTaskLifecycle_Running :: DataSetTaskLifecycle
pattern $bDataSetTaskLifecycle_Running :: DataSetTaskLifecycle
$mDataSetTaskLifecycle_Running :: forall {r}.
DataSetTaskLifecycle -> ((# #) -> r) -> ((# #) -> r) -> r
DataSetTaskLifecycle_Running = DataSetTaskLifecycle' "Running"

{-# COMPLETE
  DataSetTaskLifecycle_Completed,
  DataSetTaskLifecycle_Creating,
  DataSetTaskLifecycle_Running,
  DataSetTaskLifecycle'
  #-}