{-# 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.LookoutMetrics.Types.CSVFileCompression
-- 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.LookoutMetrics.Types.CSVFileCompression
  ( CSVFileCompression
      ( ..,
        CSVFileCompression_GZIP,
        CSVFileCompression_NONE
      ),
  )
where

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

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

pattern CSVFileCompression_GZIP :: CSVFileCompression
pattern $bCSVFileCompression_GZIP :: CSVFileCompression
$mCSVFileCompression_GZIP :: forall r. CSVFileCompression -> (Void# -> r) -> (Void# -> r) -> r
CSVFileCompression_GZIP = CSVFileCompression' "GZIP"

pattern CSVFileCompression_NONE :: CSVFileCompression
pattern $bCSVFileCompression_NONE :: CSVFileCompression
$mCSVFileCompression_NONE :: forall r. CSVFileCompression -> (Void# -> r) -> (Void# -> r) -> r
CSVFileCompression_NONE = CSVFileCompression' "NONE"

{-# COMPLETE
  CSVFileCompression_GZIP,
  CSVFileCompression_NONE,
  CSVFileCompression'
  #-}