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

pattern ContributorInsightsAction_DISABLE :: ContributorInsightsAction
pattern $bContributorInsightsAction_DISABLE :: ContributorInsightsAction
$mContributorInsightsAction_DISABLE :: forall {r}.
ContributorInsightsAction -> ((# #) -> r) -> ((# #) -> r) -> r
ContributorInsightsAction_DISABLE = ContributorInsightsAction' "DISABLE"

pattern ContributorInsightsAction_ENABLE :: ContributorInsightsAction
pattern $bContributorInsightsAction_ENABLE :: ContributorInsightsAction
$mContributorInsightsAction_ENABLE :: forall {r}.
ContributorInsightsAction -> ((# #) -> r) -> ((# #) -> r) -> r
ContributorInsightsAction_ENABLE = ContributorInsightsAction' "ENABLE"

{-# COMPLETE
  ContributorInsightsAction_DISABLE,
  ContributorInsightsAction_ENABLE,
  ContributorInsightsAction'
  #-}