{-# 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.BatchGetAssetPropertyValueErrorCode
-- 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.BatchGetAssetPropertyValueErrorCode
  ( BatchGetAssetPropertyValueErrorCode
      ( ..,
        BatchGetAssetPropertyValueErrorCode_AccessDeniedException,
        BatchGetAssetPropertyValueErrorCode_InvalidRequestException,
        BatchGetAssetPropertyValueErrorCode_ResourceNotFoundException
      ),
  )
where

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

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

pattern BatchGetAssetPropertyValueErrorCode_AccessDeniedException :: BatchGetAssetPropertyValueErrorCode
pattern $bBatchGetAssetPropertyValueErrorCode_AccessDeniedException :: BatchGetAssetPropertyValueErrorCode
$mBatchGetAssetPropertyValueErrorCode_AccessDeniedException :: forall {r}.
BatchGetAssetPropertyValueErrorCode
-> ((# #) -> r) -> ((# #) -> r) -> r
BatchGetAssetPropertyValueErrorCode_AccessDeniedException = BatchGetAssetPropertyValueErrorCode' "AccessDeniedException"

pattern BatchGetAssetPropertyValueErrorCode_InvalidRequestException :: BatchGetAssetPropertyValueErrorCode
pattern $bBatchGetAssetPropertyValueErrorCode_InvalidRequestException :: BatchGetAssetPropertyValueErrorCode
$mBatchGetAssetPropertyValueErrorCode_InvalidRequestException :: forall {r}.
BatchGetAssetPropertyValueErrorCode
-> ((# #) -> r) -> ((# #) -> r) -> r
BatchGetAssetPropertyValueErrorCode_InvalidRequestException = BatchGetAssetPropertyValueErrorCode' "InvalidRequestException"

pattern BatchGetAssetPropertyValueErrorCode_ResourceNotFoundException :: BatchGetAssetPropertyValueErrorCode
pattern $bBatchGetAssetPropertyValueErrorCode_ResourceNotFoundException :: BatchGetAssetPropertyValueErrorCode
$mBatchGetAssetPropertyValueErrorCode_ResourceNotFoundException :: forall {r}.
BatchGetAssetPropertyValueErrorCode
-> ((# #) -> r) -> ((# #) -> r) -> r
BatchGetAssetPropertyValueErrorCode_ResourceNotFoundException = BatchGetAssetPropertyValueErrorCode' "ResourceNotFoundException"

{-# COMPLETE
  BatchGetAssetPropertyValueErrorCode_AccessDeniedException,
  BatchGetAssetPropertyValueErrorCode_InvalidRequestException,
  BatchGetAssetPropertyValueErrorCode_ResourceNotFoundException,
  BatchGetAssetPropertyValueErrorCode'
  #-}