{-# 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.EncodingTypeValue
-- 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.EncodingTypeValue
  ( EncodingTypeValue
      ( ..,
        EncodingTypeValue_Plain,
        EncodingTypeValue_Plain_dictionary,
        EncodingTypeValue_Rle_dictionary
      ),
  )
where

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

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

pattern EncodingTypeValue_Plain :: EncodingTypeValue
pattern $bEncodingTypeValue_Plain :: EncodingTypeValue
$mEncodingTypeValue_Plain :: forall {r}. EncodingTypeValue -> ((# #) -> r) -> ((# #) -> r) -> r
EncodingTypeValue_Plain = EncodingTypeValue' "plain"

pattern EncodingTypeValue_Plain_dictionary :: EncodingTypeValue
pattern $bEncodingTypeValue_Plain_dictionary :: EncodingTypeValue
$mEncodingTypeValue_Plain_dictionary :: forall {r}. EncodingTypeValue -> ((# #) -> r) -> ((# #) -> r) -> r
EncodingTypeValue_Plain_dictionary = EncodingTypeValue' "plain-dictionary"

pattern EncodingTypeValue_Rle_dictionary :: EncodingTypeValue
pattern $bEncodingTypeValue_Rle_dictionary :: EncodingTypeValue
$mEncodingTypeValue_Rle_dictionary :: forall {r}. EncodingTypeValue -> ((# #) -> r) -> ((# #) -> r) -> r
EncodingTypeValue_Rle_dictionary = EncodingTypeValue' "rle-dictionary"

{-# COMPLETE
  EncodingTypeValue_Plain,
  EncodingTypeValue_Plain_dictionary,
  EncodingTypeValue_Rle_dictionary,
  EncodingTypeValue'
  #-}