{-# 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.DataRepositoryTaskType
-- 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.DataRepositoryTaskType
  ( DataRepositoryTaskType
      ( ..,
        DataRepositoryTaskType_AUTO_RELEASE_DATA,
        DataRepositoryTaskType_EXPORT_TO_REPOSITORY,
        DataRepositoryTaskType_IMPORT_METADATA_FROM_REPOSITORY,
        DataRepositoryTaskType_RELEASE_DATA_FROM_FILESYSTEM
      ),
  )
where

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

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

pattern DataRepositoryTaskType_AUTO_RELEASE_DATA :: DataRepositoryTaskType
pattern $bDataRepositoryTaskType_AUTO_RELEASE_DATA :: DataRepositoryTaskType
$mDataRepositoryTaskType_AUTO_RELEASE_DATA :: forall {r}.
DataRepositoryTaskType -> ((# #) -> r) -> ((# #) -> r) -> r
DataRepositoryTaskType_AUTO_RELEASE_DATA = DataRepositoryTaskType' "AUTO_RELEASE_DATA"

pattern DataRepositoryTaskType_EXPORT_TO_REPOSITORY :: DataRepositoryTaskType
pattern $bDataRepositoryTaskType_EXPORT_TO_REPOSITORY :: DataRepositoryTaskType
$mDataRepositoryTaskType_EXPORT_TO_REPOSITORY :: forall {r}.
DataRepositoryTaskType -> ((# #) -> r) -> ((# #) -> r) -> r
DataRepositoryTaskType_EXPORT_TO_REPOSITORY = DataRepositoryTaskType' "EXPORT_TO_REPOSITORY"

pattern DataRepositoryTaskType_IMPORT_METADATA_FROM_REPOSITORY :: DataRepositoryTaskType
pattern $bDataRepositoryTaskType_IMPORT_METADATA_FROM_REPOSITORY :: DataRepositoryTaskType
$mDataRepositoryTaskType_IMPORT_METADATA_FROM_REPOSITORY :: forall {r}.
DataRepositoryTaskType -> ((# #) -> r) -> ((# #) -> r) -> r
DataRepositoryTaskType_IMPORT_METADATA_FROM_REPOSITORY = DataRepositoryTaskType' "IMPORT_METADATA_FROM_REPOSITORY"

pattern DataRepositoryTaskType_RELEASE_DATA_FROM_FILESYSTEM :: DataRepositoryTaskType
pattern $bDataRepositoryTaskType_RELEASE_DATA_FROM_FILESYSTEM :: DataRepositoryTaskType
$mDataRepositoryTaskType_RELEASE_DATA_FROM_FILESYSTEM :: forall {r}.
DataRepositoryTaskType -> ((# #) -> r) -> ((# #) -> r) -> r
DataRepositoryTaskType_RELEASE_DATA_FROM_FILESYSTEM = DataRepositoryTaskType' "RELEASE_DATA_FROM_FILESYSTEM"

{-# COMPLETE
  DataRepositoryTaskType_AUTO_RELEASE_DATA,
  DataRepositoryTaskType_EXPORT_TO_REPOSITORY,
  DataRepositoryTaskType_IMPORT_METADATA_FROM_REPOSITORY,
  DataRepositoryTaskType_RELEASE_DATA_FROM_FILESYSTEM,
  DataRepositoryTaskType'
  #-}