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