{-# 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.ElasticsearchS3BackupMode
-- 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.ElasticsearchS3BackupMode
  ( ElasticsearchS3BackupMode
      ( ..,
        ElasticsearchS3BackupMode_AllDocuments,
        ElasticsearchS3BackupMode_FailedDocumentsOnly
      ),
  )
where

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

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

pattern ElasticsearchS3BackupMode_AllDocuments :: ElasticsearchS3BackupMode
pattern $bElasticsearchS3BackupMode_AllDocuments :: ElasticsearchS3BackupMode
$mElasticsearchS3BackupMode_AllDocuments :: forall r.
ElasticsearchS3BackupMode -> (Void# -> r) -> (Void# -> r) -> r
ElasticsearchS3BackupMode_AllDocuments = ElasticsearchS3BackupMode' "AllDocuments"

pattern ElasticsearchS3BackupMode_FailedDocumentsOnly :: ElasticsearchS3BackupMode
pattern $bElasticsearchS3BackupMode_FailedDocumentsOnly :: ElasticsearchS3BackupMode
$mElasticsearchS3BackupMode_FailedDocumentsOnly :: forall r.
ElasticsearchS3BackupMode -> (Void# -> r) -> (Void# -> r) -> r
ElasticsearchS3BackupMode_FailedDocumentsOnly = ElasticsearchS3BackupMode' "FailedDocumentsOnly"

{-# COMPLETE
  ElasticsearchS3BackupMode_AllDocuments,
  ElasticsearchS3BackupMode_FailedDocumentsOnly,
  ElasticsearchS3BackupMode'
  #-}