{-# 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.ReturnValue
-- 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.ReturnValue
  ( ReturnValue
      ( ..,
        ReturnValue_ALL_NEW,
        ReturnValue_ALL_OLD,
        ReturnValue_NONE,
        ReturnValue_UPDATED_NEW,
        ReturnValue_UPDATED_OLD
      ),
  )
where

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

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

pattern ReturnValue_ALL_NEW :: ReturnValue
pattern $bReturnValue_ALL_NEW :: ReturnValue
$mReturnValue_ALL_NEW :: forall r. ReturnValue -> (Void# -> r) -> (Void# -> r) -> r
ReturnValue_ALL_NEW = ReturnValue' "ALL_NEW"

pattern ReturnValue_ALL_OLD :: ReturnValue
pattern $bReturnValue_ALL_OLD :: ReturnValue
$mReturnValue_ALL_OLD :: forall r. ReturnValue -> (Void# -> r) -> (Void# -> r) -> r
ReturnValue_ALL_OLD = ReturnValue' "ALL_OLD"

pattern ReturnValue_NONE :: ReturnValue
pattern $bReturnValue_NONE :: ReturnValue
$mReturnValue_NONE :: forall r. ReturnValue -> (Void# -> r) -> (Void# -> r) -> r
ReturnValue_NONE = ReturnValue' "NONE"

pattern ReturnValue_UPDATED_NEW :: ReturnValue
pattern $bReturnValue_UPDATED_NEW :: ReturnValue
$mReturnValue_UPDATED_NEW :: forall r. ReturnValue -> (Void# -> r) -> (Void# -> r) -> r
ReturnValue_UPDATED_NEW = ReturnValue' "UPDATED_NEW"

pattern ReturnValue_UPDATED_OLD :: ReturnValue
pattern $bReturnValue_UPDATED_OLD :: ReturnValue
$mReturnValue_UPDATED_OLD :: forall r. ReturnValue -> (Void# -> r) -> (Void# -> r) -> r
ReturnValue_UPDATED_OLD = ReturnValue' "UPDATED_OLD"

{-# COMPLETE
  ReturnValue_ALL_NEW,
  ReturnValue_ALL_OLD,
  ReturnValue_NONE,
  ReturnValue_UPDATED_NEW,
  ReturnValue_UPDATED_OLD,
  ReturnValue'
  #-}