{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.S3.Types.CompressionType
( CompressionType
( ..,
CompressionType_BZIP2,
CompressionType_GZIP,
CompressionType_NONE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
import Amazonka.S3.Internal
newtype CompressionType = CompressionType'
{ CompressionType -> Text
fromCompressionType ::
Core.Text
}
deriving stock
( Int -> CompressionType -> ShowS
[CompressionType] -> ShowS
CompressionType -> String
(Int -> CompressionType -> ShowS)
-> (CompressionType -> String)
-> ([CompressionType] -> ShowS)
-> Show CompressionType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CompressionType] -> ShowS
$cshowList :: [CompressionType] -> ShowS
show :: CompressionType -> String
$cshow :: CompressionType -> String
showsPrec :: Int -> CompressionType -> ShowS
$cshowsPrec :: Int -> CompressionType -> ShowS
Prelude.Show,
ReadPrec [CompressionType]
ReadPrec CompressionType
Int -> ReadS CompressionType
ReadS [CompressionType]
(Int -> ReadS CompressionType)
-> ReadS [CompressionType]
-> ReadPrec CompressionType
-> ReadPrec [CompressionType]
-> Read CompressionType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CompressionType]
$creadListPrec :: ReadPrec [CompressionType]
readPrec :: ReadPrec CompressionType
$creadPrec :: ReadPrec CompressionType
readList :: ReadS [CompressionType]
$creadList :: ReadS [CompressionType]
readsPrec :: Int -> ReadS CompressionType
$creadsPrec :: Int -> ReadS CompressionType
Prelude.Read,
CompressionType -> CompressionType -> Bool
(CompressionType -> CompressionType -> Bool)
-> (CompressionType -> CompressionType -> Bool)
-> Eq CompressionType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CompressionType -> CompressionType -> Bool
$c/= :: CompressionType -> CompressionType -> Bool
== :: CompressionType -> CompressionType -> Bool
$c== :: CompressionType -> CompressionType -> Bool
Prelude.Eq,
Eq CompressionType
Eq CompressionType
-> (CompressionType -> CompressionType -> Ordering)
-> (CompressionType -> CompressionType -> Bool)
-> (CompressionType -> CompressionType -> Bool)
-> (CompressionType -> CompressionType -> Bool)
-> (CompressionType -> CompressionType -> Bool)
-> (CompressionType -> CompressionType -> CompressionType)
-> (CompressionType -> CompressionType -> CompressionType)
-> Ord CompressionType
CompressionType -> CompressionType -> Bool
CompressionType -> CompressionType -> Ordering
CompressionType -> CompressionType -> CompressionType
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 :: CompressionType -> CompressionType -> CompressionType
$cmin :: CompressionType -> CompressionType -> CompressionType
max :: CompressionType -> CompressionType -> CompressionType
$cmax :: CompressionType -> CompressionType -> CompressionType
>= :: CompressionType -> CompressionType -> Bool
$c>= :: CompressionType -> CompressionType -> Bool
> :: CompressionType -> CompressionType -> Bool
$c> :: CompressionType -> CompressionType -> Bool
<= :: CompressionType -> CompressionType -> Bool
$c<= :: CompressionType -> CompressionType -> Bool
< :: CompressionType -> CompressionType -> Bool
$c< :: CompressionType -> CompressionType -> Bool
compare :: CompressionType -> CompressionType -> Ordering
$ccompare :: CompressionType -> CompressionType -> Ordering
$cp1Ord :: Eq CompressionType
Prelude.Ord,
(forall x. CompressionType -> Rep CompressionType x)
-> (forall x. Rep CompressionType x -> CompressionType)
-> Generic CompressionType
forall x. Rep CompressionType x -> CompressionType
forall x. CompressionType -> Rep CompressionType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CompressionType x -> CompressionType
$cfrom :: forall x. CompressionType -> Rep CompressionType x
Prelude.Generic
)
deriving newtype
( Int -> CompressionType -> Int
CompressionType -> Int
(Int -> CompressionType -> Int)
-> (CompressionType -> Int) -> Hashable CompressionType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: CompressionType -> Int
$chash :: CompressionType -> Int
hashWithSalt :: Int -> CompressionType -> Int
$chashWithSalt :: Int -> CompressionType -> Int
Prelude.Hashable,
CompressionType -> ()
(CompressionType -> ()) -> NFData CompressionType
forall a. (a -> ()) -> NFData a
rnf :: CompressionType -> ()
$crnf :: CompressionType -> ()
Prelude.NFData,
Text -> Either String CompressionType
(Text -> Either String CompressionType) -> FromText CompressionType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CompressionType
$cfromText :: Text -> Either String CompressionType
Core.FromText,
CompressionType -> Text
(CompressionType -> Text) -> ToText CompressionType
forall a. (a -> Text) -> ToText a
toText :: CompressionType -> Text
$ctoText :: CompressionType -> Text
Core.ToText,
CompressionType -> ByteString
(CompressionType -> ByteString) -> ToByteString CompressionType
forall a. (a -> ByteString) -> ToByteString a
toBS :: CompressionType -> ByteString
$ctoBS :: CompressionType -> ByteString
Core.ToByteString,
CompressionType -> ByteStringBuilder
(CompressionType -> ByteStringBuilder) -> ToLog CompressionType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CompressionType -> ByteStringBuilder
$cbuild :: CompressionType -> ByteStringBuilder
Core.ToLog,
HeaderName -> CompressionType -> [Header]
(HeaderName -> CompressionType -> [Header])
-> ToHeader CompressionType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CompressionType -> [Header]
$ctoHeader :: HeaderName -> CompressionType -> [Header]
Core.ToHeader,
CompressionType -> QueryString
(CompressionType -> QueryString) -> ToQuery CompressionType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CompressionType -> QueryString
$ctoQuery :: CompressionType -> QueryString
Core.ToQuery,
Value -> Parser [CompressionType]
Value -> Parser CompressionType
(Value -> Parser CompressionType)
-> (Value -> Parser [CompressionType]) -> FromJSON CompressionType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [CompressionType]
$cparseJSONList :: Value -> Parser [CompressionType]
parseJSON :: Value -> Parser CompressionType
$cparseJSON :: Value -> Parser CompressionType
Core.FromJSON,
FromJSONKeyFunction [CompressionType]
FromJSONKeyFunction CompressionType
FromJSONKeyFunction CompressionType
-> FromJSONKeyFunction [CompressionType]
-> FromJSONKey CompressionType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CompressionType]
$cfromJSONKeyList :: FromJSONKeyFunction [CompressionType]
fromJSONKey :: FromJSONKeyFunction CompressionType
$cfromJSONKey :: FromJSONKeyFunction CompressionType
Core.FromJSONKey,
[CompressionType] -> Encoding
[CompressionType] -> Value
CompressionType -> Encoding
CompressionType -> Value
(CompressionType -> Value)
-> (CompressionType -> Encoding)
-> ([CompressionType] -> Value)
-> ([CompressionType] -> Encoding)
-> ToJSON CompressionType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [CompressionType] -> Encoding
$ctoEncodingList :: [CompressionType] -> Encoding
toJSONList :: [CompressionType] -> Value
$ctoJSONList :: [CompressionType] -> Value
toEncoding :: CompressionType -> Encoding
$ctoEncoding :: CompressionType -> Encoding
toJSON :: CompressionType -> Value
$ctoJSON :: CompressionType -> Value
Core.ToJSON,
ToJSONKeyFunction [CompressionType]
ToJSONKeyFunction CompressionType
ToJSONKeyFunction CompressionType
-> ToJSONKeyFunction [CompressionType] -> ToJSONKey CompressionType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CompressionType]
$ctoJSONKeyList :: ToJSONKeyFunction [CompressionType]
toJSONKey :: ToJSONKeyFunction CompressionType
$ctoJSONKey :: ToJSONKeyFunction CompressionType
Core.ToJSONKey,
[Node] -> Either String CompressionType
([Node] -> Either String CompressionType)
-> FromXML CompressionType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CompressionType
$cparseXML :: [Node] -> Either String CompressionType
Core.FromXML,
CompressionType -> XML
(CompressionType -> XML) -> ToXML CompressionType
forall a. (a -> XML) -> ToXML a
toXML :: CompressionType -> XML
$ctoXML :: CompressionType -> XML
Core.ToXML
)
pattern CompressionType_BZIP2 :: CompressionType
pattern $bCompressionType_BZIP2 :: CompressionType
$mCompressionType_BZIP2 :: forall r. CompressionType -> (Void# -> r) -> (Void# -> r) -> r
CompressionType_BZIP2 = CompressionType' "BZIP2"
pattern CompressionType_GZIP :: CompressionType
pattern $bCompressionType_GZIP :: CompressionType
$mCompressionType_GZIP :: forall r. CompressionType -> (Void# -> r) -> (Void# -> r) -> r
CompressionType_GZIP = CompressionType' "GZIP"
pattern CompressionType_NONE :: CompressionType
pattern $bCompressionType_NONE :: CompressionType
$mCompressionType_NONE :: forall r. CompressionType -> (Void# -> r) -> (Void# -> r) -> r
CompressionType_NONE = CompressionType' "NONE"
{-# COMPLETE
CompressionType_BZIP2,
CompressionType_GZIP,
CompressionType_NONE,
CompressionType'
#-}