{-# 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.S3.Types.MFADelete
-- 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.S3.Types.MFADelete
  ( MFADelete
      ( ..,
        MFADelete_Disabled,
        MFADelete_Enabled
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
import Amazonka.S3.Internal

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

pattern MFADelete_Disabled :: MFADelete
pattern $bMFADelete_Disabled :: MFADelete
$mMFADelete_Disabled :: forall r. MFADelete -> (Void# -> r) -> (Void# -> r) -> r
MFADelete_Disabled = MFADelete' "Disabled"

pattern MFADelete_Enabled :: MFADelete
pattern $bMFADelete_Enabled :: MFADelete
$mMFADelete_Enabled :: forall r. MFADelete -> (Void# -> r) -> (Void# -> r) -> r
MFADelete_Enabled = MFADelete' "Enabled"

{-# COMPLETE
  MFADelete_Disabled,
  MFADelete_Enabled,
  MFADelete'
  #-}