{-# 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.CognitoSync.Types.BulkPublishStatus
-- 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.CognitoSync.Types.BulkPublishStatus
  ( BulkPublishStatus
      ( ..,
        BulkPublishStatus_FAILED,
        BulkPublishStatus_IN_PROGRESS,
        BulkPublishStatus_NOT_STARTED,
        BulkPublishStatus_SUCCEEDED
      ),
  )
where

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

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

pattern BulkPublishStatus_FAILED :: BulkPublishStatus
pattern $bBulkPublishStatus_FAILED :: BulkPublishStatus
$mBulkPublishStatus_FAILED :: forall r. BulkPublishStatus -> (Void# -> r) -> (Void# -> r) -> r
BulkPublishStatus_FAILED = BulkPublishStatus' "FAILED"

pattern BulkPublishStatus_IN_PROGRESS :: BulkPublishStatus
pattern $bBulkPublishStatus_IN_PROGRESS :: BulkPublishStatus
$mBulkPublishStatus_IN_PROGRESS :: forall r. BulkPublishStatus -> (Void# -> r) -> (Void# -> r) -> r
BulkPublishStatus_IN_PROGRESS = BulkPublishStatus' "IN_PROGRESS"

pattern BulkPublishStatus_NOT_STARTED :: BulkPublishStatus
pattern $bBulkPublishStatus_NOT_STARTED :: BulkPublishStatus
$mBulkPublishStatus_NOT_STARTED :: forall r. BulkPublishStatus -> (Void# -> r) -> (Void# -> r) -> r
BulkPublishStatus_NOT_STARTED = BulkPublishStatus' "NOT_STARTED"

pattern BulkPublishStatus_SUCCEEDED :: BulkPublishStatus
pattern $bBulkPublishStatus_SUCCEEDED :: BulkPublishStatus
$mBulkPublishStatus_SUCCEEDED :: forall r. BulkPublishStatus -> (Void# -> r) -> (Void# -> r) -> r
BulkPublishStatus_SUCCEEDED = BulkPublishStatus' "SUCCEEDED"

{-# COMPLETE
  BulkPublishStatus_FAILED,
  BulkPublishStatus_IN_PROGRESS,
  BulkPublishStatus_NOT_STARTED,
  BulkPublishStatus_SUCCEEDED,
  BulkPublishStatus'
  #-}