{-# 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.DataFormatValue
-- 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.DataFormatValue
  ( DataFormatValue
      ( ..,
        DataFormatValue_Csv,
        DataFormatValue_Parquet
      ),
  )
where

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

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

pattern DataFormatValue_Csv :: DataFormatValue
pattern $bDataFormatValue_Csv :: DataFormatValue
$mDataFormatValue_Csv :: forall r. DataFormatValue -> (Void# -> r) -> (Void# -> r) -> r
DataFormatValue_Csv = DataFormatValue' "csv"

pattern DataFormatValue_Parquet :: DataFormatValue
pattern $bDataFormatValue_Parquet :: DataFormatValue
$mDataFormatValue_Parquet :: forall r. DataFormatValue -> (Void# -> r) -> (Void# -> r) -> r
DataFormatValue_Parquet = DataFormatValue' "parquet"

{-# COMPLETE
  DataFormatValue_Csv,
  DataFormatValue_Parquet,
  DataFormatValue'
  #-}