{-# 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.DMS.Types.CompressionTypeValue
-- 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.DMS.Types.CompressionTypeValue
  ( CompressionTypeValue
      ( ..,
        CompressionTypeValue_Gzip,
        CompressionTypeValue_None
      ),
  )
where

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

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

pattern CompressionTypeValue_Gzip :: CompressionTypeValue
pattern $bCompressionTypeValue_Gzip :: CompressionTypeValue
$mCompressionTypeValue_Gzip :: forall {r}.
CompressionTypeValue -> ((# #) -> r) -> ((# #) -> r) -> r
CompressionTypeValue_Gzip = CompressionTypeValue' "gzip"

pattern CompressionTypeValue_None :: CompressionTypeValue
pattern $bCompressionTypeValue_None :: CompressionTypeValue
$mCompressionTypeValue_None :: forall {r}.
CompressionTypeValue -> ((# #) -> r) -> ((# #) -> r) -> r
CompressionTypeValue_None = CompressionTypeValue' "none"

{-# COMPLETE
  CompressionTypeValue_Gzip,
  CompressionTypeValue_None,
  CompressionTypeValue'
  #-}