{-# 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.HttpEndpointS3BackupMode
-- 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.HttpEndpointS3BackupMode
  ( HttpEndpointS3BackupMode
      ( ..,
        HttpEndpointS3BackupMode_AllData,
        HttpEndpointS3BackupMode_FailedDataOnly
      ),
  )
where

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

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

pattern HttpEndpointS3BackupMode_AllData :: HttpEndpointS3BackupMode
pattern $bHttpEndpointS3BackupMode_AllData :: HttpEndpointS3BackupMode
$mHttpEndpointS3BackupMode_AllData :: forall r.
HttpEndpointS3BackupMode -> (Void# -> r) -> (Void# -> r) -> r
HttpEndpointS3BackupMode_AllData = HttpEndpointS3BackupMode' "AllData"

pattern HttpEndpointS3BackupMode_FailedDataOnly :: HttpEndpointS3BackupMode
pattern $bHttpEndpointS3BackupMode_FailedDataOnly :: HttpEndpointS3BackupMode
$mHttpEndpointS3BackupMode_FailedDataOnly :: forall r.
HttpEndpointS3BackupMode -> (Void# -> r) -> (Void# -> r) -> r
HttpEndpointS3BackupMode_FailedDataOnly = HttpEndpointS3BackupMode' "FailedDataOnly"

{-# COMPLETE
  HttpEndpointS3BackupMode_AllData,
  HttpEndpointS3BackupMode_FailedDataOnly,
  HttpEndpointS3BackupMode'
  #-}