{-# 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.SplunkS3BackupMode
-- 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.SplunkS3BackupMode
  ( SplunkS3BackupMode
      ( ..,
        SplunkS3BackupMode_AllEvents,
        SplunkS3BackupMode_FailedEventsOnly
      ),
  )
where

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

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

pattern SplunkS3BackupMode_AllEvents :: SplunkS3BackupMode
pattern $bSplunkS3BackupMode_AllEvents :: SplunkS3BackupMode
$mSplunkS3BackupMode_AllEvents :: forall r. SplunkS3BackupMode -> (Void# -> r) -> (Void# -> r) -> r
SplunkS3BackupMode_AllEvents = SplunkS3BackupMode' "AllEvents"

pattern SplunkS3BackupMode_FailedEventsOnly :: SplunkS3BackupMode
pattern $bSplunkS3BackupMode_FailedEventsOnly :: SplunkS3BackupMode
$mSplunkS3BackupMode_FailedEventsOnly :: forall r. SplunkS3BackupMode -> (Void# -> r) -> (Void# -> r) -> r
SplunkS3BackupMode_FailedEventsOnly = SplunkS3BackupMode' "FailedEventsOnly"

{-# COMPLETE
  SplunkS3BackupMode_AllEvents,
  SplunkS3BackupMode_FailedEventsOnly,
  SplunkS3BackupMode'
  #-}