{-# 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.Inspector.Types.ReportFileFormat
-- 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.Inspector.Types.ReportFileFormat
  ( ReportFileFormat
      ( ..,
        ReportFileFormat_HTML,
        ReportFileFormat_PDF
      ),
  )
where

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

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

pattern ReportFileFormat_HTML :: ReportFileFormat
pattern $bReportFileFormat_HTML :: ReportFileFormat
$mReportFileFormat_HTML :: forall {r}. ReportFileFormat -> ((# #) -> r) -> ((# #) -> r) -> r
ReportFileFormat_HTML = ReportFileFormat' "HTML"

pattern ReportFileFormat_PDF :: ReportFileFormat
pattern $bReportFileFormat_PDF :: ReportFileFormat
$mReportFileFormat_PDF :: forall {r}. ReportFileFormat -> ((# #) -> r) -> ((# #) -> r) -> r
ReportFileFormat_PDF = ReportFileFormat' "PDF"

{-# COMPLETE
  ReportFileFormat_HTML,
  ReportFileFormat_PDF,
  ReportFileFormat'
  #-}