{-# 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.BatchGetAssetPropertyValueHistoryErrorCode
-- 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.BatchGetAssetPropertyValueHistoryErrorCode
  ( BatchGetAssetPropertyValueHistoryErrorCode
      ( ..,
        BatchGetAssetPropertyValueHistoryErrorCode_AccessDeniedException,
        BatchGetAssetPropertyValueHistoryErrorCode_InvalidRequestException,
        BatchGetAssetPropertyValueHistoryErrorCode_ResourceNotFoundException
      ),
  )
where

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

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

pattern BatchGetAssetPropertyValueHistoryErrorCode_AccessDeniedException :: BatchGetAssetPropertyValueHistoryErrorCode
pattern $bBatchGetAssetPropertyValueHistoryErrorCode_AccessDeniedException :: BatchGetAssetPropertyValueHistoryErrorCode
$mBatchGetAssetPropertyValueHistoryErrorCode_AccessDeniedException :: forall {r}.
BatchGetAssetPropertyValueHistoryErrorCode
-> ((# #) -> r) -> ((# #) -> r) -> r
BatchGetAssetPropertyValueHistoryErrorCode_AccessDeniedException = BatchGetAssetPropertyValueHistoryErrorCode' "AccessDeniedException"

pattern BatchGetAssetPropertyValueHistoryErrorCode_InvalidRequestException :: BatchGetAssetPropertyValueHistoryErrorCode
pattern $bBatchGetAssetPropertyValueHistoryErrorCode_InvalidRequestException :: BatchGetAssetPropertyValueHistoryErrorCode
$mBatchGetAssetPropertyValueHistoryErrorCode_InvalidRequestException :: forall {r}.
BatchGetAssetPropertyValueHistoryErrorCode
-> ((# #) -> r) -> ((# #) -> r) -> r
BatchGetAssetPropertyValueHistoryErrorCode_InvalidRequestException = BatchGetAssetPropertyValueHistoryErrorCode' "InvalidRequestException"

pattern BatchGetAssetPropertyValueHistoryErrorCode_ResourceNotFoundException :: BatchGetAssetPropertyValueHistoryErrorCode
pattern $bBatchGetAssetPropertyValueHistoryErrorCode_ResourceNotFoundException :: BatchGetAssetPropertyValueHistoryErrorCode
$mBatchGetAssetPropertyValueHistoryErrorCode_ResourceNotFoundException :: forall {r}.
BatchGetAssetPropertyValueHistoryErrorCode
-> ((# #) -> r) -> ((# #) -> r) -> r
BatchGetAssetPropertyValueHistoryErrorCode_ResourceNotFoundException = BatchGetAssetPropertyValueHistoryErrorCode' "ResourceNotFoundException"

{-# COMPLETE
  BatchGetAssetPropertyValueHistoryErrorCode_AccessDeniedException,
  BatchGetAssetPropertyValueHistoryErrorCode_InvalidRequestException,
  BatchGetAssetPropertyValueHistoryErrorCode_ResourceNotFoundException,
  BatchGetAssetPropertyValueHistoryErrorCode'
  #-}