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

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

newtype ContributorInsightsStatus = ContributorInsightsStatus'
  { ContributorInsightsStatus -> Text
fromContributorInsightsStatus ::
      Core.Text
  }
  deriving stock
    ( Int -> ContributorInsightsStatus -> ShowS
[ContributorInsightsStatus] -> ShowS
ContributorInsightsStatus -> String
(Int -> ContributorInsightsStatus -> ShowS)
-> (ContributorInsightsStatus -> String)
-> ([ContributorInsightsStatus] -> ShowS)
-> Show ContributorInsightsStatus
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]
(Int -> ReadS ContributorInsightsStatus)
-> ReadS [ContributorInsightsStatus]
-> ReadPrec ContributorInsightsStatus
-> ReadPrec [ContributorInsightsStatus]
-> Read 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
(ContributorInsightsStatus -> ContributorInsightsStatus -> Bool)
-> (ContributorInsightsStatus -> ContributorInsightsStatus -> Bool)
-> Eq ContributorInsightsStatus
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
Eq ContributorInsightsStatus
-> (ContributorInsightsStatus
    -> ContributorInsightsStatus -> Ordering)
-> (ContributorInsightsStatus -> ContributorInsightsStatus -> Bool)
-> (ContributorInsightsStatus -> ContributorInsightsStatus -> Bool)
-> (ContributorInsightsStatus -> ContributorInsightsStatus -> Bool)
-> (ContributorInsightsStatus -> ContributorInsightsStatus -> Bool)
-> (ContributorInsightsStatus
    -> ContributorInsightsStatus -> ContributorInsightsStatus)
-> (ContributorInsightsStatus
    -> ContributorInsightsStatus -> ContributorInsightsStatus)
-> Ord 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
$cp1Ord :: Eq ContributorInsightsStatus
Prelude.Ord,
      (forall x.
 ContributorInsightsStatus -> Rep ContributorInsightsStatus x)
-> (forall x.
    Rep ContributorInsightsStatus x -> ContributorInsightsStatus)
-> Generic ContributorInsightsStatus
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
    ( Int -> ContributorInsightsStatus -> Int
ContributorInsightsStatus -> Int
(Int -> ContributorInsightsStatus -> Int)
-> (ContributorInsightsStatus -> Int)
-> Hashable ContributorInsightsStatus
forall 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 -> ()
(ContributorInsightsStatus -> ())
-> NFData ContributorInsightsStatus
forall a. (a -> ()) -> NFData a
rnf :: ContributorInsightsStatus -> ()
$crnf :: ContributorInsightsStatus -> ()
Prelude.NFData,
      Text -> Either String ContributorInsightsStatus
(Text -> Either String ContributorInsightsStatus)
-> FromText ContributorInsightsStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ContributorInsightsStatus
$cfromText :: Text -> Either String ContributorInsightsStatus
Core.FromText,
      ContributorInsightsStatus -> Text
(ContributorInsightsStatus -> Text)
-> ToText ContributorInsightsStatus
forall a. (a -> Text) -> ToText a
toText :: ContributorInsightsStatus -> Text
$ctoText :: ContributorInsightsStatus -> Text
Core.ToText,
      ContributorInsightsStatus -> ByteString
(ContributorInsightsStatus -> ByteString)
-> ToByteString ContributorInsightsStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ContributorInsightsStatus -> ByteString
$ctoBS :: ContributorInsightsStatus -> ByteString
Core.ToByteString,
      ContributorInsightsStatus -> ByteStringBuilder
(ContributorInsightsStatus -> ByteStringBuilder)
-> ToLog ContributorInsightsStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ContributorInsightsStatus -> ByteStringBuilder
$cbuild :: ContributorInsightsStatus -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ContributorInsightsStatus -> [Header]
(HeaderName -> ContributorInsightsStatus -> [Header])
-> ToHeader ContributorInsightsStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ContributorInsightsStatus -> [Header]
$ctoHeader :: HeaderName -> ContributorInsightsStatus -> [Header]
Core.ToHeader,
      ContributorInsightsStatus -> QueryString
(ContributorInsightsStatus -> QueryString)
-> ToQuery ContributorInsightsStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ContributorInsightsStatus -> QueryString
$ctoQuery :: ContributorInsightsStatus -> QueryString
Core.ToQuery,
      Value -> Parser [ContributorInsightsStatus]
Value -> Parser ContributorInsightsStatus
(Value -> Parser ContributorInsightsStatus)
-> (Value -> Parser [ContributorInsightsStatus])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ContributorInsightsStatus]
FromJSONKeyFunction ContributorInsightsStatus
FromJSONKeyFunction ContributorInsightsStatus
-> FromJSONKeyFunction [ContributorInsightsStatus]
-> FromJSONKey ContributorInsightsStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ContributorInsightsStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ContributorInsightsStatus]
fromJSONKey :: FromJSONKeyFunction ContributorInsightsStatus
$cfromJSONKey :: FromJSONKeyFunction ContributorInsightsStatus
Core.FromJSONKey,
      [ContributorInsightsStatus] -> Encoding
[ContributorInsightsStatus] -> Value
ContributorInsightsStatus -> Encoding
ContributorInsightsStatus -> Value
(ContributorInsightsStatus -> Value)
-> (ContributorInsightsStatus -> Encoding)
-> ([ContributorInsightsStatus] -> Value)
-> ([ContributorInsightsStatus] -> Encoding)
-> ToJSON ContributorInsightsStatus
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
Core.ToJSON,
      ToJSONKeyFunction [ContributorInsightsStatus]
ToJSONKeyFunction ContributorInsightsStatus
ToJSONKeyFunction ContributorInsightsStatus
-> ToJSONKeyFunction [ContributorInsightsStatus]
-> ToJSONKey ContributorInsightsStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ContributorInsightsStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ContributorInsightsStatus]
toJSONKey :: ToJSONKeyFunction ContributorInsightsStatus
$ctoJSONKey :: ToJSONKeyFunction ContributorInsightsStatus
Core.ToJSONKey,
      [Node] -> Either String ContributorInsightsStatus
([Node] -> Either String ContributorInsightsStatus)
-> FromXML ContributorInsightsStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ContributorInsightsStatus
$cparseXML :: [Node] -> Either String ContributorInsightsStatus
Core.FromXML,
      ContributorInsightsStatus -> XML
(ContributorInsightsStatus -> XML)
-> ToXML ContributorInsightsStatus
forall a. (a -> XML) -> ToXML a
toXML :: ContributorInsightsStatus -> XML
$ctoXML :: ContributorInsightsStatus -> XML
Core.ToXML
    )

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

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

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

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

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

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