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

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

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

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

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

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