{-# 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.Translate.Types.ParallelDataStatus
-- 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.Translate.Types.ParallelDataStatus
  ( ParallelDataStatus
      ( ..,
        ParallelDataStatus_ACTIVE,
        ParallelDataStatus_CREATING,
        ParallelDataStatus_DELETING,
        ParallelDataStatus_FAILED,
        ParallelDataStatus_UPDATING
      ),
  )
where

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

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

pattern ParallelDataStatus_ACTIVE :: ParallelDataStatus
pattern $bParallelDataStatus_ACTIVE :: ParallelDataStatus
$mParallelDataStatus_ACTIVE :: forall r. ParallelDataStatus -> (Void# -> r) -> (Void# -> r) -> r
ParallelDataStatus_ACTIVE = ParallelDataStatus' "ACTIVE"

pattern ParallelDataStatus_CREATING :: ParallelDataStatus
pattern $bParallelDataStatus_CREATING :: ParallelDataStatus
$mParallelDataStatus_CREATING :: forall r. ParallelDataStatus -> (Void# -> r) -> (Void# -> r) -> r
ParallelDataStatus_CREATING = ParallelDataStatus' "CREATING"

pattern ParallelDataStatus_DELETING :: ParallelDataStatus
pattern $bParallelDataStatus_DELETING :: ParallelDataStatus
$mParallelDataStatus_DELETING :: forall r. ParallelDataStatus -> (Void# -> r) -> (Void# -> r) -> r
ParallelDataStatus_DELETING = ParallelDataStatus' "DELETING"

pattern ParallelDataStatus_FAILED :: ParallelDataStatus
pattern $bParallelDataStatus_FAILED :: ParallelDataStatus
$mParallelDataStatus_FAILED :: forall r. ParallelDataStatus -> (Void# -> r) -> (Void# -> r) -> r
ParallelDataStatus_FAILED = ParallelDataStatus' "FAILED"

pattern ParallelDataStatus_UPDATING :: ParallelDataStatus
pattern $bParallelDataStatus_UPDATING :: ParallelDataStatus
$mParallelDataStatus_UPDATING :: forall r. ParallelDataStatus -> (Void# -> r) -> (Void# -> r) -> r
ParallelDataStatus_UPDATING = ParallelDataStatus' "UPDATING"

{-# COMPLETE
  ParallelDataStatus_ACTIVE,
  ParallelDataStatus_CREATING,
  ParallelDataStatus_DELETING,
  ParallelDataStatus_FAILED,
  ParallelDataStatus_UPDATING,
  ParallelDataStatus'
  #-}