{-# 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.SageMaker.Types.RedshiftResultCompressionType
-- 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.SageMaker.Types.RedshiftResultCompressionType
  ( RedshiftResultCompressionType
      ( ..,
        RedshiftResultCompressionType_BZIP2,
        RedshiftResultCompressionType_GZIP,
        RedshiftResultCompressionType_None,
        RedshiftResultCompressionType_SNAPPY,
        RedshiftResultCompressionType_ZSTD
      ),
  )
where

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

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

pattern RedshiftResultCompressionType_BZIP2 :: RedshiftResultCompressionType
pattern $bRedshiftResultCompressionType_BZIP2 :: RedshiftResultCompressionType
$mRedshiftResultCompressionType_BZIP2 :: forall r.
RedshiftResultCompressionType -> (Void# -> r) -> (Void# -> r) -> r
RedshiftResultCompressionType_BZIP2 = RedshiftResultCompressionType' "BZIP2"

pattern RedshiftResultCompressionType_GZIP :: RedshiftResultCompressionType
pattern $bRedshiftResultCompressionType_GZIP :: RedshiftResultCompressionType
$mRedshiftResultCompressionType_GZIP :: forall r.
RedshiftResultCompressionType -> (Void# -> r) -> (Void# -> r) -> r
RedshiftResultCompressionType_GZIP = RedshiftResultCompressionType' "GZIP"

pattern RedshiftResultCompressionType_None :: RedshiftResultCompressionType
pattern $bRedshiftResultCompressionType_None :: RedshiftResultCompressionType
$mRedshiftResultCompressionType_None :: forall r.
RedshiftResultCompressionType -> (Void# -> r) -> (Void# -> r) -> r
RedshiftResultCompressionType_None = RedshiftResultCompressionType' "None"

pattern RedshiftResultCompressionType_SNAPPY :: RedshiftResultCompressionType
pattern $bRedshiftResultCompressionType_SNAPPY :: RedshiftResultCompressionType
$mRedshiftResultCompressionType_SNAPPY :: forall r.
RedshiftResultCompressionType -> (Void# -> r) -> (Void# -> r) -> r
RedshiftResultCompressionType_SNAPPY = RedshiftResultCompressionType' "SNAPPY"

pattern RedshiftResultCompressionType_ZSTD :: RedshiftResultCompressionType
pattern $bRedshiftResultCompressionType_ZSTD :: RedshiftResultCompressionType
$mRedshiftResultCompressionType_ZSTD :: forall r.
RedshiftResultCompressionType -> (Void# -> r) -> (Void# -> r) -> r
RedshiftResultCompressionType_ZSTD = RedshiftResultCompressionType' "ZSTD"

{-# COMPLETE
  RedshiftResultCompressionType_BZIP2,
  RedshiftResultCompressionType_GZIP,
  RedshiftResultCompressionType_None,
  RedshiftResultCompressionType_SNAPPY,
  RedshiftResultCompressionType_ZSTD,
  RedshiftResultCompressionType'
  #-}