{-# 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.PropertyGroupUpdateType
-- 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.PropertyGroupUpdateType
  ( PropertyGroupUpdateType
      ( ..,
        PropertyGroupUpdateType_CREATE,
        PropertyGroupUpdateType_DELETE,
        PropertyGroupUpdateType_UPDATE
      ),
  )
where

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

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

pattern PropertyGroupUpdateType_CREATE :: PropertyGroupUpdateType
pattern $bPropertyGroupUpdateType_CREATE :: PropertyGroupUpdateType
$mPropertyGroupUpdateType_CREATE :: forall {r}.
PropertyGroupUpdateType -> ((# #) -> r) -> ((# #) -> r) -> r
PropertyGroupUpdateType_CREATE = PropertyGroupUpdateType' "CREATE"

pattern PropertyGroupUpdateType_DELETE :: PropertyGroupUpdateType
pattern $bPropertyGroupUpdateType_DELETE :: PropertyGroupUpdateType
$mPropertyGroupUpdateType_DELETE :: forall {r}.
PropertyGroupUpdateType -> ((# #) -> r) -> ((# #) -> r) -> r
PropertyGroupUpdateType_DELETE = PropertyGroupUpdateType' "DELETE"

pattern PropertyGroupUpdateType_UPDATE :: PropertyGroupUpdateType
pattern $bPropertyGroupUpdateType_UPDATE :: PropertyGroupUpdateType
$mPropertyGroupUpdateType_UPDATE :: forall {r}.
PropertyGroupUpdateType -> ((# #) -> r) -> ((# #) -> r) -> r
PropertyGroupUpdateType_UPDATE = PropertyGroupUpdateType' "UPDATE"

{-# COMPLETE
  PropertyGroupUpdateType_CREATE,
  PropertyGroupUpdateType_DELETE,
  PropertyGroupUpdateType_UPDATE,
  PropertyGroupUpdateType'
  #-}