{-# 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.Firehose.Types.RedshiftS3BackupMode
-- 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.Firehose.Types.RedshiftS3BackupMode
  ( RedshiftS3BackupMode
      ( ..,
        RedshiftS3BackupMode_Disabled,
        RedshiftS3BackupMode_Enabled
      ),
  )
where

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

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

pattern RedshiftS3BackupMode_Disabled :: RedshiftS3BackupMode
pattern $bRedshiftS3BackupMode_Disabled :: RedshiftS3BackupMode
$mRedshiftS3BackupMode_Disabled :: forall r. RedshiftS3BackupMode -> (Void# -> r) -> (Void# -> r) -> r
RedshiftS3BackupMode_Disabled = RedshiftS3BackupMode' "Disabled"

pattern RedshiftS3BackupMode_Enabled :: RedshiftS3BackupMode
pattern $bRedshiftS3BackupMode_Enabled :: RedshiftS3BackupMode
$mRedshiftS3BackupMode_Enabled :: forall r. RedshiftS3BackupMode -> (Void# -> r) -> (Void# -> r) -> r
RedshiftS3BackupMode_Enabled = RedshiftS3BackupMode' "Enabled"

{-# COMPLETE
  RedshiftS3BackupMode_Disabled,
  RedshiftS3BackupMode_Enabled,
  RedshiftS3BackupMode'
  #-}