{-# 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.DynamoDB.Types.InputCompressionType
-- 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.DynamoDB.Types.InputCompressionType
  ( InputCompressionType
      ( ..,
        InputCompressionType_GZIP,
        InputCompressionType_NONE,
        InputCompressionType_ZSTD
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import Amazonka.DynamoDB.Types.AttributeValue
import Amazonka.DynamoDB.Types.WriteRequest
import qualified Amazonka.Prelude as Prelude

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

pattern InputCompressionType_GZIP :: InputCompressionType
pattern $bInputCompressionType_GZIP :: InputCompressionType
$mInputCompressionType_GZIP :: forall {r}.
InputCompressionType -> ((# #) -> r) -> ((# #) -> r) -> r
InputCompressionType_GZIP = InputCompressionType' "GZIP"

pattern InputCompressionType_NONE :: InputCompressionType
pattern $bInputCompressionType_NONE :: InputCompressionType
$mInputCompressionType_NONE :: forall {r}.
InputCompressionType -> ((# #) -> r) -> ((# #) -> r) -> r
InputCompressionType_NONE = InputCompressionType' "NONE"

pattern InputCompressionType_ZSTD :: InputCompressionType
pattern $bInputCompressionType_ZSTD :: InputCompressionType
$mInputCompressionType_ZSTD :: forall {r}.
InputCompressionType -> ((# #) -> r) -> ((# #) -> r) -> r
InputCompressionType_ZSTD = InputCompressionType' "ZSTD"

{-# COMPLETE
  InputCompressionType_GZIP,
  InputCompressionType_NONE,
  InputCompressionType_ZSTD,
  InputCompressionType'
  #-}