{-# 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.CloudFormation.Types.DifferenceType
-- 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.CloudFormation.Types.DifferenceType
  ( DifferenceType
      ( ..,
        DifferenceType_ADD,
        DifferenceType_NOT_EQUAL,
        DifferenceType_REMOVE
      ),
  )
where

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

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

pattern DifferenceType_ADD :: DifferenceType
pattern $bDifferenceType_ADD :: DifferenceType
$mDifferenceType_ADD :: forall {r}. DifferenceType -> ((# #) -> r) -> ((# #) -> r) -> r
DifferenceType_ADD = DifferenceType' "ADD"

pattern DifferenceType_NOT_EQUAL :: DifferenceType
pattern $bDifferenceType_NOT_EQUAL :: DifferenceType
$mDifferenceType_NOT_EQUAL :: forall {r}. DifferenceType -> ((# #) -> r) -> ((# #) -> r) -> r
DifferenceType_NOT_EQUAL = DifferenceType' "NOT_EQUAL"

pattern DifferenceType_REMOVE :: DifferenceType
pattern $bDifferenceType_REMOVE :: DifferenceType
$mDifferenceType_REMOVE :: forall {r}. DifferenceType -> ((# #) -> r) -> ((# #) -> r) -> r
DifferenceType_REMOVE = DifferenceType' "REMOVE"

{-# COMPLETE
  DifferenceType_ADD,
  DifferenceType_NOT_EQUAL,
  DifferenceType_REMOVE,
  DifferenceType'
  #-}