{-# 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.Macie.Types.S3OneTimeClassificationType
-- 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.Macie.Types.S3OneTimeClassificationType
  ( S3OneTimeClassificationType
      ( ..,
        S3OneTimeClassificationType_FULL,
        S3OneTimeClassificationType_NONE
      ),
  )
where

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

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

pattern S3OneTimeClassificationType_FULL :: S3OneTimeClassificationType
pattern $bS3OneTimeClassificationType_FULL :: S3OneTimeClassificationType
$mS3OneTimeClassificationType_FULL :: forall r.
S3OneTimeClassificationType -> (Void# -> r) -> (Void# -> r) -> r
S3OneTimeClassificationType_FULL = S3OneTimeClassificationType' "FULL"

pattern S3OneTimeClassificationType_NONE :: S3OneTimeClassificationType
pattern $bS3OneTimeClassificationType_NONE :: S3OneTimeClassificationType
$mS3OneTimeClassificationType_NONE :: forall r.
S3OneTimeClassificationType -> (Void# -> r) -> (Void# -> r) -> r
S3OneTimeClassificationType_NONE = S3OneTimeClassificationType' "NONE"

{-# COMPLETE
  S3OneTimeClassificationType_FULL,
  S3OneTimeClassificationType_NONE,
  S3OneTimeClassificationType'
  #-}