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