{-# 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.AppFlow.Types.AggregationType
-- 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.AppFlow.Types.AggregationType
  ( AggregationType
      ( ..,
        AggregationType_None,
        AggregationType_SingleFile
      ),
  )
where

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

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

pattern AggregationType_None :: AggregationType
pattern $bAggregationType_None :: AggregationType
$mAggregationType_None :: forall {r}. AggregationType -> ((# #) -> r) -> ((# #) -> r) -> r
AggregationType_None = AggregationType' "None"

pattern AggregationType_SingleFile :: AggregationType
pattern $bAggregationType_SingleFile :: AggregationType
$mAggregationType_SingleFile :: forall {r}. AggregationType -> ((# #) -> r) -> ((# #) -> r) -> r
AggregationType_SingleFile = AggregationType' "SingleFile"

{-# COMPLETE
  AggregationType_None,
  AggregationType_SingleFile,
  AggregationType'
  #-}