{-# 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.SourceSetUpOption
-- 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.AuditManager.Types.SourceSetUpOption
  ( SourceSetUpOption
      ( ..,
        SourceSetUpOption_Procedural_Controls_Mapping,
        SourceSetUpOption_System_Controls_Mapping
      ),
  )
where

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

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

pattern SourceSetUpOption_Procedural_Controls_Mapping :: SourceSetUpOption
pattern $bSourceSetUpOption_Procedural_Controls_Mapping :: SourceSetUpOption
$mSourceSetUpOption_Procedural_Controls_Mapping :: forall {r}. SourceSetUpOption -> ((# #) -> r) -> ((# #) -> r) -> r
SourceSetUpOption_Procedural_Controls_Mapping = SourceSetUpOption' "Procedural_Controls_Mapping"

pattern SourceSetUpOption_System_Controls_Mapping :: SourceSetUpOption
pattern $bSourceSetUpOption_System_Controls_Mapping :: SourceSetUpOption
$mSourceSetUpOption_System_Controls_Mapping :: forall {r}. SourceSetUpOption -> ((# #) -> r) -> ((# #) -> r) -> r
SourceSetUpOption_System_Controls_Mapping = SourceSetUpOption' "System_Controls_Mapping"

{-# COMPLETE
  SourceSetUpOption_Procedural_Controls_Mapping,
  SourceSetUpOption_System_Controls_Mapping,
  SourceSetUpOption'
  #-}