{-# 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.AuditManager.Types.AssessmentReportDestinationType
-- 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.AuditManager.Types.AssessmentReportDestinationType
  ( AssessmentReportDestinationType
      ( ..,
        AssessmentReportDestinationType_S3
      ),
  )
where

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

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

pattern AssessmentReportDestinationType_S3 :: AssessmentReportDestinationType
pattern $bAssessmentReportDestinationType_S3 :: AssessmentReportDestinationType
$mAssessmentReportDestinationType_S3 :: forall r.
AssessmentReportDestinationType
-> (Void# -> r) -> (Void# -> r) -> r
AssessmentReportDestinationType_S3 = AssessmentReportDestinationType' "S3"

{-# COMPLETE
  AssessmentReportDestinationType_S3,
  AssessmentReportDestinationType'
  #-}