{-# 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.IoTSiteWise.Types.BatchEntryCompletionStatus
-- 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.IoTSiteWise.Types.BatchEntryCompletionStatus
  ( BatchEntryCompletionStatus
      ( ..,
        BatchEntryCompletionStatus_ERROR,
        BatchEntryCompletionStatus_SUCCESS
      ),
  )
where

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

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

pattern BatchEntryCompletionStatus_ERROR :: BatchEntryCompletionStatus
pattern $bBatchEntryCompletionStatus_ERROR :: BatchEntryCompletionStatus
$mBatchEntryCompletionStatus_ERROR :: forall {r}.
BatchEntryCompletionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
BatchEntryCompletionStatus_ERROR = BatchEntryCompletionStatus' "ERROR"

pattern BatchEntryCompletionStatus_SUCCESS :: BatchEntryCompletionStatus
pattern $bBatchEntryCompletionStatus_SUCCESS :: BatchEntryCompletionStatus
$mBatchEntryCompletionStatus_SUCCESS :: forall {r}.
BatchEntryCompletionStatus -> ((# #) -> r) -> ((# #) -> r) -> r
BatchEntryCompletionStatus_SUCCESS = BatchEntryCompletionStatus' "SUCCESS"

{-# COMPLETE
  BatchEntryCompletionStatus_ERROR,
  BatchEntryCompletionStatus_SUCCESS,
  BatchEntryCompletionStatus'
  #-}