{-# 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.AlexaBusiness.Types.BusinessReportFormat
-- 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.AlexaBusiness.Types.BusinessReportFormat
  ( BusinessReportFormat
      ( ..,
        BusinessReportFormat_CSV,
        BusinessReportFormat_CSV_ZIP
      ),
  )
where

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

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

pattern BusinessReportFormat_CSV :: BusinessReportFormat
pattern $bBusinessReportFormat_CSV :: BusinessReportFormat
$mBusinessReportFormat_CSV :: forall {r}.
BusinessReportFormat -> ((# #) -> r) -> ((# #) -> r) -> r
BusinessReportFormat_CSV = BusinessReportFormat' "CSV"

pattern BusinessReportFormat_CSV_ZIP :: BusinessReportFormat
pattern $bBusinessReportFormat_CSV_ZIP :: BusinessReportFormat
$mBusinessReportFormat_CSV_ZIP :: forall {r}.
BusinessReportFormat -> ((# #) -> r) -> ((# #) -> r) -> r
BusinessReportFormat_CSV_ZIP = BusinessReportFormat' "CSV_ZIP"

{-# COMPLETE
  BusinessReportFormat_CSV,
  BusinessReportFormat_CSV_ZIP,
  BusinessReportFormat'
  #-}