{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.SecurityLake.Types.StorageClass
( StorageClass
( ..,
StorageClass_DEEP_ARCHIVE,
StorageClass_EXPIRE,
StorageClass_GLACIER,
StorageClass_GLACIER_IR,
StorageClass_INTELLIGENT_TIERING,
StorageClass_ONEZONE_IA,
StorageClass_STANDARD_IA
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype StorageClass = StorageClass'
{ StorageClass -> Text
fromStorageClass ::
Data.Text
}
deriving stock
( Int -> StorageClass -> ShowS
[StorageClass] -> ShowS
StorageClass -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StorageClass] -> ShowS
$cshowList :: [StorageClass] -> ShowS
show :: StorageClass -> String
$cshow :: StorageClass -> String
showsPrec :: Int -> StorageClass -> ShowS
$cshowsPrec :: Int -> StorageClass -> ShowS
Prelude.Show,
ReadPrec [StorageClass]
ReadPrec StorageClass
Int -> ReadS StorageClass
ReadS [StorageClass]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StorageClass]
$creadListPrec :: ReadPrec [StorageClass]
readPrec :: ReadPrec StorageClass
$creadPrec :: ReadPrec StorageClass
readList :: ReadS [StorageClass]
$creadList :: ReadS [StorageClass]
readsPrec :: Int -> ReadS StorageClass
$creadsPrec :: Int -> ReadS StorageClass
Prelude.Read,
StorageClass -> StorageClass -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StorageClass -> StorageClass -> Bool
$c/= :: StorageClass -> StorageClass -> Bool
== :: StorageClass -> StorageClass -> Bool
$c== :: StorageClass -> StorageClass -> Bool
Prelude.Eq,
Eq StorageClass
StorageClass -> StorageClass -> Bool
StorageClass -> StorageClass -> Ordering
StorageClass -> StorageClass -> StorageClass
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 :: StorageClass -> StorageClass -> StorageClass
$cmin :: StorageClass -> StorageClass -> StorageClass
max :: StorageClass -> StorageClass -> StorageClass
$cmax :: StorageClass -> StorageClass -> StorageClass
>= :: StorageClass -> StorageClass -> Bool
$c>= :: StorageClass -> StorageClass -> Bool
> :: StorageClass -> StorageClass -> Bool
$c> :: StorageClass -> StorageClass -> Bool
<= :: StorageClass -> StorageClass -> Bool
$c<= :: StorageClass -> StorageClass -> Bool
< :: StorageClass -> StorageClass -> Bool
$c< :: StorageClass -> StorageClass -> Bool
compare :: StorageClass -> StorageClass -> Ordering
$ccompare :: StorageClass -> StorageClass -> Ordering
Prelude.Ord,
forall x. Rep StorageClass x -> StorageClass
forall x. StorageClass -> Rep StorageClass x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StorageClass x -> StorageClass
$cfrom :: forall x. StorageClass -> Rep StorageClass x
Prelude.Generic
)
deriving newtype
( Eq StorageClass
Int -> StorageClass -> Int
StorageClass -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: StorageClass -> Int
$chash :: StorageClass -> Int
hashWithSalt :: Int -> StorageClass -> Int
$chashWithSalt :: Int -> StorageClass -> Int
Prelude.Hashable,
StorageClass -> ()
forall a. (a -> ()) -> NFData a
rnf :: StorageClass -> ()
$crnf :: StorageClass -> ()
Prelude.NFData,
Text -> Either String StorageClass
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String StorageClass
$cfromText :: Text -> Either String StorageClass
Data.FromText,
StorageClass -> Text
forall a. (a -> Text) -> ToText a
toText :: StorageClass -> Text
$ctoText :: StorageClass -> Text
Data.ToText,
StorageClass -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: StorageClass -> ByteString
$ctoBS :: StorageClass -> ByteString
Data.ToByteString,
StorageClass -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: StorageClass -> ByteStringBuilder
$cbuild :: StorageClass -> ByteStringBuilder
Data.ToLog,
HeaderName -> StorageClass -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> StorageClass -> [Header]
$ctoHeader :: HeaderName -> StorageClass -> [Header]
Data.ToHeader,
StorageClass -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: StorageClass -> QueryString
$ctoQuery :: StorageClass -> QueryString
Data.ToQuery,
Value -> Parser [StorageClass]
Value -> Parser StorageClass
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [StorageClass]
$cparseJSONList :: Value -> Parser [StorageClass]
parseJSON :: Value -> Parser StorageClass
$cparseJSON :: Value -> Parser StorageClass
Data.FromJSON,
FromJSONKeyFunction [StorageClass]
FromJSONKeyFunction StorageClass
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [StorageClass]
$cfromJSONKeyList :: FromJSONKeyFunction [StorageClass]
fromJSONKey :: FromJSONKeyFunction StorageClass
$cfromJSONKey :: FromJSONKeyFunction StorageClass
Data.FromJSONKey,
[StorageClass] -> Encoding
[StorageClass] -> Value
StorageClass -> Encoding
StorageClass -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [StorageClass] -> Encoding
$ctoEncodingList :: [StorageClass] -> Encoding
toJSONList :: [StorageClass] -> Value
$ctoJSONList :: [StorageClass] -> Value
toEncoding :: StorageClass -> Encoding
$ctoEncoding :: StorageClass -> Encoding
toJSON :: StorageClass -> Value
$ctoJSON :: StorageClass -> Value
Data.ToJSON,
ToJSONKeyFunction [StorageClass]
ToJSONKeyFunction StorageClass
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [StorageClass]
$ctoJSONKeyList :: ToJSONKeyFunction [StorageClass]
toJSONKey :: ToJSONKeyFunction StorageClass
$ctoJSONKey :: ToJSONKeyFunction StorageClass
Data.ToJSONKey,
[Node] -> Either String StorageClass
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String StorageClass
$cparseXML :: [Node] -> Either String StorageClass
Data.FromXML,
StorageClass -> XML
forall a. (a -> XML) -> ToXML a
toXML :: StorageClass -> XML
$ctoXML :: StorageClass -> XML
Data.ToXML
)
pattern StorageClass_DEEP_ARCHIVE :: StorageClass
pattern $bStorageClass_DEEP_ARCHIVE :: StorageClass
$mStorageClass_DEEP_ARCHIVE :: forall {r}. StorageClass -> ((# #) -> r) -> ((# #) -> r) -> r
StorageClass_DEEP_ARCHIVE = StorageClass' "DEEP_ARCHIVE"
pattern StorageClass_EXPIRE :: StorageClass
pattern $bStorageClass_EXPIRE :: StorageClass
$mStorageClass_EXPIRE :: forall {r}. StorageClass -> ((# #) -> r) -> ((# #) -> r) -> r
StorageClass_EXPIRE = StorageClass' "EXPIRE"
pattern StorageClass_GLACIER :: StorageClass
pattern $bStorageClass_GLACIER :: StorageClass
$mStorageClass_GLACIER :: forall {r}. StorageClass -> ((# #) -> r) -> ((# #) -> r) -> r
StorageClass_GLACIER = StorageClass' "GLACIER"
pattern StorageClass_GLACIER_IR :: StorageClass
pattern $bStorageClass_GLACIER_IR :: StorageClass
$mStorageClass_GLACIER_IR :: forall {r}. StorageClass -> ((# #) -> r) -> ((# #) -> r) -> r
StorageClass_GLACIER_IR = StorageClass' "GLACIER_IR"
pattern StorageClass_INTELLIGENT_TIERING :: StorageClass
pattern $bStorageClass_INTELLIGENT_TIERING :: StorageClass
$mStorageClass_INTELLIGENT_TIERING :: forall {r}. StorageClass -> ((# #) -> r) -> ((# #) -> r) -> r
StorageClass_INTELLIGENT_TIERING = StorageClass' "INTELLIGENT_TIERING"
pattern StorageClass_ONEZONE_IA :: StorageClass
pattern $bStorageClass_ONEZONE_IA :: StorageClass
$mStorageClass_ONEZONE_IA :: forall {r}. StorageClass -> ((# #) -> r) -> ((# #) -> r) -> r
StorageClass_ONEZONE_IA = StorageClass' "ONEZONE_IA"
pattern StorageClass_STANDARD_IA :: StorageClass
pattern $bStorageClass_STANDARD_IA :: StorageClass
$mStorageClass_STANDARD_IA :: forall {r}. StorageClass -> ((# #) -> r) -> ((# #) -> r) -> r
StorageClass_STANDARD_IA = StorageClass' "STANDARD_IA"
{-# COMPLETE
StorageClass_DEEP_ARCHIVE,
StorageClass_EXPIRE,
StorageClass_GLACIER,
StorageClass_GLACIER_IR,
StorageClass_INTELLIGENT_TIERING,
StorageClass_ONEZONE_IA,
StorageClass_STANDARD_IA,
StorageClass'
#-}