{-# 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.S3.Types.AnalyticsS3ExportFileFormat
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.S3.Types.AnalyticsS3ExportFileFormat
  ( AnalyticsS3ExportFileFormat
      ( ..,
        AnalyticsS3ExportFileFormat_CSV
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
import Amazonka.S3.Internal

newtype AnalyticsS3ExportFileFormat = AnalyticsS3ExportFileFormat'
  { AnalyticsS3ExportFileFormat -> Text
fromAnalyticsS3ExportFileFormat ::
      Core.Text
  }
  deriving stock
    ( Int -> AnalyticsS3ExportFileFormat -> ShowS
[AnalyticsS3ExportFileFormat] -> ShowS
AnalyticsS3ExportFileFormat -> String
(Int -> AnalyticsS3ExportFileFormat -> ShowS)
-> (AnalyticsS3ExportFileFormat -> String)
-> ([AnalyticsS3ExportFileFormat] -> ShowS)
-> Show AnalyticsS3ExportFileFormat
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AnalyticsS3ExportFileFormat] -> ShowS
$cshowList :: [AnalyticsS3ExportFileFormat] -> ShowS
show :: AnalyticsS3ExportFileFormat -> String
$cshow :: AnalyticsS3ExportFileFormat -> String
showsPrec :: Int -> AnalyticsS3ExportFileFormat -> ShowS
$cshowsPrec :: Int -> AnalyticsS3ExportFileFormat -> ShowS
Prelude.Show,
      ReadPrec [AnalyticsS3ExportFileFormat]
ReadPrec AnalyticsS3ExportFileFormat
Int -> ReadS AnalyticsS3ExportFileFormat
ReadS [AnalyticsS3ExportFileFormat]
(Int -> ReadS AnalyticsS3ExportFileFormat)
-> ReadS [AnalyticsS3ExportFileFormat]
-> ReadPrec AnalyticsS3ExportFileFormat
-> ReadPrec [AnalyticsS3ExportFileFormat]
-> Read AnalyticsS3ExportFileFormat
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AnalyticsS3ExportFileFormat]
$creadListPrec :: ReadPrec [AnalyticsS3ExportFileFormat]
readPrec :: ReadPrec AnalyticsS3ExportFileFormat
$creadPrec :: ReadPrec AnalyticsS3ExportFileFormat
readList :: ReadS [AnalyticsS3ExportFileFormat]
$creadList :: ReadS [AnalyticsS3ExportFileFormat]
readsPrec :: Int -> ReadS AnalyticsS3ExportFileFormat
$creadsPrec :: Int -> ReadS AnalyticsS3ExportFileFormat
Prelude.Read,
      AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat -> Bool
(AnalyticsS3ExportFileFormat
 -> AnalyticsS3ExportFileFormat -> Bool)
-> (AnalyticsS3ExportFileFormat
    -> AnalyticsS3ExportFileFormat -> Bool)
-> Eq AnalyticsS3ExportFileFormat
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat -> Bool
$c/= :: AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat -> Bool
== :: AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat -> Bool
$c== :: AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat -> Bool
Prelude.Eq,
      Eq AnalyticsS3ExportFileFormat
Eq AnalyticsS3ExportFileFormat
-> (AnalyticsS3ExportFileFormat
    -> AnalyticsS3ExportFileFormat -> Ordering)
-> (AnalyticsS3ExportFileFormat
    -> AnalyticsS3ExportFileFormat -> Bool)
-> (AnalyticsS3ExportFileFormat
    -> AnalyticsS3ExportFileFormat -> Bool)
-> (AnalyticsS3ExportFileFormat
    -> AnalyticsS3ExportFileFormat -> Bool)
-> (AnalyticsS3ExportFileFormat
    -> AnalyticsS3ExportFileFormat -> Bool)
-> (AnalyticsS3ExportFileFormat
    -> AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat)
-> (AnalyticsS3ExportFileFormat
    -> AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat)
-> Ord AnalyticsS3ExportFileFormat
AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat -> Bool
AnalyticsS3ExportFileFormat
-> AnalyticsS3ExportFileFormat -> Ordering
AnalyticsS3ExportFileFormat
-> AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat
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 :: AnalyticsS3ExportFileFormat
-> AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat
$cmin :: AnalyticsS3ExportFileFormat
-> AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat
max :: AnalyticsS3ExportFileFormat
-> AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat
$cmax :: AnalyticsS3ExportFileFormat
-> AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat
>= :: AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat -> Bool
$c>= :: AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat -> Bool
> :: AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat -> Bool
$c> :: AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat -> Bool
<= :: AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat -> Bool
$c<= :: AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat -> Bool
< :: AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat -> Bool
$c< :: AnalyticsS3ExportFileFormat -> AnalyticsS3ExportFileFormat -> Bool
compare :: AnalyticsS3ExportFileFormat
-> AnalyticsS3ExportFileFormat -> Ordering
$ccompare :: AnalyticsS3ExportFileFormat
-> AnalyticsS3ExportFileFormat -> Ordering
$cp1Ord :: Eq AnalyticsS3ExportFileFormat
Prelude.Ord,
      (forall x.
 AnalyticsS3ExportFileFormat -> Rep AnalyticsS3ExportFileFormat x)
-> (forall x.
    Rep AnalyticsS3ExportFileFormat x -> AnalyticsS3ExportFileFormat)
-> Generic AnalyticsS3ExportFileFormat
forall x.
Rep AnalyticsS3ExportFileFormat x -> AnalyticsS3ExportFileFormat
forall x.
AnalyticsS3ExportFileFormat -> Rep AnalyticsS3ExportFileFormat x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AnalyticsS3ExportFileFormat x -> AnalyticsS3ExportFileFormat
$cfrom :: forall x.
AnalyticsS3ExportFileFormat -> Rep AnalyticsS3ExportFileFormat x
Prelude.Generic
    )
  deriving newtype
    ( Int -> AnalyticsS3ExportFileFormat -> Int
AnalyticsS3ExportFileFormat -> Int
(Int -> AnalyticsS3ExportFileFormat -> Int)
-> (AnalyticsS3ExportFileFormat -> Int)
-> Hashable AnalyticsS3ExportFileFormat
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: AnalyticsS3ExportFileFormat -> Int
$chash :: AnalyticsS3ExportFileFormat -> Int
hashWithSalt :: Int -> AnalyticsS3ExportFileFormat -> Int
$chashWithSalt :: Int -> AnalyticsS3ExportFileFormat -> Int
Prelude.Hashable,
      AnalyticsS3ExportFileFormat -> ()
(AnalyticsS3ExportFileFormat -> ())
-> NFData AnalyticsS3ExportFileFormat
forall a. (a -> ()) -> NFData a
rnf :: AnalyticsS3ExportFileFormat -> ()
$crnf :: AnalyticsS3ExportFileFormat -> ()
Prelude.NFData,
      Text -> Either String AnalyticsS3ExportFileFormat
(Text -> Either String AnalyticsS3ExportFileFormat)
-> FromText AnalyticsS3ExportFileFormat
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String AnalyticsS3ExportFileFormat
$cfromText :: Text -> Either String AnalyticsS3ExportFileFormat
Core.FromText,
      AnalyticsS3ExportFileFormat -> Text
(AnalyticsS3ExportFileFormat -> Text)
-> ToText AnalyticsS3ExportFileFormat
forall a. (a -> Text) -> ToText a
toText :: AnalyticsS3ExportFileFormat -> Text
$ctoText :: AnalyticsS3ExportFileFormat -> Text
Core.ToText,
      AnalyticsS3ExportFileFormat -> ByteString
(AnalyticsS3ExportFileFormat -> ByteString)
-> ToByteString AnalyticsS3ExportFileFormat
forall a. (a -> ByteString) -> ToByteString a
toBS :: AnalyticsS3ExportFileFormat -> ByteString
$ctoBS :: AnalyticsS3ExportFileFormat -> ByteString
Core.ToByteString,
      AnalyticsS3ExportFileFormat -> ByteStringBuilder
(AnalyticsS3ExportFileFormat -> ByteStringBuilder)
-> ToLog AnalyticsS3ExportFileFormat
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: AnalyticsS3ExportFileFormat -> ByteStringBuilder
$cbuild :: AnalyticsS3ExportFileFormat -> ByteStringBuilder
Core.ToLog,
      HeaderName -> AnalyticsS3ExportFileFormat -> [Header]
(HeaderName -> AnalyticsS3ExportFileFormat -> [Header])
-> ToHeader AnalyticsS3ExportFileFormat
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> AnalyticsS3ExportFileFormat -> [Header]
$ctoHeader :: HeaderName -> AnalyticsS3ExportFileFormat -> [Header]
Core.ToHeader,
      AnalyticsS3ExportFileFormat -> QueryString
(AnalyticsS3ExportFileFormat -> QueryString)
-> ToQuery AnalyticsS3ExportFileFormat
forall a. (a -> QueryString) -> ToQuery a
toQuery :: AnalyticsS3ExportFileFormat -> QueryString
$ctoQuery :: AnalyticsS3ExportFileFormat -> QueryString
Core.ToQuery,
      Value -> Parser [AnalyticsS3ExportFileFormat]
Value -> Parser AnalyticsS3ExportFileFormat
(Value -> Parser AnalyticsS3ExportFileFormat)
-> (Value -> Parser [AnalyticsS3ExportFileFormat])
-> FromJSON AnalyticsS3ExportFileFormat
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [AnalyticsS3ExportFileFormat]
$cparseJSONList :: Value -> Parser [AnalyticsS3ExportFileFormat]
parseJSON :: Value -> Parser AnalyticsS3ExportFileFormat
$cparseJSON :: Value -> Parser AnalyticsS3ExportFileFormat
Core.FromJSON,
      FromJSONKeyFunction [AnalyticsS3ExportFileFormat]
FromJSONKeyFunction AnalyticsS3ExportFileFormat
FromJSONKeyFunction AnalyticsS3ExportFileFormat
-> FromJSONKeyFunction [AnalyticsS3ExportFileFormat]
-> FromJSONKey AnalyticsS3ExportFileFormat
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [AnalyticsS3ExportFileFormat]
$cfromJSONKeyList :: FromJSONKeyFunction [AnalyticsS3ExportFileFormat]
fromJSONKey :: FromJSONKeyFunction AnalyticsS3ExportFileFormat
$cfromJSONKey :: FromJSONKeyFunction AnalyticsS3ExportFileFormat
Core.FromJSONKey,
      [AnalyticsS3ExportFileFormat] -> Encoding
[AnalyticsS3ExportFileFormat] -> Value
AnalyticsS3ExportFileFormat -> Encoding
AnalyticsS3ExportFileFormat -> Value
(AnalyticsS3ExportFileFormat -> Value)
-> (AnalyticsS3ExportFileFormat -> Encoding)
-> ([AnalyticsS3ExportFileFormat] -> Value)
-> ([AnalyticsS3ExportFileFormat] -> Encoding)
-> ToJSON AnalyticsS3ExportFileFormat
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [AnalyticsS3ExportFileFormat] -> Encoding
$ctoEncodingList :: [AnalyticsS3ExportFileFormat] -> Encoding
toJSONList :: [AnalyticsS3ExportFileFormat] -> Value
$ctoJSONList :: [AnalyticsS3ExportFileFormat] -> Value
toEncoding :: AnalyticsS3ExportFileFormat -> Encoding
$ctoEncoding :: AnalyticsS3ExportFileFormat -> Encoding
toJSON :: AnalyticsS3ExportFileFormat -> Value
$ctoJSON :: AnalyticsS3ExportFileFormat -> Value
Core.ToJSON,
      ToJSONKeyFunction [AnalyticsS3ExportFileFormat]
ToJSONKeyFunction AnalyticsS3ExportFileFormat
ToJSONKeyFunction AnalyticsS3ExportFileFormat
-> ToJSONKeyFunction [AnalyticsS3ExportFileFormat]
-> ToJSONKey AnalyticsS3ExportFileFormat
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [AnalyticsS3ExportFileFormat]
$ctoJSONKeyList :: ToJSONKeyFunction [AnalyticsS3ExportFileFormat]
toJSONKey :: ToJSONKeyFunction AnalyticsS3ExportFileFormat
$ctoJSONKey :: ToJSONKeyFunction AnalyticsS3ExportFileFormat
Core.ToJSONKey,
      [Node] -> Either String AnalyticsS3ExportFileFormat
([Node] -> Either String AnalyticsS3ExportFileFormat)
-> FromXML AnalyticsS3ExportFileFormat
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String AnalyticsS3ExportFileFormat
$cparseXML :: [Node] -> Either String AnalyticsS3ExportFileFormat
Core.FromXML,
      AnalyticsS3ExportFileFormat -> XML
(AnalyticsS3ExportFileFormat -> XML)
-> ToXML AnalyticsS3ExportFileFormat
forall a. (a -> XML) -> ToXML a
toXML :: AnalyticsS3ExportFileFormat -> XML
$ctoXML :: AnalyticsS3ExportFileFormat -> XML
Core.ToXML
    )

pattern AnalyticsS3ExportFileFormat_CSV :: AnalyticsS3ExportFileFormat
pattern $bAnalyticsS3ExportFileFormat_CSV :: AnalyticsS3ExportFileFormat
$mAnalyticsS3ExportFileFormat_CSV :: forall r.
AnalyticsS3ExportFileFormat -> (Void# -> r) -> (Void# -> r) -> r
AnalyticsS3ExportFileFormat_CSV = AnalyticsS3ExportFileFormat' "CSV"

{-# COMPLETE
  AnalyticsS3ExportFileFormat_CSV,
  AnalyticsS3ExportFileFormat'
  #-}