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