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

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

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

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

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

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