{-# 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.HoneyCode.Types.Format
-- 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.HoneyCode.Types.Format
  ( Format
      ( ..,
        Format_ACCOUNTING,
        Format_AUTO,
        Format_CONTACT,
        Format_CURRENCY,
        Format_DATE,
        Format_DATE_TIME,
        Format_NUMBER,
        Format_PERCENTAGE,
        Format_ROWLINK,
        Format_ROWSET,
        Format_TEXT,
        Format_TIME
      ),
  )
where

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

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

pattern Format_ACCOUNTING :: Format
pattern $bFormat_ACCOUNTING :: Format
$mFormat_ACCOUNTING :: forall {r}. Format -> ((# #) -> r) -> ((# #) -> r) -> r
Format_ACCOUNTING = Format' "ACCOUNTING"

pattern Format_AUTO :: Format
pattern $bFormat_AUTO :: Format
$mFormat_AUTO :: forall {r}. Format -> ((# #) -> r) -> ((# #) -> r) -> r
Format_AUTO = Format' "AUTO"

pattern Format_CONTACT :: Format
pattern $bFormat_CONTACT :: Format
$mFormat_CONTACT :: forall {r}. Format -> ((# #) -> r) -> ((# #) -> r) -> r
Format_CONTACT = Format' "CONTACT"

pattern Format_CURRENCY :: Format
pattern $bFormat_CURRENCY :: Format
$mFormat_CURRENCY :: forall {r}. Format -> ((# #) -> r) -> ((# #) -> r) -> r
Format_CURRENCY = Format' "CURRENCY"

pattern Format_DATE :: Format
pattern $bFormat_DATE :: Format
$mFormat_DATE :: forall {r}. Format -> ((# #) -> r) -> ((# #) -> r) -> r
Format_DATE = Format' "DATE"

pattern Format_DATE_TIME :: Format
pattern $bFormat_DATE_TIME :: Format
$mFormat_DATE_TIME :: forall {r}. Format -> ((# #) -> r) -> ((# #) -> r) -> r
Format_DATE_TIME = Format' "DATE_TIME"

pattern Format_NUMBER :: Format
pattern $bFormat_NUMBER :: Format
$mFormat_NUMBER :: forall {r}. Format -> ((# #) -> r) -> ((# #) -> r) -> r
Format_NUMBER = Format' "NUMBER"

pattern Format_PERCENTAGE :: Format
pattern $bFormat_PERCENTAGE :: Format
$mFormat_PERCENTAGE :: forall {r}. Format -> ((# #) -> r) -> ((# #) -> r) -> r
Format_PERCENTAGE = Format' "PERCENTAGE"

pattern Format_ROWLINK :: Format
pattern $bFormat_ROWLINK :: Format
$mFormat_ROWLINK :: forall {r}. Format -> ((# #) -> r) -> ((# #) -> r) -> r
Format_ROWLINK = Format' "ROWLINK"

pattern Format_ROWSET :: Format
pattern $bFormat_ROWSET :: Format
$mFormat_ROWSET :: forall {r}. Format -> ((# #) -> r) -> ((# #) -> r) -> r
Format_ROWSET = Format' "ROWSET"

pattern Format_TEXT :: Format
pattern $bFormat_TEXT :: Format
$mFormat_TEXT :: forall {r}. Format -> ((# #) -> r) -> ((# #) -> r) -> r
Format_TEXT = Format' "TEXT"

pattern Format_TIME :: Format
pattern $bFormat_TIME :: Format
$mFormat_TIME :: forall {r}. Format -> ((# #) -> r) -> ((# #) -> r) -> r
Format_TIME = Format' "TIME"

{-# COMPLETE
  Format_ACCOUNTING,
  Format_AUTO,
  Format_CONTACT,
  Format_CURRENCY,
  Format_DATE,
  Format_DATE_TIME,
  Format_NUMBER,
  Format_PERCENTAGE,
  Format_ROWLINK,
  Format_ROWSET,
  Format_TEXT,
  Format_TIME,
  Format'
  #-}