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