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

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

newtype CompressionTypeValue = CompressionTypeValue'
  { CompressionTypeValue -> Text
fromCompressionTypeValue ::
      Core.Text
  }
  deriving stock
    ( Int -> CompressionTypeValue -> ShowS
[CompressionTypeValue] -> ShowS
CompressionTypeValue -> String
(Int -> CompressionTypeValue -> ShowS)
-> (CompressionTypeValue -> String)
-> ([CompressionTypeValue] -> ShowS)
-> Show CompressionTypeValue
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]
(Int -> ReadS CompressionTypeValue)
-> ReadS [CompressionTypeValue]
-> ReadPrec CompressionTypeValue
-> ReadPrec [CompressionTypeValue]
-> Read 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
(CompressionTypeValue -> CompressionTypeValue -> Bool)
-> (CompressionTypeValue -> CompressionTypeValue -> Bool)
-> Eq CompressionTypeValue
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
Eq CompressionTypeValue
-> (CompressionTypeValue -> CompressionTypeValue -> Ordering)
-> (CompressionTypeValue -> CompressionTypeValue -> Bool)
-> (CompressionTypeValue -> CompressionTypeValue -> Bool)
-> (CompressionTypeValue -> CompressionTypeValue -> Bool)
-> (CompressionTypeValue -> CompressionTypeValue -> Bool)
-> (CompressionTypeValue
    -> CompressionTypeValue -> CompressionTypeValue)
-> (CompressionTypeValue
    -> CompressionTypeValue -> CompressionTypeValue)
-> Ord 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
$cp1Ord :: Eq CompressionTypeValue
Prelude.Ord,
      (forall x. CompressionTypeValue -> Rep CompressionTypeValue x)
-> (forall x. Rep CompressionTypeValue x -> CompressionTypeValue)
-> Generic CompressionTypeValue
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
    ( Int -> CompressionTypeValue -> Int
CompressionTypeValue -> Int
(Int -> CompressionTypeValue -> Int)
-> (CompressionTypeValue -> Int) -> Hashable CompressionTypeValue
forall 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 -> ()
(CompressionTypeValue -> ()) -> NFData CompressionTypeValue
forall a. (a -> ()) -> NFData a
rnf :: CompressionTypeValue -> ()
$crnf :: CompressionTypeValue -> ()
Prelude.NFData,
      Text -> Either String CompressionTypeValue
(Text -> Either String CompressionTypeValue)
-> FromText CompressionTypeValue
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String CompressionTypeValue
$cfromText :: Text -> Either String CompressionTypeValue
Core.FromText,
      CompressionTypeValue -> Text
(CompressionTypeValue -> Text) -> ToText CompressionTypeValue
forall a. (a -> Text) -> ToText a
toText :: CompressionTypeValue -> Text
$ctoText :: CompressionTypeValue -> Text
Core.ToText,
      CompressionTypeValue -> ByteString
(CompressionTypeValue -> ByteString)
-> ToByteString CompressionTypeValue
forall a. (a -> ByteString) -> ToByteString a
toBS :: CompressionTypeValue -> ByteString
$ctoBS :: CompressionTypeValue -> ByteString
Core.ToByteString,
      CompressionTypeValue -> ByteStringBuilder
(CompressionTypeValue -> ByteStringBuilder)
-> ToLog CompressionTypeValue
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: CompressionTypeValue -> ByteStringBuilder
$cbuild :: CompressionTypeValue -> ByteStringBuilder
Core.ToLog,
      HeaderName -> CompressionTypeValue -> [Header]
(HeaderName -> CompressionTypeValue -> [Header])
-> ToHeader CompressionTypeValue
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> CompressionTypeValue -> [Header]
$ctoHeader :: HeaderName -> CompressionTypeValue -> [Header]
Core.ToHeader,
      CompressionTypeValue -> QueryString
(CompressionTypeValue -> QueryString)
-> ToQuery CompressionTypeValue
forall a. (a -> QueryString) -> ToQuery a
toQuery :: CompressionTypeValue -> QueryString
$ctoQuery :: CompressionTypeValue -> QueryString
Core.ToQuery,
      Value -> Parser [CompressionTypeValue]
Value -> Parser CompressionTypeValue
(Value -> Parser CompressionTypeValue)
-> (Value -> Parser [CompressionTypeValue])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [CompressionTypeValue]
FromJSONKeyFunction CompressionTypeValue
FromJSONKeyFunction CompressionTypeValue
-> FromJSONKeyFunction [CompressionTypeValue]
-> FromJSONKey CompressionTypeValue
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [CompressionTypeValue]
$cfromJSONKeyList :: FromJSONKeyFunction [CompressionTypeValue]
fromJSONKey :: FromJSONKeyFunction CompressionTypeValue
$cfromJSONKey :: FromJSONKeyFunction CompressionTypeValue
Core.FromJSONKey,
      [CompressionTypeValue] -> Encoding
[CompressionTypeValue] -> Value
CompressionTypeValue -> Encoding
CompressionTypeValue -> Value
(CompressionTypeValue -> Value)
-> (CompressionTypeValue -> Encoding)
-> ([CompressionTypeValue] -> Value)
-> ([CompressionTypeValue] -> Encoding)
-> ToJSON CompressionTypeValue
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
Core.ToJSON,
      ToJSONKeyFunction [CompressionTypeValue]
ToJSONKeyFunction CompressionTypeValue
ToJSONKeyFunction CompressionTypeValue
-> ToJSONKeyFunction [CompressionTypeValue]
-> ToJSONKey CompressionTypeValue
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [CompressionTypeValue]
$ctoJSONKeyList :: ToJSONKeyFunction [CompressionTypeValue]
toJSONKey :: ToJSONKeyFunction CompressionTypeValue
$ctoJSONKey :: ToJSONKeyFunction CompressionTypeValue
Core.ToJSONKey,
      [Node] -> Either String CompressionTypeValue
([Node] -> Either String CompressionTypeValue)
-> FromXML CompressionTypeValue
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String CompressionTypeValue
$cparseXML :: [Node] -> Either String CompressionTypeValue
Core.FromXML,
      CompressionTypeValue -> XML
(CompressionTypeValue -> XML) -> ToXML CompressionTypeValue
forall a. (a -> XML) -> ToXML a
toXML :: CompressionTypeValue -> XML
$ctoXML :: CompressionTypeValue -> XML
Core.ToXML
    )

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

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

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