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