{-# 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.WellArchitected.Types.DifferenceStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.WellArchitected.Types.DifferenceStatus
  ( DifferenceStatus
      ( ..,
        DifferenceStatus_DELETED,
        DifferenceStatus_NEW,
        DifferenceStatus_UPDATED
      ),
  )
where

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

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

pattern DifferenceStatus_DELETED :: DifferenceStatus
pattern $bDifferenceStatus_DELETED :: DifferenceStatus
$mDifferenceStatus_DELETED :: forall r. DifferenceStatus -> (Void# -> r) -> (Void# -> r) -> r
DifferenceStatus_DELETED = DifferenceStatus' "DELETED"

pattern DifferenceStatus_NEW :: DifferenceStatus
pattern $bDifferenceStatus_NEW :: DifferenceStatus
$mDifferenceStatus_NEW :: forall r. DifferenceStatus -> (Void# -> r) -> (Void# -> r) -> r
DifferenceStatus_NEW = DifferenceStatus' "NEW"

pattern DifferenceStatus_UPDATED :: DifferenceStatus
pattern $bDifferenceStatus_UPDATED :: DifferenceStatus
$mDifferenceStatus_UPDATED :: forall r. DifferenceStatus -> (Void# -> r) -> (Void# -> r) -> r
DifferenceStatus_UPDATED = DifferenceStatus' "UPDATED"

{-# COMPLETE
  DifferenceStatus_DELETED,
  DifferenceStatus_NEW,
  DifferenceStatus_UPDATED,
  DifferenceStatus'
  #-}