{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.ApplicationCostProfiler.Types.Format
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ApplicationCostProfiler.Types.Format
  ( Format
      ( ..,
        Format_CSV,
        Format_PARQUET
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

newtype Format = Format' {Format -> Text
fromFormat :: Data.Text}
  deriving stock
    ( Int -> Format -> ShowS
[Format] -> ShowS
Format -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq Format
Int -> Format -> Int
Format -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: Format -> ()
$crnf :: Format -> ()
Prelude.NFData,
      Text -> Either String Format
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String Format
$cfromText :: Text -> Either String Format
Data.FromText,
      Format -> Text
forall a. (a -> Text) -> ToText a
toText :: Format -> Text
$ctoText :: Format -> Text
Data.ToText,
      Format -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: Format -> ByteString
$ctoBS :: Format -> ByteString
Data.ToByteString,
      Format -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: Format -> ByteStringBuilder
$cbuild :: Format -> ByteStringBuilder
Data.ToLog,
      HeaderName -> Format -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> Format -> [Header]
$ctoHeader :: HeaderName -> Format -> [Header]
Data.ToHeader,
      Format -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: Format -> QueryString
$ctoQuery :: Format -> QueryString
Data.ToQuery,
      Value -> Parser [Format]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [Format]
FromJSONKeyFunction Format
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [Format]
$cfromJSONKeyList :: FromJSONKeyFunction [Format]
fromJSONKey :: FromJSONKeyFunction Format
$cfromJSONKey :: FromJSONKeyFunction Format
Data.FromJSONKey,
      [Format] -> Encoding
[Format] -> Value
Format -> Encoding
Format -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [Format]
ToJSONKeyFunction Format
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [Format]
$ctoJSONKeyList :: ToJSONKeyFunction [Format]
toJSONKey :: ToJSONKeyFunction Format
$ctoJSONKey :: ToJSONKeyFunction Format
Data.ToJSONKey,
      [Node] -> Either String Format
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String Format
$cparseXML :: [Node] -> Either String Format
Data.FromXML,
      Format -> XML
forall a. (a -> XML) -> ToXML a
toXML :: Format -> XML
$ctoXML :: Format -> XML
Data.ToXML
    )

pattern Format_CSV :: Format
pattern $bFormat_CSV :: Format
$mFormat_CSV :: forall {r}. Format -> ((# #) -> r) -> ((# #) -> r) -> r
Format_CSV = Format' "CSV"

pattern Format_PARQUET :: Format
pattern $bFormat_PARQUET :: Format
$mFormat_PARQUET :: forall {r}. Format -> ((# #) -> r) -> ((# #) -> r) -> r
Format_PARQUET = Format' "PARQUET"

{-# COMPLETE
  Format_CSV,
  Format_PARQUET,
  Format'
  #-}