{-# 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.IotTwinMaker.Types.PropertyUpdateType
-- 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.IotTwinMaker.Types.PropertyUpdateType
  ( PropertyUpdateType
      ( ..,
        PropertyUpdateType_CREATE,
        PropertyUpdateType_DELETE,
        PropertyUpdateType_UPDATE
      ),
  )
where

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

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

pattern PropertyUpdateType_CREATE :: PropertyUpdateType
pattern $bPropertyUpdateType_CREATE :: PropertyUpdateType
$mPropertyUpdateType_CREATE :: forall {r}. PropertyUpdateType -> ((# #) -> r) -> ((# #) -> r) -> r
PropertyUpdateType_CREATE = PropertyUpdateType' "CREATE"

pattern PropertyUpdateType_DELETE :: PropertyUpdateType
pattern $bPropertyUpdateType_DELETE :: PropertyUpdateType
$mPropertyUpdateType_DELETE :: forall {r}. PropertyUpdateType -> ((# #) -> r) -> ((# #) -> r) -> r
PropertyUpdateType_DELETE = PropertyUpdateType' "DELETE"

pattern PropertyUpdateType_UPDATE :: PropertyUpdateType
pattern $bPropertyUpdateType_UPDATE :: PropertyUpdateType
$mPropertyUpdateType_UPDATE :: forall {r}. PropertyUpdateType -> ((# #) -> r) -> ((# #) -> r) -> r
PropertyUpdateType_UPDATE = PropertyUpdateType' "UPDATE"

{-# COMPLETE
  PropertyUpdateType_CREATE,
  PropertyUpdateType_DELETE,
  PropertyUpdateType_UPDATE,
  PropertyUpdateType'
  #-}