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

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

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

pattern SourceSetUpOption_Procedural_Controls_Mapping :: SourceSetUpOption
pattern $bSourceSetUpOption_Procedural_Controls_Mapping :: SourceSetUpOption
$mSourceSetUpOption_Procedural_Controls_Mapping :: forall r. SourceSetUpOption -> (Void# -> r) -> (Void# -> 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 -> (Void# -> r) -> (Void# -> r) -> r
SourceSetUpOption_System_Controls_Mapping = SourceSetUpOption' "System_Controls_Mapping"

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