{-# 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.RDS.Types.AutomationMode
-- 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.RDS.Types.AutomationMode
  ( AutomationMode
      ( ..,
        AutomationMode_All_paused,
        AutomationMode_Full
      ),
  )
where

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

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

pattern AutomationMode_All_paused :: AutomationMode
pattern $bAutomationMode_All_paused :: AutomationMode
$mAutomationMode_All_paused :: forall {r}. AutomationMode -> ((# #) -> r) -> ((# #) -> r) -> r
AutomationMode_All_paused = AutomationMode' "all-paused"

pattern AutomationMode_Full :: AutomationMode
pattern $bAutomationMode_Full :: AutomationMode
$mAutomationMode_Full :: forall {r}. AutomationMode -> ((# #) -> r) -> ((# #) -> r) -> r
AutomationMode_Full = AutomationMode' "full"

{-# COMPLETE
  AutomationMode_All_paused,
  AutomationMode_Full,
  AutomationMode'
  #-}