{-# 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.MFADeleteStatus
-- 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.MFADeleteStatus
  ( MFADeleteStatus
      ( ..,
        MFADeleteStatus_Disabled,
        MFADeleteStatus_Enabled
      ),
  )
where

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

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

pattern MFADeleteStatus_Disabled :: MFADeleteStatus
pattern $bMFADeleteStatus_Disabled :: MFADeleteStatus
$mMFADeleteStatus_Disabled :: forall r. MFADeleteStatus -> (Void# -> r) -> (Void# -> r) -> r
MFADeleteStatus_Disabled = MFADeleteStatus' "Disabled"

pattern MFADeleteStatus_Enabled :: MFADeleteStatus
pattern $bMFADeleteStatus_Enabled :: MFADeleteStatus
$mMFADeleteStatus_Enabled :: forall r. MFADeleteStatus -> (Void# -> r) -> (Void# -> r) -> r
MFADeleteStatus_Enabled = MFADeleteStatus' "Enabled"

{-# COMPLETE
  MFADeleteStatus_Disabled,
  MFADeleteStatus_Enabled,
  MFADeleteStatus'
  #-}