{-# 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.Glue.Types.UpdateBehavior
-- 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.Glue.Types.UpdateBehavior
  ( UpdateBehavior
      ( ..,
        UpdateBehavior_LOG,
        UpdateBehavior_UPDATE_IN_DATABASE
      ),
  )
where

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

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

pattern UpdateBehavior_LOG :: UpdateBehavior
pattern $bUpdateBehavior_LOG :: UpdateBehavior
$mUpdateBehavior_LOG :: forall r. UpdateBehavior -> (Void# -> r) -> (Void# -> r) -> r
UpdateBehavior_LOG = UpdateBehavior' "LOG"

pattern UpdateBehavior_UPDATE_IN_DATABASE :: UpdateBehavior
pattern $bUpdateBehavior_UPDATE_IN_DATABASE :: UpdateBehavior
$mUpdateBehavior_UPDATE_IN_DATABASE :: forall r. UpdateBehavior -> (Void# -> r) -> (Void# -> r) -> r
UpdateBehavior_UPDATE_IN_DATABASE = UpdateBehavior' "UPDATE_IN_DATABASE"

{-# COMPLETE
  UpdateBehavior_LOG,
  UpdateBehavior_UPDATE_IN_DATABASE,
  UpdateBehavior'
  #-}