{-# 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.SseKmsEncryptedObjectsStatus
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.S3.Types.SseKmsEncryptedObjectsStatus
  ( SseKmsEncryptedObjectsStatus
      ( ..,
        SseKmsEncryptedObjectsStatus_Disabled,
        SseKmsEncryptedObjectsStatus_Enabled
      ),
  )
where

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

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

pattern SseKmsEncryptedObjectsStatus_Disabled :: SseKmsEncryptedObjectsStatus
pattern $bSseKmsEncryptedObjectsStatus_Disabled :: SseKmsEncryptedObjectsStatus
$mSseKmsEncryptedObjectsStatus_Disabled :: forall {r}.
SseKmsEncryptedObjectsStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SseKmsEncryptedObjectsStatus_Disabled = SseKmsEncryptedObjectsStatus' "Disabled"

pattern SseKmsEncryptedObjectsStatus_Enabled :: SseKmsEncryptedObjectsStatus
pattern $bSseKmsEncryptedObjectsStatus_Enabled :: SseKmsEncryptedObjectsStatus
$mSseKmsEncryptedObjectsStatus_Enabled :: forall {r}.
SseKmsEncryptedObjectsStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SseKmsEncryptedObjectsStatus_Enabled = SseKmsEncryptedObjectsStatus' "Enabled"

{-# COMPLETE
  SseKmsEncryptedObjectsStatus_Disabled,
  SseKmsEncryptedObjectsStatus_Enabled,
  SseKmsEncryptedObjectsStatus'
  #-}