{-# 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.DynamoDB.Types.ContributorInsightsStatus
-- 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.DynamoDB.Types.ContributorInsightsStatus
  ( ContributorInsightsStatus
      ( ..,
        ContributorInsightsStatus_DISABLED,
        ContributorInsightsStatus_DISABLING,
        ContributorInsightsStatus_ENABLED,
        ContributorInsightsStatus_ENABLING,
        ContributorInsightsStatus_FAILED
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import Amazonka.DynamoDB.Types.AttributeValue
import Amazonka.DynamoDB.Types.WriteRequest
import qualified Amazonka.Prelude as Prelude

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

pattern ContributorInsightsStatus_DISABLED :: ContributorInsightsStatus
pattern $bContributorInsightsStatus_DISABLED :: ContributorInsightsStatus
$mContributorInsightsStatus_DISABLED :: forall {r}.
ContributorInsightsStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ContributorInsightsStatus_DISABLED = ContributorInsightsStatus' "DISABLED"

pattern ContributorInsightsStatus_DISABLING :: ContributorInsightsStatus
pattern $bContributorInsightsStatus_DISABLING :: ContributorInsightsStatus
$mContributorInsightsStatus_DISABLING :: forall {r}.
ContributorInsightsStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ContributorInsightsStatus_DISABLING = ContributorInsightsStatus' "DISABLING"

pattern ContributorInsightsStatus_ENABLED :: ContributorInsightsStatus
pattern $bContributorInsightsStatus_ENABLED :: ContributorInsightsStatus
$mContributorInsightsStatus_ENABLED :: forall {r}.
ContributorInsightsStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ContributorInsightsStatus_ENABLED = ContributorInsightsStatus' "ENABLED"

pattern ContributorInsightsStatus_ENABLING :: ContributorInsightsStatus
pattern $bContributorInsightsStatus_ENABLING :: ContributorInsightsStatus
$mContributorInsightsStatus_ENABLING :: forall {r}.
ContributorInsightsStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ContributorInsightsStatus_ENABLING = ContributorInsightsStatus' "ENABLING"

pattern ContributorInsightsStatus_FAILED :: ContributorInsightsStatus
pattern $bContributorInsightsStatus_FAILED :: ContributorInsightsStatus
$mContributorInsightsStatus_FAILED :: forall {r}.
ContributorInsightsStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ContributorInsightsStatus_FAILED = ContributorInsightsStatus' "FAILED"

{-# COMPLETE
  ContributorInsightsStatus_DISABLED,
  ContributorInsightsStatus_DISABLING,
  ContributorInsightsStatus_ENABLED,
  ContributorInsightsStatus_ENABLING,
  ContributorInsightsStatus_FAILED,
  ContributorInsightsStatus'
  #-}