{-# 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.BatchGetAssetPropertyAggregatesErrorCode
-- 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.BatchGetAssetPropertyAggregatesErrorCode
  ( BatchGetAssetPropertyAggregatesErrorCode
      ( ..,
        BatchGetAssetPropertyAggregatesErrorCode_AccessDeniedException,
        BatchGetAssetPropertyAggregatesErrorCode_InvalidRequestException,
        BatchGetAssetPropertyAggregatesErrorCode_ResourceNotFoundException
      ),
  )
where

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

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

pattern BatchGetAssetPropertyAggregatesErrorCode_AccessDeniedException :: BatchGetAssetPropertyAggregatesErrorCode
pattern $bBatchGetAssetPropertyAggregatesErrorCode_AccessDeniedException :: BatchGetAssetPropertyAggregatesErrorCode
$mBatchGetAssetPropertyAggregatesErrorCode_AccessDeniedException :: forall {r}.
BatchGetAssetPropertyAggregatesErrorCode
-> ((# #) -> r) -> ((# #) -> r) -> r
BatchGetAssetPropertyAggregatesErrorCode_AccessDeniedException = BatchGetAssetPropertyAggregatesErrorCode' "AccessDeniedException"

pattern BatchGetAssetPropertyAggregatesErrorCode_InvalidRequestException :: BatchGetAssetPropertyAggregatesErrorCode
pattern $bBatchGetAssetPropertyAggregatesErrorCode_InvalidRequestException :: BatchGetAssetPropertyAggregatesErrorCode
$mBatchGetAssetPropertyAggregatesErrorCode_InvalidRequestException :: forall {r}.
BatchGetAssetPropertyAggregatesErrorCode
-> ((# #) -> r) -> ((# #) -> r) -> r
BatchGetAssetPropertyAggregatesErrorCode_InvalidRequestException = BatchGetAssetPropertyAggregatesErrorCode' "InvalidRequestException"

pattern BatchGetAssetPropertyAggregatesErrorCode_ResourceNotFoundException :: BatchGetAssetPropertyAggregatesErrorCode
pattern $bBatchGetAssetPropertyAggregatesErrorCode_ResourceNotFoundException :: BatchGetAssetPropertyAggregatesErrorCode
$mBatchGetAssetPropertyAggregatesErrorCode_ResourceNotFoundException :: forall {r}.
BatchGetAssetPropertyAggregatesErrorCode
-> ((# #) -> r) -> ((# #) -> r) -> r
BatchGetAssetPropertyAggregatesErrorCode_ResourceNotFoundException = BatchGetAssetPropertyAggregatesErrorCode' "ResourceNotFoundException"

{-# COMPLETE
  BatchGetAssetPropertyAggregatesErrorCode_AccessDeniedException,
  BatchGetAssetPropertyAggregatesErrorCode_InvalidRequestException,
  BatchGetAssetPropertyAggregatesErrorCode_ResourceNotFoundException,
  BatchGetAssetPropertyAggregatesErrorCode'
  #-}