{-# 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.DataSync.Types.TaskQueueing
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.DataSync.Types.TaskQueueing
  ( TaskQueueing
      ( ..,
        TaskQueueing_DISABLED,
        TaskQueueing_ENABLED
      ),
  )
where

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

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

pattern TaskQueueing_DISABLED :: TaskQueueing
pattern $bTaskQueueing_DISABLED :: TaskQueueing
$mTaskQueueing_DISABLED :: forall r. TaskQueueing -> (Void# -> r) -> (Void# -> r) -> r
TaskQueueing_DISABLED = TaskQueueing' "DISABLED"

pattern TaskQueueing_ENABLED :: TaskQueueing
pattern $bTaskQueueing_ENABLED :: TaskQueueing
$mTaskQueueing_ENABLED :: forall r. TaskQueueing -> (Void# -> r) -> (Void# -> r) -> r
TaskQueueing_ENABLED = TaskQueueing' "ENABLED"

{-# COMPLETE
  TaskQueueing_DISABLED,
  TaskQueueing_ENABLED,
  TaskQueueing'
  #-}