{-# 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-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.ContributorInsightsAction
  ( ContributorInsightsAction
      ( ..,
        ContributorInsightsAction_DISABLE,
        ContributorInsightsAction_ENABLE
      ),
  )
where

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

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

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

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

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