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

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

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

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

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

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