{-# 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.IoTAnalytics.Types.FileFormatType
-- 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.IoTAnalytics.Types.FileFormatType
  ( FileFormatType
      ( ..,
        FileFormatType_JSON,
        FileFormatType_PARQUET
      ),
  )
where

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

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

pattern FileFormatType_JSON :: FileFormatType
pattern $bFileFormatType_JSON :: FileFormatType
$mFileFormatType_JSON :: forall r. FileFormatType -> (Void# -> r) -> (Void# -> r) -> r
FileFormatType_JSON = FileFormatType' "JSON"

pattern FileFormatType_PARQUET :: FileFormatType
pattern $bFileFormatType_PARQUET :: FileFormatType
$mFileFormatType_PARQUET :: forall r. FileFormatType -> (Void# -> r) -> (Void# -> r) -> r
FileFormatType_PARQUET = FileFormatType' "PARQUET"

{-# COMPLETE
  FileFormatType_JSON,
  FileFormatType_PARQUET,
  FileFormatType'
  #-}